tntd 2.8.0-beta.2 → 2.8.0-beta.21

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 (1683) hide show
  1. package/es/affix/index.js +1 -1
  2. package/es/affix/index.js.map +1 -1
  3. package/es/affix/style/index.js +2 -0
  4. package/es/affix/style/index.js.map +1 -0
  5. package/es/affix/style/index.less +6 -0
  6. package/es/alert/index.js +1 -1
  7. package/es/alert/index.js.map +1 -1
  8. package/es/alert/style/index.js +2 -0
  9. package/es/alert/style/index.js.map +1 -0
  10. package/es/alert/style/index.less +188 -0
  11. package/es/anchor/index.js +1 -1
  12. package/es/anchor/index.js.map +1 -1
  13. package/es/anchor/style/index.js +4 -0
  14. package/es/anchor/style/index.js.map +1 -0
  15. package/es/anchor/style/index.less +82 -0
  16. package/es/array-input/index.js +57 -42
  17. package/es/array-input/index.js.map +1 -1
  18. package/es/array-input/index.less +4 -1
  19. package/es/auto-complete/index.js +1 -1
  20. package/es/auto-complete/index.js.map +1 -1
  21. package/es/auto-complete/style/index.js +5 -0
  22. package/es/auto-complete/style/index.js.map +1 -0
  23. package/es/auto-complete/style/index.less +92 -0
  24. package/es/avatar/index.js +1 -1
  25. package/es/avatar/index.js.map +1 -1
  26. package/es/avatar/style/index.js +2 -0
  27. package/es/avatar/style/index.js.map +1 -0
  28. package/es/avatar/style/index.less +59 -0
  29. package/es/back-top/index.js +1 -1
  30. package/es/back-top/index.js.map +1 -1
  31. package/es/back-top/style/index.js +2 -0
  32. package/es/back-top/style/index.js.map +1 -0
  33. package/es/back-top/style/index.less +42 -0
  34. package/es/back-top/style/responsive.less +11 -0
  35. package/es/badge/index.js +1 -1
  36. package/es/badge/index.js.map +1 -1
  37. package/es/badge/style/index.js +2 -0
  38. package/es/badge/style/index.js.map +1 -0
  39. package/es/badge/style/index.less +190 -0
  40. package/es/breadcrumb/index.js +1 -1
  41. package/es/breadcrumb/index.js.map +1 -1
  42. package/es/breadcrumb/style/index.js +4 -0
  43. package/es/breadcrumb/style/index.js.map +1 -0
  44. package/es/breadcrumb/style/index.less +52 -0
  45. package/es/button/button.less +7 -0
  46. package/es/button/index.js +2 -1
  47. package/es/button/index.js.map +1 -1
  48. package/es/button/style/index.js +2 -0
  49. package/es/button/style/index.js.map +1 -0
  50. package/es/button/style/index.less +224 -0
  51. package/es/button/style/mixin.less +357 -0
  52. package/es/calendar/index.js +1 -1
  53. package/es/calendar/index.js.map +1 -1
  54. package/es/calendar/style/index.js +5 -0
  55. package/es/calendar/style/index.js.map +1 -0
  56. package/es/calendar/style/index.less +278 -0
  57. package/es/card/index.js +1 -1
  58. package/es/card/index.js.map +1 -1
  59. package/es/card/style/index.js +6 -0
  60. package/es/card/style/index.js.map +1 -0
  61. package/es/card/style/index.less +263 -0
  62. package/es/card/style/size.less +25 -0
  63. package/es/carousel/index.js +1 -1
  64. package/es/carousel/index.js.map +1 -1
  65. package/es/carousel/style/index.js +2 -0
  66. package/es/carousel/style/index.js.map +1 -0
  67. package/es/carousel/style/index.less +238 -0
  68. package/es/cascader/index.js +1 -1
  69. package/es/cascader/index.js.map +1 -1
  70. package/es/cascader/style/index.js +5 -0
  71. package/es/cascader/style/index.js.map +1 -0
  72. package/es/cascader/style/index.less +227 -0
  73. package/es/check-card/index.js +2 -3
  74. package/es/check-card/index.js.map +1 -1
  75. package/es/checkbox/index.js +1 -1
  76. package/es/checkbox/index.js.map +1 -1
  77. package/es/checkbox/style/index.js +2 -0
  78. package/es/checkbox/style/index.js.map +1 -0
  79. package/es/checkbox/style/index.less +4 -0
  80. package/es/checkbox/style/mixin.less +220 -0
  81. package/es/col/index.js +1 -1
  82. package/es/col/index.js.map +1 -1
  83. package/es/col/style/index.js +4 -0
  84. package/es/col/style/index.js.map +1 -0
  85. package/es/collapse/collapse.less +3 -3
  86. package/es/collapse/index.js +1 -1
  87. package/es/collapse/index.js.map +1 -1
  88. package/es/collapse/style/index.js +2 -0
  89. package/es/collapse/style/index.js.map +1 -0
  90. package/es/collapse/style/index.less +135 -0
  91. package/es/color-picker/ColorPicker.js +8 -8
  92. package/es/color-picker/ColorPicker.js.map +1 -1
  93. package/es/color-picker/index.less +25 -8
  94. package/es/comment/index.js +1 -1
  95. package/es/comment/index.js.map +1 -1
  96. package/es/comment/style/index.js +2 -0
  97. package/es/comment/style/index.js.map +1 -0
  98. package/es/comment/style/index.less +93 -0
  99. package/es/config-provider/index.js +1 -1
  100. package/es/config-provider/index.js.map +1 -1
  101. package/es/config-provider/style/index.js +1 -0
  102. package/es/config-provider/style/index.js.map +1 -0
  103. package/es/config-provider/style/index.less +2 -0
  104. package/es/date-picker/index.js +1 -1
  105. package/es/date-picker/index.js.map +1 -1
  106. package/es/date-picker/style/Calendar.less +402 -0
  107. package/es/date-picker/style/DecadePanel.less +81 -0
  108. package/es/date-picker/style/MonthPanel.less +86 -0
  109. package/es/date-picker/style/MonthPicker.less +11 -0
  110. package/es/date-picker/style/Picker.less +114 -0
  111. package/es/date-picker/style/RangePicker.less +248 -0
  112. package/es/date-picker/style/TimePicker.less +151 -0
  113. package/es/date-picker/style/WeekPicker.less +21 -0
  114. package/es/date-picker/style/YearPanel.less +85 -0
  115. package/es/date-picker/style/index.js +7 -0
  116. package/es/date-picker/style/index.js.map +1 -0
  117. package/es/date-picker/style/index.less +17 -0
  118. package/es/descriptions/descriptions.js +101 -26
  119. package/es/descriptions/descriptions.js.map +1 -1
  120. package/es/descriptions/descriptions.less +111 -22
  121. package/es/descriptions/index.js +1 -1
  122. package/es/descriptions/index.js.map +1 -1
  123. package/es/descriptions/style/index.js +2 -0
  124. package/es/descriptions/style/index.js.map +1 -0
  125. package/es/descriptions/style/index.less +145 -0
  126. package/es/divider/index.js +1 -1
  127. package/es/divider/index.js.map +1 -1
  128. package/es/divider/style/index.js +2 -0
  129. package/es/divider/style/index.js.map +1 -0
  130. package/es/divider/style/index.less +109 -0
  131. package/es/drawer/drawer.js +108 -13
  132. package/es/drawer/drawer.js.map +1 -1
  133. package/es/drawer/index.js +2 -2
  134. package/es/drawer/index.js.map +1 -1
  135. package/es/drawer/index.less +151 -0
  136. package/es/drawer/style/drawer.less +230 -0
  137. package/es/drawer/style/index.js +3 -0
  138. package/es/drawer/style/index.js.map +1 -0
  139. package/es/drawer/style/index.less +3 -0
  140. package/es/dropdown/index.js +1 -1
  141. package/es/dropdown/index.js.map +1 -1
  142. package/es/dropdown/style/index.js +4 -0
  143. package/es/dropdown/style/index.js.map +1 -0
  144. package/es/dropdown/style/index.less +283 -0
  145. package/es/empty/index.js +1 -1
  146. package/es/empty/index.js.map +1 -1
  147. package/es/empty/style/index.js +2 -0
  148. package/es/empty/style/index.js.map +1 -0
  149. package/es/empty/style/index.less +52 -0
  150. package/es/form/form.js +8 -3
  151. package/es/form/form.js.map +1 -1
  152. package/es/form/form.less +42 -0
  153. package/es/form/index.js +1 -1
  154. package/es/form/index.js.map +1 -1
  155. package/es/form/style/index.js +4 -0
  156. package/es/form/style/index.js.map +1 -0
  157. package/es/form/style/index.less +653 -0
  158. package/es/form/style/mixin.less +126 -0
  159. package/es/grid/index.js +3 -13
  160. package/es/grid/index.js.map +1 -1
  161. package/es/grid/style/index.js +1 -1
  162. package/es/grid/style/index.js.map +1 -1
  163. package/es/grid/style/index.less +24 -26
  164. package/es/grid/style/mixin.less +63 -19
  165. package/es/grid-v4/RowContext.js.map +1 -0
  166. package/es/grid-v4/col.js.map +1 -0
  167. package/es/grid-v4/hooks/useBreakpoint.js.map +1 -0
  168. package/es/grid-v4/index.js +14 -0
  169. package/es/grid-v4/index.js.map +1 -0
  170. package/{lib/grid → es/grid-v4}/row.js.map +1 -1
  171. package/es/grid-v4/style/index.js +2 -0
  172. package/es/grid-v4/style/index.js.map +1 -0
  173. package/es/grid-v4/style/index.less +124 -0
  174. package/es/grid-v4/style/mixin.less +57 -0
  175. package/es/handle-icon/index.js +201 -0
  176. package/es/handle-icon/index.js.map +1 -0
  177. package/es/handle-icon/index.less +53 -0
  178. package/es/icon/index.js +2 -1
  179. package/es/icon/index.js.map +1 -1
  180. package/es/icon/style/index.js +3 -0
  181. package/es/icon/style/index.js.map +1 -0
  182. package/es/icon/style/index.less +4 -0
  183. package/es/icon/style/style.less +6 -0
  184. package/es/icon-old/index.js +4 -0
  185. package/es/icon-old/index.js.map +1 -0
  186. package/es/icon-old/style/index.js +2 -0
  187. package/es/icon-old/style/index.js.map +1 -0
  188. package/es/icon-old/style/index.less +4 -0
  189. package/es/index.js +8 -2
  190. package/es/index.js.map +1 -1
  191. package/es/input/index.js +1 -1
  192. package/es/input/index.js.map +1 -1
  193. package/es/input/input.js +10 -6
  194. package/es/input/input.js.map +1 -1
  195. package/es/input/style/index.js +4 -0
  196. package/es/input/style/index.js.map +1 -0
  197. package/es/input/style/index.less +57 -0
  198. package/es/input/style/mixin.less +448 -0
  199. package/es/input/style/search-input.less +34 -0
  200. package/es/input-number/index.js +1 -1
  201. package/es/input-number/index.js.map +1 -1
  202. package/es/input-number/style/index.js +2 -0
  203. package/es/input-number/style/index.js.map +1 -0
  204. package/es/input-number/style/index.less +179 -0
  205. package/es/layout/index.js +1 -1
  206. package/es/layout/index.js.map +1 -1
  207. package/es/layout/style/index.js +2 -0
  208. package/es/layout/style/index.js.map +1 -0
  209. package/es/layout/style/index.less +124 -0
  210. package/es/layout/style/light.less +15 -0
  211. package/es/list/index.js +1 -1
  212. package/es/list/index.js.map +1 -1
  213. package/es/list/style/bordered.less +41 -0
  214. package/es/list/style/index.js +7 -0
  215. package/es/list/style/index.js.map +1 -0
  216. package/es/list/style/index.less +234 -0
  217. package/es/list/style/responsive.less +40 -0
  218. package/es/locale/en_US.js +11 -1
  219. package/es/locale/en_US.js.map +1 -1
  220. package/es/locale/zh_CN.js +11 -1
  221. package/es/locale/zh_CN.js.map +1 -1
  222. package/es/locale-provider/index.js +1 -1
  223. package/es/locale-provider/index.js.map +1 -1
  224. package/es/locale-provider/style/index.js +1 -0
  225. package/es/locale-provider/style/index.js.map +1 -0
  226. package/es/locale-provider/style/index.less +2 -0
  227. package/es/mentions/index.js +1 -1
  228. package/es/mentions/index.js.map +1 -1
  229. package/es/mentions/style/index.js +4 -0
  230. package/es/mentions/style/index.js.map +1 -0
  231. package/es/mentions/style/index.less +164 -0
  232. package/es/menu/index.js +1 -1
  233. package/es/menu/index.js.map +1 -1
  234. package/es/menu/style/dark.less +139 -0
  235. package/es/menu/style/index.js +5 -0
  236. package/es/menu/style/index.js.map +1 -0
  237. package/es/menu/style/index.less +515 -0
  238. package/es/message/index.js +1 -1
  239. package/es/message/index.js.map +1 -1
  240. package/es/message/style/index.js +2 -0
  241. package/es/message/style/index.js.map +1 -0
  242. package/es/message/style/index.less +75 -0
  243. package/es/modal/index.js +1 -1
  244. package/es/modal/index.js.map +1 -1
  245. package/es/modal/modal.js +51 -9
  246. package/es/modal/modal.js.map +1 -1
  247. package/es/modal/modal.less +13 -32
  248. package/es/modal/style/confirm.less +92 -0
  249. package/es/modal/style/index.js +4 -0
  250. package/es/modal/style/index.js.map +1 -0
  251. package/es/modal/style/index.less +4 -0
  252. package/es/modal/style/modal.less +171 -0
  253. package/es/notification/index.js +1 -1
  254. package/es/notification/index.js.map +1 -1
  255. package/es/notification/style/index.js +2 -0
  256. package/es/notification/style/index.js.map +1 -0
  257. package/es/notification/style/index.less +201 -0
  258. package/es/page/index.js +0 -1
  259. package/es/page-container/index.js +13 -0
  260. package/es/page-container/index.js.map +1 -0
  261. package/es/page-container/index.less +38 -0
  262. package/es/page-header/index.js +1 -1
  263. package/es/page-header/index.js.map +1 -1
  264. package/es/page-header/style/index.js +4 -0
  265. package/es/page-header/style/index.js.map +1 -0
  266. package/es/page-header/style/index.less +119 -0
  267. package/es/page-loading/index.js +29 -0
  268. package/es/page-loading/index.js.map +1 -0
  269. package/es/page-loading/index.less +38 -0
  270. package/es/page-loading/loading.gif +0 -0
  271. package/es/pagination/index.js +1 -1
  272. package/es/pagination/index.js.map +1 -1
  273. package/es/pagination/style/index.js +4 -0
  274. package/es/pagination/style/index.js.map +1 -0
  275. package/es/pagination/style/index.less +400 -0
  276. package/es/popconfirm/index.js +1 -1
  277. package/es/popconfirm/index.js.map +1 -1
  278. package/es/popconfirm/style/index.js +5 -0
  279. package/es/popconfirm/style/index.js.map +1 -0
  280. package/es/popover/index.js +1 -1
  281. package/es/popover/index.js.map +1 -1
  282. package/es/popover/style/index.js +4 -0
  283. package/es/popover/style/index.js.map +1 -0
  284. package/es/popover/style/index.less +206 -0
  285. package/es/progress/index.js +1 -1
  286. package/es/progress/index.js.map +1 -1
  287. package/es/progress/style/index.js +2 -0
  288. package/es/progress/style/index.js.map +1 -0
  289. package/es/progress/style/index.less +182 -0
  290. package/es/radio/index.js +1 -1
  291. package/es/radio/index.js.map +1 -1
  292. package/es/radio/style/index.js +2 -0
  293. package/es/radio/style/index.js.map +1 -0
  294. package/es/radio/style/index.less +327 -0
  295. package/es/rate/index.js +1 -1
  296. package/es/rate/index.js.map +1 -1
  297. package/es/rate/style/index.js +4 -0
  298. package/es/rate/style/index.js.map +1 -0
  299. package/es/rate/style/index.less +85 -0
  300. package/es/result/index.js +1 -1
  301. package/es/result/index.js.map +1 -1
  302. package/es/result/style/index.js +2 -0
  303. package/es/result/style/index.js.map +1 -0
  304. package/es/result/style/index.less +71 -0
  305. package/es/row/index.js +1 -1
  306. package/es/row/index.js.map +1 -1
  307. package/es/row/style/index.js +4 -0
  308. package/es/row/style/index.js.map +1 -0
  309. package/es/select/index.js +1 -1
  310. package/es/select/index.js.map +1 -1
  311. package/es/select/select.js +5 -3
  312. package/es/select/select.js.map +1 -1
  313. package/es/select/style/index.js +4 -0
  314. package/es/select/style/index.js.map +1 -0
  315. package/es/select/style/index.less +605 -0
  316. package/es/skeleton/index.js +1 -1
  317. package/es/skeleton/index.js.map +1 -1
  318. package/es/skeleton/style/index.js +2 -0
  319. package/es/skeleton/style/index.js.map +1 -0
  320. package/es/skeleton/style/index.less +130 -0
  321. package/es/slider/index.js +1 -1
  322. package/es/slider/index.js.map +1 -1
  323. package/es/slider/style/index.js +4 -0
  324. package/es/slider/style/index.js.map +1 -0
  325. package/es/slider/style/index.less +197 -0
  326. package/es/spin/index.js +1 -1
  327. package/es/spin/index.js.map +1 -1
  328. package/es/spin/style/index.js +2 -0
  329. package/es/spin/style/index.js.map +1 -0
  330. package/es/spin/style/index.less +214 -0
  331. package/es/statistic/index.js +1 -1
  332. package/es/statistic/index.js.map +1 -1
  333. package/es/statistic/style/index.js +2 -0
  334. package/es/statistic/style/index.js.map +1 -0
  335. package/es/statistic/style/index.less +40 -0
  336. package/es/steps/index.js +2 -1
  337. package/es/steps/index.js.map +1 -1
  338. package/es/steps/stepStyle/index.less +12 -0
  339. package/es/steps/stepStyle/nav.less +281 -0
  340. package/es/steps/stepStyle/small.less +5 -0
  341. package/es/steps/steps.js +6 -6
  342. package/es/steps/steps.js.map +1 -1
  343. package/es/steps/style/compatibility.less +50 -0
  344. package/es/steps/style/custom-icon.less +31 -0
  345. package/es/steps/style/index.js +2 -0
  346. package/es/steps/style/index.js.map +1 -0
  347. package/es/steps/style/index.less +241 -6
  348. package/es/steps/style/label-placement.less +38 -0
  349. package/es/steps/style/nav.less +96 -247
  350. package/es/steps/style/progress-dot.less +80 -0
  351. package/es/steps/style/small.less +43 -3
  352. package/es/steps/style/vertical.less +74 -0
  353. package/es/style/color/bezierEasing.less +110 -0
  354. package/es/style/color/colorPalette.less +75 -0
  355. package/es/style/color/colors.less +149 -0
  356. package/es/style/color/tinyColor.less +1184 -0
  357. package/es/style/core/base.less +510 -0
  358. package/es/style/core/iconfont.less +19 -0
  359. package/es/style/core/index.less +4 -0
  360. package/es/style/core/motion/fade.less +31 -0
  361. package/es/style/core/motion/move.less +120 -0
  362. package/es/style/core/motion/other.less +40 -0
  363. package/es/style/core/motion/slide.less +120 -0
  364. package/es/style/core/motion/swing.less +34 -0
  365. package/es/style/core/motion/zoom.less +162 -0
  366. package/es/style/core/motion.less +20 -0
  367. package/es/style/index.js +1 -0
  368. package/es/style/index.js.map +1 -0
  369. package/es/style/index.less +2 -0
  370. package/es/style/mixins/clearfix.less +13 -0
  371. package/es/style/mixins/compatibility.less +22 -0
  372. package/es/style/mixins/iconfont.less +44 -0
  373. package/es/style/mixins/index.less +10 -0
  374. package/es/style/mixins/motion.less +35 -0
  375. package/es/style/mixins/operation-unit.less +18 -0
  376. package/es/style/mixins/reset.less +13 -0
  377. package/es/style/mixins/size.less +10 -0
  378. package/es/style/mixins/typography.less +49 -0
  379. package/es/style/themes/default.less +700 -0
  380. package/es/style/themes/index.less +1 -0
  381. package/es/style/v2-compatible-reset.js +1 -0
  382. package/es/style/v2-compatible-reset.js.map +1 -0
  383. package/es/style/v2-compatible-reset.less +51 -0
  384. package/es/switch/style/index.js +2 -0
  385. package/es/switch/style/index.js.map +1 -0
  386. package/es/switch/style/index.less +178 -0
  387. package/es/switch/switch.js +1 -1
  388. package/es/switch/switch.js.map +1 -1
  389. package/es/table/expand.less +49 -0
  390. package/es/table/hooks/index.js +2 -1
  391. package/es/table/hooks/index.js.map +1 -1
  392. package/es/table/hooks/use-expand-fixed.js +78 -0
  393. package/es/table/hooks/use-expand-fixed.js.map +1 -0
  394. package/es/table/index.js +2 -1
  395. package/es/table/index.js.map +1 -1
  396. package/es/table/style/index.js +10 -0
  397. package/es/table/style/index.js.map +1 -0
  398. package/es/table/style/index.less +838 -0
  399. package/es/table/style/size.less +180 -0
  400. package/es/table/table.js +44 -11
  401. package/es/table/table.js.map +1 -1
  402. package/es/table/table.less +5 -5
  403. package/es/table/table.stories.js +413 -2
  404. package/es/table/table.stories.js.map +1 -1
  405. package/es/table/utils.js +11 -0
  406. package/es/table/utils.js.map +1 -1
  407. package/es/table-container/index.js +12 -0
  408. package/es/table-container/index.js.map +1 -0
  409. package/es/table-container/index.less +13 -0
  410. package/es/tabs/index.js +1 -1
  411. package/es/tabs/index.js.map +1 -1
  412. package/es/tabs/style/card-style.less +186 -0
  413. package/es/tabs/style/index.js +2 -0
  414. package/es/tabs/style/index.js.map +1 -0
  415. package/es/tabs/style/index.less +436 -0
  416. package/es/tabs/tabs.js +4 -2
  417. package/es/tabs/tabs.js.map +1 -1
  418. package/es/tabs-container/index.js +13 -0
  419. package/es/tabs-container/index.js.map +1 -0
  420. package/es/tabs-container/index.less +51 -0
  421. package/es/tag/color.less +53 -0
  422. package/es/tag/index.js +12 -3
  423. package/es/tag/index.js.map +1 -1
  424. package/es/tag/style/index.js +2 -0
  425. package/es/tag/style/index.js.map +1 -0
  426. package/es/tag/style/index.less +106 -0
  427. package/es/tag/tag.js +171 -0
  428. package/es/tag/tag.js.map +1 -0
  429. package/es/tag/tag.less +228 -0
  430. package/es/time-picker/index.js +1 -1
  431. package/es/time-picker/index.js.map +1 -1
  432. package/es/time-picker/style/index.js +2 -0
  433. package/es/time-picker/style/index.js.map +1 -0
  434. package/es/time-picker/style/index.less +247 -0
  435. package/es/timeline/index.js +1 -1
  436. package/es/timeline/index.js.map +1 -1
  437. package/es/timeline/style/index.js +2 -0
  438. package/es/timeline/style/index.js.map +1 -0
  439. package/es/timeline/style/index.less +167 -0
  440. package/es/title/index.js +4 -3
  441. package/es/title/index.js.map +1 -1
  442. package/es/tntd-action/index.js +7 -0
  443. package/es/tntd-action/index.js.map +1 -0
  444. package/es/tntd-cascader/AntdCascader/component/getIcons.js +7 -8
  445. package/es/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
  446. package/es/tntd-cascader/AntdCascader/index.js +4 -5
  447. package/es/tntd-cascader/AntdCascader/index.js.map +1 -1
  448. package/es/tntd-cascader/rc-cascader/OptionList/index.js +0 -1
  449. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +0 -1
  450. package/es/tntd-form/Form.js.map +1 -1
  451. package/es/tntd-form/FormItem/ItemHolder.js +2 -7
  452. package/es/tntd-form/FormItem/ItemHolder.js.map +1 -1
  453. package/es/tntd-form/FormItemInput.js +1 -1
  454. package/es/tntd-form/FormItemInput.js.map +1 -1
  455. package/es/tntd-form/FormItemLabel.js +1 -1
  456. package/es/tntd-form/FormItemLabel.js.map +1 -1
  457. package/es/tntd-form/context.js.map +1 -1
  458. package/es/tntd-form/style/index.js +1 -1
  459. package/es/tntd-form/style/index.js.map +1 -1
  460. package/es/tntd-form/style/index.less +1 -1
  461. package/es/tntd-form/style/rtl.less +3 -3
  462. package/es/tntd-layout/index.js +0 -1
  463. package/es/tntd-rc-select/_util/getIcons.js +7 -8
  464. package/es/tntd-rc-select/_util/getIcons.js.map +1 -1
  465. package/es/tntd-rc-select/style/index.less +844 -740
  466. package/es/tntd-select/index.js +5 -4
  467. package/es/tntd-select/index.js.map +1 -1
  468. package/es/tooltip/index.js +4 -3
  469. package/es/tooltip/index.js.map +1 -1
  470. package/es/tooltip/index.less +29 -0
  471. package/es/tooltip/style/index.js +2 -0
  472. package/es/tooltip/style/index.js.map +1 -0
  473. package/es/tooltip/style/index.less +187 -0
  474. package/es/tooltip/tooltip.js +33 -0
  475. package/es/tooltip/tooltip.js.map +1 -0
  476. package/es/transfer/index.js +1 -1
  477. package/es/transfer/index.js.map +1 -1
  478. package/es/transfer/style/customize.less +62 -0
  479. package/es/transfer/style/index.js +7 -0
  480. package/es/transfer/style/index.js.map +1 -0
  481. package/es/transfer/style/index.less +191 -0
  482. package/es/tree/index.js +1 -1
  483. package/es/tree/index.js.map +1 -1
  484. package/es/tree/style/directory.less +95 -0
  485. package/es/tree/style/index.js +2 -0
  486. package/es/tree/style/index.js.map +1 -0
  487. package/es/tree/style/index.less +280 -0
  488. package/es/tree/style/mixin.less +29 -0
  489. package/es/tree-select/index.js +1 -1
  490. package/es/tree-select/index.js.map +1 -1
  491. package/es/tree-select/style/index.js +6 -0
  492. package/es/tree-select/style/index.js.map +1 -0
  493. package/es/tree-select/style/index.less +191 -0
  494. package/es/typography/index.js +1 -1
  495. package/es/typography/index.js.map +1 -1
  496. package/es/typography/style/index.js +5 -0
  497. package/es/typography/style/index.js.map +1 -0
  498. package/es/typography/style/index.less +204 -0
  499. package/es/upload/index.js +1 -1
  500. package/es/upload/index.js.map +1 -1
  501. package/es/upload/style/index.js +5 -0
  502. package/es/upload/style/index.js.map +1 -0
  503. package/es/upload/style/index.less +542 -0
  504. package/es/version/index.js +1 -1
  505. package/es/version/index.js.map +1 -1
  506. package/es/version/style/index.js +2 -0
  507. package/es/version/style/index.js.map +1 -0
  508. package/lib/_util/context.js +3 -6
  509. package/lib/_util/defaultRenderEmpty.d.ts +2 -2
  510. package/lib/_util/defaultRenderEmpty.d.ts.map +1 -1
  511. package/lib/_util/defaultRenderEmpty.js +4 -5
  512. package/lib/_util/hooks/useFlexGapSupport.js +7 -8
  513. package/lib/_util/hooks/useForceUpdate.js +5 -5
  514. package/lib/_util/motion.js +3 -6
  515. package/lib/_util/reactNode.js +4 -5
  516. package/lib/_util/responsiveObserve.js +6 -9
  517. package/lib/_util/styleChecker.js +3 -5
  518. package/lib/_util/type.js +3 -5
  519. package/lib/_util/warning.js +5 -6
  520. package/lib/actions/index.js +1 -2
  521. package/lib/affix/index.d.ts +1 -1
  522. package/lib/affix/index.d.ts.map +1 -1
  523. package/lib/affix/index.js +5 -6
  524. package/lib/affix/index.js.map +1 -1
  525. package/lib/affix/style/index.d.ts +3 -0
  526. package/lib/affix/style/index.d.ts.map +1 -0
  527. package/lib/affix/style/index.js +4 -0
  528. package/lib/affix/style/index.js.map +1 -0
  529. package/lib/affix/style/index.less +6 -0
  530. package/lib/alert/index.d.ts +1 -1
  531. package/lib/alert/index.d.ts.map +1 -1
  532. package/lib/alert/index.js +5 -6
  533. package/lib/alert/index.js.map +1 -1
  534. package/lib/alert/style/index.d.ts +3 -0
  535. package/lib/alert/style/index.d.ts.map +1 -0
  536. package/lib/alert/style/index.js +4 -0
  537. package/lib/alert/style/index.js.map +1 -0
  538. package/lib/alert/style/index.less +188 -0
  539. package/lib/anchor/index.d.ts +1 -1
  540. package/lib/anchor/index.d.ts.map +1 -1
  541. package/lib/anchor/index.js +5 -6
  542. package/lib/anchor/index.js.map +1 -1
  543. package/lib/anchor/style/index.d.ts +4 -0
  544. package/lib/anchor/style/index.d.ts.map +1 -0
  545. package/lib/anchor/style/index.js +5 -0
  546. package/lib/anchor/style/index.js.map +1 -0
  547. package/lib/anchor/style/index.less +82 -0
  548. package/lib/array-input/index.d.ts +2 -12
  549. package/lib/array-input/index.d.ts.map +1 -1
  550. package/lib/array-input/index.js +70 -65
  551. package/lib/array-input/index.js.map +1 -1
  552. package/lib/array-input/index.less +4 -1
  553. package/lib/auth-context/index.js +2 -3
  554. package/lib/auto-complete/index.d.ts +1 -1
  555. package/lib/auto-complete/index.d.ts.map +1 -1
  556. package/lib/auto-complete/index.js +5 -6
  557. package/lib/auto-complete/index.js.map +1 -1
  558. package/lib/auto-complete/style/index.d.ts +5 -0
  559. package/lib/auto-complete/style/index.d.ts.map +1 -0
  560. package/lib/auto-complete/style/index.js +6 -0
  561. package/lib/auto-complete/style/index.js.map +1 -0
  562. package/lib/auto-complete/style/index.less +92 -0
  563. package/lib/avatar/index.d.ts +1 -1
  564. package/lib/avatar/index.d.ts.map +1 -1
  565. package/lib/avatar/index.js +5 -6
  566. package/lib/avatar/index.js.map +1 -1
  567. package/lib/avatar/style/index.d.ts +3 -0
  568. package/lib/avatar/style/index.d.ts.map +1 -0
  569. package/lib/avatar/style/index.js +4 -0
  570. package/lib/avatar/style/index.js.map +1 -0
  571. package/lib/avatar/style/index.less +59 -0
  572. package/lib/back-top/index.d.ts +1 -1
  573. package/lib/back-top/index.d.ts.map +1 -1
  574. package/lib/back-top/index.js +5 -6
  575. package/lib/back-top/index.js.map +1 -1
  576. package/lib/back-top/style/index.d.ts +3 -0
  577. package/lib/back-top/style/index.d.ts.map +1 -0
  578. package/lib/back-top/style/index.js +4 -0
  579. package/lib/back-top/style/index.js.map +1 -0
  580. package/lib/back-top/style/index.less +42 -0
  581. package/lib/back-top/style/responsive.less +11 -0
  582. package/lib/badge/index.d.ts +1 -1
  583. package/lib/badge/index.d.ts.map +1 -1
  584. package/lib/badge/index.js +5 -6
  585. package/lib/badge/index.js.map +1 -1
  586. package/lib/badge/style/index.d.ts +3 -0
  587. package/lib/badge/style/index.d.ts.map +1 -0
  588. package/lib/badge/style/index.js +4 -0
  589. package/lib/badge/style/index.js.map +1 -0
  590. package/lib/badge/style/index.less +190 -0
  591. package/lib/breadcrumb/index.d.ts +1 -1
  592. package/lib/breadcrumb/index.d.ts.map +1 -1
  593. package/lib/breadcrumb/index.js +5 -6
  594. package/lib/breadcrumb/index.js.map +1 -1
  595. package/lib/breadcrumb/style/index.d.ts +5 -0
  596. package/lib/breadcrumb/style/index.d.ts.map +1 -0
  597. package/lib/breadcrumb/style/index.js +6 -0
  598. package/lib/breadcrumb/style/index.js.map +1 -0
  599. package/lib/breadcrumb/style/index.less +52 -0
  600. package/lib/button/button.js +6 -9
  601. package/lib/button/button.less +7 -0
  602. package/lib/button/index.d.ts +2 -1
  603. package/lib/button/index.d.ts.map +1 -1
  604. package/lib/button/index.js +7 -7
  605. package/lib/button/index.js.map +1 -1
  606. package/lib/button/style/index.d.ts +3 -0
  607. package/lib/button/style/index.d.ts.map +1 -0
  608. package/lib/button/style/index.js +4 -0
  609. package/lib/button/style/index.js.map +1 -0
  610. package/lib/button/style/index.less +224 -0
  611. package/lib/button/style/mixin.less +357 -0
  612. package/lib/calendar/index.d.ts +1 -1
  613. package/lib/calendar/index.d.ts.map +1 -1
  614. package/lib/calendar/index.js +5 -6
  615. package/lib/calendar/index.js.map +1 -1
  616. package/lib/calendar/style/index.d.ts +5 -0
  617. package/lib/calendar/style/index.d.ts.map +1 -0
  618. package/lib/calendar/style/index.js +6 -0
  619. package/lib/calendar/style/index.js.map +1 -0
  620. package/lib/calendar/style/index.less +278 -0
  621. package/lib/card/card.js +5 -8
  622. package/lib/card/index.d.ts +1 -1
  623. package/lib/card/index.d.ts.map +1 -1
  624. package/lib/card/index.js +2 -3
  625. package/lib/card/index.js.map +1 -1
  626. package/lib/card/style/index.d.ts +6 -0
  627. package/lib/card/style/index.d.ts.map +1 -0
  628. package/lib/card/style/index.js +7 -0
  629. package/lib/card/style/index.js.map +1 -0
  630. package/lib/card/style/index.less +263 -0
  631. package/lib/card/style/size.less +25 -0
  632. package/lib/carousel/index.d.ts +1 -1
  633. package/lib/carousel/index.d.ts.map +1 -1
  634. package/lib/carousel/index.js +5 -6
  635. package/lib/carousel/index.js.map +1 -1
  636. package/lib/carousel/style/index.d.ts +3 -0
  637. package/lib/carousel/style/index.d.ts.map +1 -0
  638. package/lib/carousel/style/index.js +4 -0
  639. package/lib/carousel/style/index.js.map +1 -0
  640. package/lib/carousel/style/index.less +238 -0
  641. package/lib/cascader/index.d.ts +1 -1
  642. package/lib/cascader/index.d.ts.map +1 -1
  643. package/lib/cascader/index.js +6 -8
  644. package/lib/cascader/index.js.map +1 -1
  645. package/lib/cascader/style/index.d.ts +5 -0
  646. package/lib/cascader/style/index.d.ts.map +1 -0
  647. package/lib/cascader/style/index.js +6 -0
  648. package/lib/cascader/style/index.js.map +1 -0
  649. package/lib/cascader/style/index.less +227 -0
  650. package/lib/check-card/group.js +9 -14
  651. package/lib/check-card/index.js +11 -16
  652. package/lib/check-card/index.js.map +1 -1
  653. package/lib/checkbox/checkbox-group.js +1 -2
  654. package/lib/checkbox/index.d.ts +1 -1
  655. package/lib/checkbox/index.d.ts.map +1 -1
  656. package/lib/checkbox/index.js +5 -6
  657. package/lib/checkbox/index.js.map +1 -1
  658. package/lib/checkbox/style/index.d.ts +3 -0
  659. package/lib/checkbox/style/index.d.ts.map +1 -0
  660. package/lib/checkbox/style/index.js +4 -0
  661. package/lib/checkbox/style/index.js.map +1 -0
  662. package/lib/checkbox/style/index.less +4 -0
  663. package/lib/checkbox/style/mixin.less +220 -0
  664. package/lib/col/index.d.ts +1 -1
  665. package/lib/col/index.d.ts.map +1 -1
  666. package/lib/col/index.js +5 -6
  667. package/lib/col/index.js.map +1 -1
  668. package/lib/col/style/index.d.ts +3 -0
  669. package/lib/col/style/index.d.ts.map +1 -0
  670. package/lib/col/style/index.js +4 -0
  671. package/lib/col/style/index.js.map +1 -0
  672. package/lib/collapse/collapse.less +3 -3
  673. package/lib/collapse/index.d.ts +1 -1
  674. package/lib/collapse/index.d.ts.map +1 -1
  675. package/lib/collapse/index.js +5 -6
  676. package/lib/collapse/index.js.map +1 -1
  677. package/lib/collapse/style/index.d.ts +3 -0
  678. package/lib/collapse/style/index.d.ts.map +1 -0
  679. package/lib/collapse/style/index.js +4 -0
  680. package/lib/collapse/style/index.js.map +1 -0
  681. package/lib/collapse/style/index.less +135 -0
  682. package/lib/color-picker/ColorPicker.d.ts +4 -2
  683. package/lib/color-picker/ColorPicker.d.ts.map +1 -1
  684. package/lib/color-picker/ColorPicker.js +13 -17
  685. package/lib/color-picker/ColorPicker.js.map +1 -1
  686. package/lib/color-picker/index.d.ts +2 -1
  687. package/lib/color-picker/index.d.ts.map +1 -1
  688. package/lib/color-picker/index.less +25 -8
  689. package/lib/columns/index.d.ts +3 -2
  690. package/lib/columns/index.d.ts.map +1 -1
  691. package/lib/columns/index.js +3 -7
  692. package/lib/comment/index.d.ts +1 -1
  693. package/lib/comment/index.d.ts.map +1 -1
  694. package/lib/comment/index.js +5 -6
  695. package/lib/comment/index.js.map +1 -1
  696. package/lib/comment/style/index.d.ts +3 -0
  697. package/lib/comment/style/index.d.ts.map +1 -0
  698. package/lib/comment/style/index.js +4 -0
  699. package/lib/comment/style/index.js.map +1 -0
  700. package/lib/comment/style/index.less +93 -0
  701. package/lib/config-provider/DisabledContext.js +5 -7
  702. package/lib/config-provider/SizeContext.js +5 -7
  703. package/lib/config-provider/index.d.ts +1 -1
  704. package/lib/config-provider/index.d.ts.map +1 -1
  705. package/lib/config-provider/index.js +5 -6
  706. package/lib/config-provider/index.js.map +1 -1
  707. package/lib/config-provider/style/index.d.ts +2 -0
  708. package/lib/config-provider/style/index.d.ts.map +1 -0
  709. package/lib/config-provider/style/index.js +3 -0
  710. package/lib/config-provider/style/index.js.map +1 -0
  711. package/lib/config-provider/style/index.less +2 -0
  712. package/lib/connect/index.js +5 -11
  713. package/lib/date-picker/index.d.ts +1 -1
  714. package/lib/date-picker/index.d.ts.map +1 -1
  715. package/lib/date-picker/index.js +6 -8
  716. package/lib/date-picker/index.js.map +1 -1
  717. package/lib/date-picker/style/Calendar.less +402 -0
  718. package/lib/date-picker/style/DecadePanel.less +81 -0
  719. package/lib/date-picker/style/MonthPanel.less +86 -0
  720. package/lib/date-picker/style/MonthPicker.less +11 -0
  721. package/lib/date-picker/style/Picker.less +114 -0
  722. package/lib/date-picker/style/RangePicker.less +248 -0
  723. package/lib/date-picker/style/TimePicker.less +151 -0
  724. package/lib/date-picker/style/WeekPicker.less +21 -0
  725. package/lib/date-picker/style/YearPanel.less +85 -0
  726. package/lib/date-picker/style/index.d.ts +6 -0
  727. package/lib/date-picker/style/index.d.ts.map +1 -0
  728. package/lib/date-picker/style/index.js +7 -0
  729. package/lib/date-picker/style/index.js.map +1 -0
  730. package/lib/date-picker/style/index.less +17 -0
  731. package/lib/descriptions/descriptions.d.ts +17 -6
  732. package/lib/descriptions/descriptions.d.ts.map +1 -1
  733. package/lib/descriptions/descriptions.js +107 -35
  734. package/lib/descriptions/descriptions.js.map +1 -1
  735. package/lib/descriptions/descriptions.less +111 -22
  736. package/lib/descriptions/index.d.ts +1 -1
  737. package/lib/descriptions/index.d.ts.map +1 -1
  738. package/lib/descriptions/index.js +2 -3
  739. package/lib/descriptions/index.js.map +1 -1
  740. package/lib/descriptions/style/index.d.ts +3 -0
  741. package/lib/descriptions/style/index.d.ts.map +1 -0
  742. package/lib/descriptions/style/index.js +4 -0
  743. package/lib/descriptions/style/index.js.map +1 -0
  744. package/lib/descriptions/style/index.less +145 -0
  745. package/lib/development-login/LoginModal.d.ts +2 -1
  746. package/lib/development-login/LoginModal.d.ts.map +1 -1
  747. package/lib/development-login/LoginModal.js +9 -10
  748. package/lib/development-login/index.d.ts +2 -1
  749. package/lib/development-login/index.d.ts.map +1 -1
  750. package/lib/development-login/index.js +9 -8
  751. package/lib/divider/index.d.ts +1 -1
  752. package/lib/divider/index.d.ts.map +1 -1
  753. package/lib/divider/index.js +5 -6
  754. package/lib/divider/index.js.map +1 -1
  755. package/lib/divider/style/index.d.ts +3 -0
  756. package/lib/divider/style/index.d.ts.map +1 -0
  757. package/lib/divider/style/index.js +4 -0
  758. package/lib/divider/style/index.js.map +1 -0
  759. package/lib/divider/style/index.less +109 -0
  760. package/lib/drawer/drawer.d.ts +27 -2
  761. package/lib/drawer/drawer.d.ts.map +1 -1
  762. package/lib/drawer/drawer.js +121 -22
  763. package/lib/drawer/drawer.js.map +1 -1
  764. package/lib/drawer/index.d.ts +2 -2
  765. package/lib/drawer/index.d.ts.map +1 -1
  766. package/lib/drawer/index.js +7 -8
  767. package/lib/drawer/index.js.map +1 -1
  768. package/lib/drawer/index.less +151 -0
  769. package/lib/drawer/style/drawer.less +230 -0
  770. package/lib/drawer/style/index.d.ts +3 -0
  771. package/lib/drawer/style/index.d.ts.map +1 -0
  772. package/lib/drawer/style/index.js +4 -0
  773. package/lib/drawer/style/index.js.map +1 -0
  774. package/lib/drawer/style/index.less +3 -0
  775. package/lib/dropdown/index.d.ts +1 -1
  776. package/lib/dropdown/index.d.ts.map +1 -1
  777. package/lib/dropdown/index.js +5 -6
  778. package/lib/dropdown/index.js.map +1 -1
  779. package/lib/dropdown/style/index.d.ts +4 -0
  780. package/lib/dropdown/style/index.d.ts.map +1 -0
  781. package/lib/dropdown/style/index.js +5 -0
  782. package/lib/dropdown/style/index.js.map +1 -0
  783. package/lib/dropdown/style/index.less +283 -0
  784. package/lib/ellipsis/Svg/CopySVG.d.ts +2 -1
  785. package/lib/ellipsis/Svg/CopySVG.d.ts.map +1 -1
  786. package/lib/ellipsis/Svg/CopySVG.js +2 -3
  787. package/lib/ellipsis/Svg/TickSVG.d.ts +2 -1
  788. package/lib/ellipsis/Svg/TickSVG.d.ts.map +1 -1
  789. package/lib/ellipsis/Svg/TickSVG.js +2 -3
  790. package/lib/ellipsis/index.d.ts +2 -1
  791. package/lib/ellipsis/index.d.ts.map +1 -1
  792. package/lib/ellipsis/index.js +12 -9
  793. package/lib/empty/empty.d.ts +2 -2
  794. package/lib/empty/empty.d.ts.map +1 -1
  795. package/lib/empty/empty.js +8 -12
  796. package/lib/empty/empty.stories.js +2 -4
  797. package/lib/empty/index.d.ts +1 -1
  798. package/lib/empty/index.d.ts.map +1 -1
  799. package/lib/empty/index.js +2 -3
  800. package/lib/empty/index.js.map +1 -1
  801. package/lib/empty/style/index.d.ts +3 -0
  802. package/lib/empty/style/index.d.ts.map +1 -0
  803. package/lib/empty/style/index.js +4 -0
  804. package/lib/empty/style/index.js.map +1 -0
  805. package/lib/empty/style/index.less +52 -0
  806. package/lib/exception/exception.js +1 -2
  807. package/lib/exception/index.js +1 -2
  808. package/lib/form/form.d.ts +1 -0
  809. package/lib/form/form.d.ts.map +1 -1
  810. package/lib/form/form.js +16 -13
  811. package/lib/form/form.js.map +1 -1
  812. package/lib/form/form.less +42 -0
  813. package/lib/form/index.d.ts +1 -1
  814. package/lib/form/index.d.ts.map +1 -1
  815. package/lib/form/index.js +2 -3
  816. package/lib/form/index.js.map +1 -1
  817. package/lib/form/style/index.d.ts +4 -0
  818. package/lib/form/style/index.d.ts.map +1 -0
  819. package/lib/form/style/index.js +5 -0
  820. package/lib/form/style/index.js.map +1 -0
  821. package/lib/form/style/index.less +653 -0
  822. package/lib/form/style/mixin.less +126 -0
  823. package/lib/grid/index.d.ts +3 -10
  824. package/lib/grid/index.d.ts.map +1 -1
  825. package/lib/grid/index.js +17 -24
  826. package/lib/grid/index.js.map +1 -1
  827. package/lib/grid/style/index.d.ts +1 -0
  828. package/lib/grid/style/index.d.ts.map +1 -1
  829. package/lib/grid/style/index.js +1 -0
  830. package/lib/grid/style/index.js.map +1 -1
  831. package/lib/grid/style/index.less +24 -26
  832. package/lib/grid/style/mixin.less +63 -19
  833. package/lib/grid-v4/RowContext.d.ts.map +1 -0
  834. package/lib/{grid → grid-v4}/RowContext.js +1 -2
  835. package/lib/grid-v4/RowContext.js.map +1 -0
  836. package/lib/grid-v4/col.d.ts.map +1 -0
  837. package/lib/{grid → grid-v4}/col.js +9 -14
  838. package/lib/grid-v4/col.js.map +1 -0
  839. package/lib/grid-v4/hooks/useBreakpoint.d.ts.map +1 -0
  840. package/lib/{grid → grid-v4}/hooks/useBreakpoint.js +1 -2
  841. package/lib/grid-v4/hooks/useBreakpoint.js.map +1 -0
  842. package/lib/grid-v4/index.d.ts +12 -0
  843. package/lib/grid-v4/index.d.ts.map +1 -0
  844. package/lib/grid-v4/index.js +30 -0
  845. package/lib/grid-v4/index.js.map +1 -0
  846. package/lib/grid-v4/row.d.ts.map +1 -0
  847. package/lib/{grid → grid-v4}/row.js +10 -14
  848. package/lib/grid-v4/row.js.map +1 -0
  849. package/lib/grid-v4/style/index.d.ts +2 -0
  850. package/lib/grid-v4/style/index.d.ts.map +1 -0
  851. package/lib/grid-v4/style/index.js +3 -0
  852. package/lib/grid-v4/style/index.js.map +1 -0
  853. package/lib/grid-v4/style/index.less +124 -0
  854. package/lib/grid-v4/style/mixin.less +57 -0
  855. package/lib/handle/index.d.ts +2 -1
  856. package/lib/handle/index.d.ts.map +1 -1
  857. package/lib/handle/index.js +6 -9
  858. package/lib/handle-icon/index.d.ts +7 -0
  859. package/lib/handle-icon/index.d.ts.map +1 -0
  860. package/lib/handle-icon/index.js +221 -0
  861. package/lib/handle-icon/index.js.map +1 -0
  862. package/lib/handle-icon/index.less +53 -0
  863. package/lib/icon/IconFont.js +4 -6
  864. package/lib/icon/components/Icon.js +16 -22
  865. package/lib/icon/components/utils.js +7 -9
  866. package/lib/icon/index.d.ts +1 -0
  867. package/lib/icon/index.d.ts.map +1 -1
  868. package/lib/icon/index.js +10 -13
  869. package/lib/icon/index.js.map +1 -1
  870. package/lib/icon/style/index.d.ts +4 -0
  871. package/lib/icon/style/index.d.ts.map +1 -0
  872. package/lib/icon/style/index.js +5 -0
  873. package/lib/icon/style/index.js.map +1 -0
  874. package/lib/icon/style/index.less +4 -0
  875. package/lib/icon/style/style.less +6 -0
  876. package/lib/icon/utils.js +1 -2
  877. package/lib/icon-list/index.js +1 -2
  878. package/lib/icon-old/index.d.ts +5 -0
  879. package/lib/icon-old/index.d.ts.map +1 -0
  880. package/lib/icon-old/index.js +24 -0
  881. package/lib/icon-old/index.js.map +1 -0
  882. package/lib/icon-old/style/index.d.ts +3 -0
  883. package/lib/icon-old/style/index.d.ts.map +1 -0
  884. package/lib/icon-old/style/index.js +4 -0
  885. package/lib/icon-old/style/index.js.map +1 -0
  886. package/lib/icon-old/style/index.less +4 -0
  887. package/lib/img/Contain.d.ts +2 -1
  888. package/lib/img/Contain.d.ts.map +1 -1
  889. package/lib/img/Contain.js +3 -6
  890. package/lib/img/Cover.d.ts +2 -1
  891. package/lib/img/Cover.d.ts.map +1 -1
  892. package/lib/img/Cover.js +8 -11
  893. package/lib/img/index.d.ts +2 -1
  894. package/lib/img/index.d.ts.map +1 -1
  895. package/lib/img/index.js +8 -11
  896. package/lib/index.d.ts +8 -2
  897. package/lib/index.d.ts.map +1 -1
  898. package/lib/index.js +45 -3
  899. package/lib/index.js.map +1 -1
  900. package/lib/input/index.d.ts +1 -1
  901. package/lib/input/index.d.ts.map +1 -1
  902. package/lib/input/index.js +2 -3
  903. package/lib/input/index.js.map +1 -1
  904. package/lib/input/input.js +16 -16
  905. package/lib/input/input.js.map +1 -1
  906. package/lib/input/style/index.d.ts +4 -0
  907. package/lib/input/style/index.d.ts.map +1 -0
  908. package/lib/input/style/index.js +5 -0
  909. package/lib/input/style/index.js.map +1 -0
  910. package/lib/input/style/index.less +57 -0
  911. package/lib/input/style/mixin.less +448 -0
  912. package/lib/input/style/search-input.less +34 -0
  913. package/lib/input-number/index.d.ts +1 -1
  914. package/lib/input-number/index.d.ts.map +1 -1
  915. package/lib/input-number/index.js +5 -6
  916. package/lib/input-number/index.js.map +1 -1
  917. package/lib/input-number/style/index.d.ts +3 -0
  918. package/lib/input-number/style/index.d.ts.map +1 -0
  919. package/lib/input-number/style/index.js +4 -0
  920. package/lib/input-number/style/index.js.map +1 -0
  921. package/lib/input-number/style/index.less +179 -0
  922. package/lib/label/index.d.ts +2 -2
  923. package/lib/label/index.d.ts.map +1 -1
  924. package/lib/label/index.js +10 -17
  925. package/lib/layout/index.d.ts +1 -1
  926. package/lib/layout/index.d.ts.map +1 -1
  927. package/lib/layout/index.js +5 -6
  928. package/lib/layout/index.js.map +1 -1
  929. package/lib/layout/style/index.d.ts +3 -0
  930. package/lib/layout/style/index.d.ts.map +1 -0
  931. package/lib/layout/style/index.js +4 -0
  932. package/lib/layout/style/index.js.map +1 -0
  933. package/lib/layout/style/index.less +124 -0
  934. package/lib/layout/style/light.less +15 -0
  935. package/lib/list/index.d.ts +1 -1
  936. package/lib/list/index.d.ts.map +1 -1
  937. package/lib/list/index.js +5 -6
  938. package/lib/list/index.js.map +1 -1
  939. package/lib/list/style/bordered.less +41 -0
  940. package/lib/list/style/index.d.ts +7 -0
  941. package/lib/list/style/index.d.ts.map +1 -0
  942. package/lib/list/style/index.js +8 -0
  943. package/lib/list/style/index.js.map +1 -0
  944. package/lib/list/style/index.less +234 -0
  945. package/lib/list/style/responsive.less +40 -0
  946. package/lib/loading-button/index.d.ts +2 -1
  947. package/lib/loading-button/index.d.ts.map +1 -1
  948. package/lib/loading-button/index.js +8 -11
  949. package/lib/locale/default.d.ts +10 -0
  950. package/lib/locale/default.d.ts.map +1 -1
  951. package/lib/locale/default.js +1 -2
  952. package/lib/locale/en_US.d.ts +10 -0
  953. package/lib/locale/en_US.d.ts.map +1 -1
  954. package/lib/locale/en_US.js +12 -3
  955. package/lib/locale/en_US.js.map +1 -1
  956. package/lib/locale/zh_CN.d.ts +10 -0
  957. package/lib/locale/zh_CN.d.ts.map +1 -1
  958. package/lib/locale/zh_CN.js +12 -3
  959. package/lib/locale/zh_CN.js.map +1 -1
  960. package/lib/locale-provider/index.d.ts +1 -1
  961. package/lib/locale-provider/index.d.ts.map +1 -1
  962. package/lib/locale-provider/index.js +5 -6
  963. package/lib/locale-provider/index.js.map +1 -1
  964. package/lib/locale-provider/style/index.d.ts +2 -0
  965. package/lib/locale-provider/style/index.d.ts.map +1 -0
  966. package/lib/locale-provider/style/index.js +3 -0
  967. package/lib/locale-provider/style/index.js.map +1 -0
  968. package/lib/locale-provider/style/index.less +2 -0
  969. package/lib/mentions/index.d.ts +1 -1
  970. package/lib/mentions/index.d.ts.map +1 -1
  971. package/lib/mentions/index.js +5 -6
  972. package/lib/mentions/index.js.map +1 -1
  973. package/lib/mentions/style/index.d.ts +4 -0
  974. package/lib/mentions/style/index.d.ts.map +1 -0
  975. package/lib/mentions/style/index.js +5 -0
  976. package/lib/mentions/style/index.js.map +1 -0
  977. package/lib/mentions/style/index.less +164 -0
  978. package/lib/menu/index.d.ts +1 -1
  979. package/lib/menu/index.d.ts.map +1 -1
  980. package/lib/menu/index.js +5 -6
  981. package/lib/menu/index.js.map +1 -1
  982. package/lib/menu/style/dark.less +139 -0
  983. package/lib/menu/style/index.d.ts +4 -0
  984. package/lib/menu/style/index.d.ts.map +1 -0
  985. package/lib/menu/style/index.js +5 -0
  986. package/lib/menu/style/index.js.map +1 -0
  987. package/lib/menu/style/index.less +515 -0
  988. package/lib/message/index.d.ts +1 -1
  989. package/lib/message/index.d.ts.map +1 -1
  990. package/lib/message/index.js +5 -6
  991. package/lib/message/index.js.map +1 -1
  992. package/lib/message/style/index.d.ts +3 -0
  993. package/lib/message/style/index.d.ts.map +1 -0
  994. package/lib/message/style/index.js +4 -0
  995. package/lib/message/style/index.js.map +1 -0
  996. package/lib/message/style/index.less +75 -0
  997. package/lib/modal/index.d.ts +1 -1
  998. package/lib/modal/index.d.ts.map +1 -1
  999. package/lib/modal/index.js +2 -3
  1000. package/lib/modal/index.js.map +1 -1
  1001. package/lib/modal/modal.d.ts +1 -1
  1002. package/lib/modal/modal.d.ts.map +1 -1
  1003. package/lib/modal/modal.js +56 -17
  1004. package/lib/modal/modal.js.map +1 -1
  1005. package/lib/modal/modal.less +13 -32
  1006. package/lib/modal/style/confirm.less +92 -0
  1007. package/lib/modal/style/index.d.ts +4 -0
  1008. package/lib/modal/style/index.d.ts.map +1 -0
  1009. package/lib/modal/style/index.js +5 -0
  1010. package/lib/modal/style/index.js.map +1 -0
  1011. package/lib/modal/style/index.less +4 -0
  1012. package/lib/modal/style/modal.less +171 -0
  1013. package/lib/notification/index.d.ts +1 -1
  1014. package/lib/notification/index.d.ts.map +1 -1
  1015. package/lib/notification/index.js +5 -6
  1016. package/lib/notification/index.js.map +1 -1
  1017. package/lib/notification/style/index.d.ts +3 -0
  1018. package/lib/notification/style/index.d.ts.map +1 -0
  1019. package/lib/notification/style/index.js +4 -0
  1020. package/lib/notification/style/index.js.map +1 -0
  1021. package/lib/notification/style/index.less +201 -0
  1022. package/lib/page/Box.d.ts +2 -1
  1023. package/lib/page/Box.d.ts.map +1 -1
  1024. package/lib/page/Box.js +2 -5
  1025. package/lib/page/index.d.ts +2 -1
  1026. package/lib/page/index.d.ts.map +1 -1
  1027. package/lib/page/index.js +7 -12
  1028. package/lib/page/utils.js +4 -7
  1029. package/lib/page-container/index.d.ts +4 -0
  1030. package/lib/page-container/index.d.ts.map +1 -0
  1031. package/lib/page-container/index.js +22 -0
  1032. package/lib/page-container/index.js.map +1 -0
  1033. package/lib/page-container/index.less +38 -0
  1034. package/lib/page-header/index.d.ts +1 -1
  1035. package/lib/page-header/index.d.ts.map +1 -1
  1036. package/lib/page-header/index.js +5 -6
  1037. package/lib/page-header/index.js.map +1 -1
  1038. package/lib/page-header/style/index.d.ts +4 -0
  1039. package/lib/page-header/style/index.d.ts.map +1 -0
  1040. package/lib/page-header/style/index.js +5 -0
  1041. package/lib/page-header/style/index.js.map +1 -0
  1042. package/lib/page-header/style/index.less +119 -0
  1043. package/lib/page-loading/index.d.ts +4 -0
  1044. package/lib/page-loading/index.d.ts.map +1 -0
  1045. package/lib/page-loading/index.js +34 -0
  1046. package/lib/page-loading/index.js.map +1 -0
  1047. package/lib/page-loading/index.less +38 -0
  1048. package/lib/page-loading/loading.gif +0 -0
  1049. package/lib/pagination/index.d.ts +1 -1
  1050. package/lib/pagination/index.d.ts.map +1 -1
  1051. package/lib/pagination/index.js +5 -6
  1052. package/lib/pagination/index.js.map +1 -1
  1053. package/lib/pagination/style/index.d.ts +4 -0
  1054. package/lib/pagination/style/index.d.ts.map +1 -0
  1055. package/lib/pagination/style/index.js +5 -0
  1056. package/lib/pagination/style/index.js.map +1 -0
  1057. package/lib/pagination/style/index.less +400 -0
  1058. package/lib/popconfirm/index.d.ts +1 -1
  1059. package/lib/popconfirm/index.d.ts.map +1 -1
  1060. package/lib/popconfirm/index.js +5 -6
  1061. package/lib/popconfirm/index.js.map +1 -1
  1062. package/lib/popconfirm/style/index.d.ts +4 -0
  1063. package/lib/popconfirm/style/index.d.ts.map +1 -0
  1064. package/lib/popconfirm/style/index.js +5 -0
  1065. package/lib/popconfirm/style/index.js.map +1 -0
  1066. package/lib/popover/index.d.ts +1 -1
  1067. package/lib/popover/index.d.ts.map +1 -1
  1068. package/lib/popover/index.js +5 -6
  1069. package/lib/popover/index.js.map +1 -1
  1070. package/lib/popover/style/index.d.ts +3 -0
  1071. package/lib/popover/style/index.d.ts.map +1 -0
  1072. package/lib/popover/style/index.js +4 -0
  1073. package/lib/popover/style/index.js.map +1 -0
  1074. package/lib/popover/style/index.less +206 -0
  1075. package/lib/prev-locale.js +6 -11
  1076. package/lib/preview-text/index.js +5 -7
  1077. package/lib/progress/index.d.ts +1 -1
  1078. package/lib/progress/index.d.ts.map +1 -1
  1079. package/lib/progress/index.js +5 -6
  1080. package/lib/progress/index.js.map +1 -1
  1081. package/lib/progress/style/index.d.ts +3 -0
  1082. package/lib/progress/style/index.d.ts.map +1 -0
  1083. package/lib/progress/style/index.js +4 -0
  1084. package/lib/progress/style/index.js.map +1 -0
  1085. package/lib/progress/style/index.less +182 -0
  1086. package/lib/query-form/Field/Checkbox.d.ts +2 -1
  1087. package/lib/query-form/Field/Checkbox.d.ts.map +1 -1
  1088. package/lib/query-form/Field/Checkbox.js +3 -6
  1089. package/lib/query-form/Field/Select.d.ts +2 -1
  1090. package/lib/query-form/Field/Select.d.ts.map +1 -1
  1091. package/lib/query-form/Field/Select.js +10 -13
  1092. package/lib/query-form/Field/SelectInput.d.ts +2 -1
  1093. package/lib/query-form/Field/SelectInput.d.ts.map +1 -1
  1094. package/lib/query-form/Field/SelectInput.js +10 -13
  1095. package/lib/query-form/Field/fieldsMap.js +4 -7
  1096. package/lib/query-form/Field/index.d.ts +1 -1
  1097. package/lib/query-form/Field/index.d.ts.map +1 -1
  1098. package/lib/query-form/Field/index.js +19 -24
  1099. package/lib/query-form/createActions.js +2 -3
  1100. package/lib/query-form/index.d.ts +1 -1
  1101. package/lib/query-form/index.d.ts.map +1 -1
  1102. package/lib/query-form/index.js +22 -25
  1103. package/lib/query-list-scene/List.d.ts +1 -1
  1104. package/lib/query-list-scene/List.d.ts.map +1 -1
  1105. package/lib/query-list-scene/List.js +24 -29
  1106. package/lib/query-list-scene/QueryForm.d.ts +1 -1
  1107. package/lib/query-list-scene/QueryForm.d.ts.map +1 -1
  1108. package/lib/query-list-scene/QueryForm.js +17 -22
  1109. package/lib/query-list-scene/QueryListScene.d.ts +1 -1
  1110. package/lib/query-list-scene/QueryListScene.d.ts.map +1 -1
  1111. package/lib/query-list-scene/QueryListScene.js +14 -18
  1112. package/lib/query-list-scene/Title.d.ts +2 -1
  1113. package/lib/query-list-scene/Title.d.ts.map +1 -1
  1114. package/lib/query-list-scene/Title.js +2 -3
  1115. package/lib/query-list-scene/Toolbar.d.ts +2 -1
  1116. package/lib/query-list-scene/Toolbar.d.ts.map +1 -1
  1117. package/lib/query-list-scene/Toolbar.js +6 -9
  1118. package/lib/query-list-scene/createActions.js +2 -3
  1119. package/lib/query-list-scene/index.js +4 -8
  1120. package/lib/radio/index.d.ts +1 -1
  1121. package/lib/radio/index.d.ts.map +1 -1
  1122. package/lib/radio/index.js +5 -6
  1123. package/lib/radio/index.js.map +1 -1
  1124. package/lib/radio/radio-group.js +1 -2
  1125. package/lib/radio/style/index.d.ts +3 -0
  1126. package/lib/radio/style/index.d.ts.map +1 -0
  1127. package/lib/radio/style/index.js +4 -0
  1128. package/lib/radio/style/index.js.map +1 -0
  1129. package/lib/radio/style/index.less +327 -0
  1130. package/lib/rate/index.d.ts +1 -1
  1131. package/lib/rate/index.d.ts.map +1 -1
  1132. package/lib/rate/index.js +5 -6
  1133. package/lib/rate/index.js.map +1 -1
  1134. package/lib/rate/style/index.d.ts +4 -0
  1135. package/lib/rate/style/index.d.ts.map +1 -0
  1136. package/lib/rate/style/index.js +5 -0
  1137. package/lib/rate/style/index.js.map +1 -0
  1138. package/lib/rate/style/index.less +85 -0
  1139. package/lib/render-empty/index.js +1 -2
  1140. package/lib/render-empty/render-empty.js +2 -3
  1141. package/lib/result/index.d.ts +1 -1
  1142. package/lib/result/index.d.ts.map +1 -1
  1143. package/lib/result/index.js +5 -6
  1144. package/lib/result/index.js.map +1 -1
  1145. package/lib/result/style/index.d.ts +3 -0
  1146. package/lib/result/style/index.d.ts.map +1 -0
  1147. package/lib/result/style/index.js +4 -0
  1148. package/lib/result/style/index.js.map +1 -0
  1149. package/lib/result/style/index.less +71 -0
  1150. package/lib/row/index.d.ts +1 -1
  1151. package/lib/row/index.d.ts.map +1 -1
  1152. package/lib/row/index.js +5 -6
  1153. package/lib/row/index.js.map +1 -1
  1154. package/lib/row/style/index.d.ts +3 -0
  1155. package/lib/row/style/index.d.ts.map +1 -0
  1156. package/lib/row/style/index.js +4 -0
  1157. package/lib/row/style/index.js.map +1 -0
  1158. package/lib/segmented/index.d.ts +1 -1
  1159. package/lib/segmented/index.d.ts.map +1 -1
  1160. package/lib/segmented/index.js +8 -12
  1161. package/lib/select/index.d.ts +1 -1
  1162. package/lib/select/index.d.ts.map +1 -1
  1163. package/lib/select/index.js +2 -3
  1164. package/lib/select/index.js.map +1 -1
  1165. package/lib/select/select.d.ts.map +1 -1
  1166. package/lib/select/select.js +12 -14
  1167. package/lib/select/select.js.map +1 -1
  1168. package/lib/select/style/index.d.ts +4 -0
  1169. package/lib/select/style/index.d.ts.map +1 -0
  1170. package/lib/select/style/index.js +5 -0
  1171. package/lib/select/style/index.js.map +1 -0
  1172. package/lib/select/style/index.less +605 -0
  1173. package/lib/skeleton/index.d.ts +1 -1
  1174. package/lib/skeleton/index.d.ts.map +1 -1
  1175. package/lib/skeleton/index.js +5 -6
  1176. package/lib/skeleton/index.js.map +1 -1
  1177. package/lib/skeleton/style/index.d.ts +3 -0
  1178. package/lib/skeleton/style/index.d.ts.map +1 -0
  1179. package/lib/skeleton/style/index.js +4 -0
  1180. package/lib/skeleton/style/index.js.map +1 -0
  1181. package/lib/skeleton/style/index.less +130 -0
  1182. package/lib/slider/index.d.ts +1 -1
  1183. package/lib/slider/index.d.ts.map +1 -1
  1184. package/lib/slider/index.js +5 -6
  1185. package/lib/slider/index.js.map +1 -1
  1186. package/lib/slider/style/index.d.ts +4 -0
  1187. package/lib/slider/style/index.d.ts.map +1 -0
  1188. package/lib/slider/style/index.js +5 -0
  1189. package/lib/slider/style/index.js.map +1 -0
  1190. package/lib/slider/style/index.less +197 -0
  1191. package/lib/spin/index.d.ts +1 -1
  1192. package/lib/spin/index.d.ts.map +1 -1
  1193. package/lib/spin/index.js +5 -6
  1194. package/lib/spin/index.js.map +1 -1
  1195. package/lib/spin/style/index.d.ts +3 -0
  1196. package/lib/spin/style/index.d.ts.map +1 -0
  1197. package/lib/spin/style/index.js +4 -0
  1198. package/lib/spin/style/index.js.map +1 -0
  1199. package/lib/spin/style/index.less +214 -0
  1200. package/lib/statistic/index.d.ts +1 -1
  1201. package/lib/statistic/index.d.ts.map +1 -1
  1202. package/lib/statistic/index.js +5 -6
  1203. package/lib/statistic/index.js.map +1 -1
  1204. package/lib/statistic/style/index.d.ts +3 -0
  1205. package/lib/statistic/style/index.d.ts.map +1 -0
  1206. package/lib/statistic/style/index.js +4 -0
  1207. package/lib/statistic/style/index.js.map +1 -0
  1208. package/lib/statistic/style/index.less +40 -0
  1209. package/lib/steps/index.d.ts +2 -1
  1210. package/lib/steps/index.d.ts.map +1 -1
  1211. package/lib/steps/index.js +3 -3
  1212. package/lib/steps/index.js.map +1 -1
  1213. package/lib/steps/stepStyle/index.less +12 -0
  1214. package/lib/steps/stepStyle/nav.less +281 -0
  1215. package/lib/steps/stepStyle/small.less +5 -0
  1216. package/lib/steps/steps.d.ts +2 -2
  1217. package/lib/steps/steps.d.ts.map +1 -1
  1218. package/lib/steps/steps.js +9 -12
  1219. package/lib/steps/steps.js.map +1 -1
  1220. package/lib/steps/style/compatibility.less +50 -0
  1221. package/lib/steps/style/custom-icon.less +31 -0
  1222. package/lib/steps/style/index.d.ts +3 -0
  1223. package/lib/steps/style/index.d.ts.map +1 -0
  1224. package/lib/steps/style/index.js +4 -0
  1225. package/lib/steps/style/index.js.map +1 -0
  1226. package/lib/steps/style/index.less +241 -6
  1227. package/lib/steps/style/label-placement.less +38 -0
  1228. package/lib/steps/style/nav.less +96 -247
  1229. package/lib/steps/style/progress-dot.less +80 -0
  1230. package/lib/steps/style/small.less +43 -3
  1231. package/lib/steps/style/vertical.less +74 -0
  1232. package/lib/style/color/bezierEasing.less +110 -0
  1233. package/lib/style/color/colorPalette.less +75 -0
  1234. package/lib/style/color/colors.less +149 -0
  1235. package/lib/style/color/tinyColor.less +1184 -0
  1236. package/lib/style/core/base.less +510 -0
  1237. package/lib/style/core/iconfont.less +19 -0
  1238. package/lib/style/core/index.less +4 -0
  1239. package/lib/style/core/motion/fade.less +31 -0
  1240. package/lib/style/core/motion/move.less +120 -0
  1241. package/lib/style/core/motion/other.less +40 -0
  1242. package/lib/style/core/motion/slide.less +120 -0
  1243. package/lib/style/core/motion/swing.less +34 -0
  1244. package/lib/style/core/motion/zoom.less +162 -0
  1245. package/lib/style/core/motion.less +20 -0
  1246. package/lib/style/index.d.ts +2 -0
  1247. package/lib/style/index.d.ts.map +1 -0
  1248. package/lib/style/index.js +3 -0
  1249. package/lib/style/index.js.map +1 -0
  1250. package/lib/style/index.less +2 -0
  1251. package/lib/style/mixins/clearfix.less +13 -0
  1252. package/lib/style/mixins/compatibility.less +22 -0
  1253. package/lib/style/mixins/iconfont.less +44 -0
  1254. package/lib/style/mixins/index.less +10 -0
  1255. package/lib/style/mixins/motion.less +35 -0
  1256. package/lib/style/mixins/operation-unit.less +18 -0
  1257. package/lib/style/mixins/reset.less +13 -0
  1258. package/lib/style/mixins/size.less +10 -0
  1259. package/lib/style/mixins/typography.less +49 -0
  1260. package/lib/style/themes/default.less +700 -0
  1261. package/lib/style/themes/index.less +1 -0
  1262. package/lib/style/v2-compatible-reset.d.ts +2 -0
  1263. package/lib/style/v2-compatible-reset.d.ts.map +1 -0
  1264. package/lib/style/v2-compatible-reset.js +3 -0
  1265. package/lib/style/v2-compatible-reset.js.map +1 -0
  1266. package/lib/style/v2-compatible-reset.less +51 -0
  1267. package/lib/svg-components/illustration-403.d.ts +1 -1
  1268. package/lib/svg-components/illustration-403.js +4 -5
  1269. package/lib/svg-components/illustration-404.d.ts +1 -1
  1270. package/lib/svg-components/illustration-404.js +4 -5
  1271. package/lib/svg-components/illustration-500.d.ts +1 -1
  1272. package/lib/svg-components/illustration-500.js +4 -5
  1273. package/lib/svg-components/illustration-empty.d.ts +1 -1
  1274. package/lib/svg-components/illustration-empty.js +4 -5
  1275. package/lib/svg-components/illustration-failure.d.ts +1 -1
  1276. package/lib/svg-components/illustration-failure.js +4 -5
  1277. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  1278. package/lib/svg-components/illustration-no-access.js +4 -5
  1279. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  1280. package/lib/svg-components/illustration-no-chart.js +4 -5
  1281. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  1282. package/lib/svg-components/illustration-no-result.js +4 -5
  1283. package/lib/svg-components/illustration-offline.d.ts +1 -1
  1284. package/lib/svg-components/illustration-offline.js +4 -5
  1285. package/lib/svg-components/illustration-success.d.ts +1 -1
  1286. package/lib/svg-components/illustration-success.js +4 -5
  1287. package/lib/switch/index.js +4 -5
  1288. package/lib/switch/style/index.d.ts +3 -0
  1289. package/lib/switch/style/index.d.ts.map +1 -0
  1290. package/lib/switch/style/index.js +4 -0
  1291. package/lib/switch/style/index.js.map +1 -0
  1292. package/lib/switch/style/index.less +178 -0
  1293. package/lib/switch/switch.d.ts +1 -1
  1294. package/lib/switch/switch.d.ts.map +1 -1
  1295. package/lib/switch/switch.js +6 -8
  1296. package/lib/switch/switch.js.map +1 -1
  1297. package/lib/table/assets/image-loading-background.d.ts +1 -1
  1298. package/lib/table/assets/image-loading-background.js +4 -5
  1299. package/lib/table/assets/image-loading.d.ts +1 -1
  1300. package/lib/table/assets/image-loading.js +4 -5
  1301. package/lib/table/constants.js +1 -2
  1302. package/lib/table/context.js +1 -2
  1303. package/lib/table/expand.less +49 -0
  1304. package/lib/table/hooks/index.d.ts +1 -0
  1305. package/lib/table/hooks/index.d.ts.map +1 -1
  1306. package/lib/table/hooks/index.js +11 -0
  1307. package/lib/table/hooks/index.js.map +1 -1
  1308. package/lib/table/hooks/use-column-setting.js +4 -5
  1309. package/lib/table/hooks/use-expand-fixed.d.ts +4 -0
  1310. package/lib/table/hooks/use-expand-fixed.d.ts.map +1 -0
  1311. package/lib/table/hooks/use-expand-fixed.js +108 -0
  1312. package/lib/table/hooks/use-expand-fixed.js.map +1 -0
  1313. package/lib/table/index.d.ts +2 -1
  1314. package/lib/table/index.d.ts.map +1 -1
  1315. package/lib/table/index.js +3 -3
  1316. package/lib/table/index.js.map +1 -1
  1317. package/lib/table/style/index.d.ts +9 -0
  1318. package/lib/table/style/index.d.ts.map +1 -0
  1319. package/lib/table/style/index.js +10 -0
  1320. package/lib/table/style/index.js.map +1 -0
  1321. package/lib/table/style/index.less +838 -0
  1322. package/lib/table/style/size.less +180 -0
  1323. package/lib/table/table.d.ts +4 -2
  1324. package/lib/table/table.d.ts.map +1 -1
  1325. package/lib/table/table.js +53 -20
  1326. package/lib/table/table.js.map +1 -1
  1327. package/lib/table/table.less +5 -5
  1328. package/lib/table/table.stories.d.ts +106 -29
  1329. package/lib/table/table.stories.d.ts.map +1 -1
  1330. package/lib/table/table.stories.js +431 -13
  1331. package/lib/table/table.stories.js.map +1 -1
  1332. package/lib/table/total-shower.d.ts +2 -2
  1333. package/lib/table/total-shower.d.ts.map +1 -1
  1334. package/lib/table/total-shower.js +2 -3
  1335. package/lib/table/utils.d.ts +1 -0
  1336. package/lib/table/utils.d.ts.map +1 -1
  1337. package/lib/table/utils.js +13 -0
  1338. package/lib/table/utils.js.map +1 -1
  1339. package/lib/table-container/index.d.ts +3 -0
  1340. package/lib/table-container/index.d.ts.map +1 -0
  1341. package/lib/table-container/index.js +21 -0
  1342. package/lib/table-container/index.js.map +1 -0
  1343. package/lib/table-container/index.less +13 -0
  1344. package/lib/tabs/index.d.ts +1 -1
  1345. package/lib/tabs/index.d.ts.map +1 -1
  1346. package/lib/tabs/index.js +2 -3
  1347. package/lib/tabs/index.js.map +1 -1
  1348. package/lib/tabs/style/card-style.less +186 -0
  1349. package/lib/tabs/style/index.d.ts +3 -0
  1350. package/lib/tabs/style/index.d.ts.map +1 -0
  1351. package/lib/tabs/style/index.js +4 -0
  1352. package/lib/tabs/style/index.js.map +1 -0
  1353. package/lib/tabs/style/index.less +436 -0
  1354. package/lib/tabs/tabs.d.ts.map +1 -1
  1355. package/lib/tabs/tabs.js +8 -9
  1356. package/lib/tabs/tabs.js.map +1 -1
  1357. package/lib/tabs-container/index.d.ts +4 -0
  1358. package/lib/tabs-container/index.d.ts.map +1 -0
  1359. package/lib/tabs-container/index.js +22 -0
  1360. package/lib/tabs-container/index.js.map +1 -0
  1361. package/lib/tabs-container/index.less +51 -0
  1362. package/lib/tag/color.less +53 -0
  1363. package/lib/tag/index.d.ts +4 -3
  1364. package/lib/tag/index.d.ts.map +1 -1
  1365. package/lib/tag/index.js +15 -10
  1366. package/lib/tag/index.js.map +1 -1
  1367. package/lib/tag/style/index.d.ts +3 -0
  1368. package/lib/tag/style/index.d.ts.map +1 -0
  1369. package/lib/tag/style/index.js +4 -0
  1370. package/lib/tag/style/index.js.map +1 -0
  1371. package/lib/tag/style/index.less +106 -0
  1372. package/lib/tag/tag.d.ts +41 -0
  1373. package/lib/tag/tag.d.ts.map +1 -0
  1374. package/lib/tag/tag.js +183 -0
  1375. package/lib/tag/tag.js.map +1 -0
  1376. package/lib/tag/tag.less +228 -0
  1377. package/lib/time-picker/index.d.ts +1 -1
  1378. package/lib/time-picker/index.d.ts.map +1 -1
  1379. package/lib/time-picker/index.js +5 -6
  1380. package/lib/time-picker/index.js.map +1 -1
  1381. package/lib/time-picker/style/index.d.ts +3 -0
  1382. package/lib/time-picker/style/index.d.ts.map +1 -0
  1383. package/lib/time-picker/style/index.js +4 -0
  1384. package/lib/time-picker/style/index.js.map +1 -0
  1385. package/lib/time-picker/style/index.less +247 -0
  1386. package/lib/timeline/index.d.ts +1 -1
  1387. package/lib/timeline/index.d.ts.map +1 -1
  1388. package/lib/timeline/index.js +5 -6
  1389. package/lib/timeline/index.js.map +1 -1
  1390. package/lib/timeline/style/index.d.ts +3 -0
  1391. package/lib/timeline/style/index.d.ts.map +1 -0
  1392. package/lib/timeline/style/index.js +4 -0
  1393. package/lib/timeline/style/index.js.map +1 -0
  1394. package/lib/timeline/style/index.less +167 -0
  1395. package/lib/title/index.d.ts +2 -1
  1396. package/lib/title/index.d.ts.map +1 -1
  1397. package/lib/title/index.js +6 -8
  1398. package/lib/title/index.js.map +1 -1
  1399. package/lib/tntd-action/index.d.ts +4 -0
  1400. package/lib/tntd-action/index.d.ts.map +1 -0
  1401. package/lib/tntd-action/index.js +12 -0
  1402. package/lib/tntd-action/index.js.map +1 -0
  1403. package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +5 -7
  1404. package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +4 -5
  1405. package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +4 -5
  1406. package/lib/tntd-cascader/AntdCascader/component/context.js +3 -6
  1407. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts +2 -2
  1408. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts.map +1 -1
  1409. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +4 -5
  1410. package/lib/tntd-cascader/AntdCascader/component/getIcons.d.ts +2 -2
  1411. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +4 -5
  1412. package/lib/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
  1413. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +9 -12
  1414. package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
  1415. package/lib/tntd-cascader/AntdCascader/config/utils.js +8 -12
  1416. package/lib/tntd-cascader/AntdCascader/config/warning.js +4 -5
  1417. package/lib/tntd-cascader/AntdCascader/index.d.ts.map +1 -1
  1418. package/lib/tntd-cascader/AntdCascader/index.js +14 -18
  1419. package/lib/tntd-cascader/AntdCascader/index.js.map +1 -1
  1420. package/lib/tntd-cascader/AntdCascader/interface.js +1 -2
  1421. package/lib/tntd-cascader/rc-cascader/Cascader.js +7 -10
  1422. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.d.ts +1 -1
  1423. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.d.ts.map +1 -1
  1424. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +6 -7
  1425. package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts +1 -1
  1426. package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts.map +1 -1
  1427. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +8 -10
  1428. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +14 -17
  1429. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +8 -10
  1430. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +11 -13
  1431. package/lib/tntd-cascader/rc-cascader/context.js +4 -5
  1432. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +6 -7
  1433. package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +5 -6
  1434. package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +5 -6
  1435. package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +3 -3
  1436. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
  1437. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +10 -13
  1438. package/lib/tntd-cascader/rc-cascader/index.js +1 -2
  1439. package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js +3 -6
  1440. package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js +2 -2
  1441. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +1 -2
  1442. package/lib/tntd-form/ErrorList.d.ts +1 -1
  1443. package/lib/tntd-form/ErrorList.d.ts.map +1 -1
  1444. package/lib/tntd-form/ErrorList.js +6 -6
  1445. package/lib/tntd-form/Form.d.ts +1 -1
  1446. package/lib/tntd-form/Form.d.ts.map +1 -1
  1447. package/lib/tntd-form/Form.js +15 -18
  1448. package/lib/tntd-form/Form.js.map +1 -1
  1449. package/lib/tntd-form/FormItem/ItemHolder.d.ts +1 -1
  1450. package/lib/tntd-form/FormItem/ItemHolder.d.ts.map +1 -1
  1451. package/lib/tntd-form/FormItem/ItemHolder.js +12 -20
  1452. package/lib/tntd-form/FormItem/ItemHolder.js.map +1 -1
  1453. package/lib/tntd-form/FormItem/index.js +14 -14
  1454. package/lib/tntd-form/FormItemInput.d.ts +1 -1
  1455. package/lib/tntd-form/FormItemInput.d.ts.map +1 -1
  1456. package/lib/tntd-form/FormItemInput.js +5 -6
  1457. package/lib/tntd-form/FormItemInput.js.map +1 -1
  1458. package/lib/tntd-form/FormItemLabel.d.ts +1 -1
  1459. package/lib/tntd-form/FormItemLabel.d.ts.map +1 -1
  1460. package/lib/tntd-form/FormItemLabel.js +9 -13
  1461. package/lib/tntd-form/FormItemLabel.js.map +1 -1
  1462. package/lib/tntd-form/FormList.js +5 -8
  1463. package/lib/tntd-form/context.d.ts +1 -1
  1464. package/lib/tntd-form/context.d.ts.map +1 -1
  1465. package/lib/tntd-form/context.js +14 -19
  1466. package/lib/tntd-form/context.js.map +1 -1
  1467. package/lib/tntd-form/hooks/useDebounce.js +5 -5
  1468. package/lib/tntd-form/hooks/useForm.js +5 -5
  1469. package/lib/tntd-form/hooks/useFormItemStatus.js +1 -2
  1470. package/lib/tntd-form/hooks/useFrameState.js +10 -9
  1471. package/lib/tntd-form/hooks/useItemRef.js +3 -3
  1472. package/lib/tntd-form/index.js +4 -5
  1473. package/lib/tntd-form/style/index.d.ts +1 -1
  1474. package/lib/tntd-form/style/index.d.ts.map +1 -1
  1475. package/lib/tntd-form/style/index.js +1 -1
  1476. package/lib/tntd-form/style/index.js.map +1 -1
  1477. package/lib/tntd-form/style/index.less +1 -1
  1478. package/lib/tntd-form/style/rtl.less +3 -3
  1479. package/lib/tntd-form/validateMessagesContext.js +1 -2
  1480. package/lib/tntd-icon/index.d.ts +2 -1
  1481. package/lib/tntd-icon/index.d.ts.map +1 -1
  1482. package/lib/tntd-icon/index.js +3 -6
  1483. package/lib/tntd-layout/ActionsContext.js +1 -2
  1484. package/lib/tntd-layout/AppList.js +7 -8
  1485. package/lib/tntd-layout/Application.d.ts +2 -1
  1486. package/lib/tntd-layout/Application.d.ts.map +1 -1
  1487. package/lib/tntd-layout/Application.js +7 -8
  1488. package/lib/tntd-layout/Avatar.d.ts +2 -1
  1489. package/lib/tntd-layout/Avatar.d.ts.map +1 -1
  1490. package/lib/tntd-layout/Avatar.js +5 -6
  1491. package/lib/tntd-layout/CompatibleLanguage.d.ts +2 -1
  1492. package/lib/tntd-layout/CompatibleLanguage.d.ts.map +1 -1
  1493. package/lib/tntd-layout/CompatibleLanguage.js +7 -8
  1494. package/lib/tntd-layout/EnterpriseLayout/Avatar.d.ts +2 -1
  1495. package/lib/tntd-layout/EnterpriseLayout/Avatar.d.ts.map +1 -1
  1496. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +5 -6
  1497. package/lib/tntd-layout/EnterpriseLayout/Language.js +7 -8
  1498. package/lib/tntd-layout/EnterpriseLayout/Theme.d.ts +2 -1
  1499. package/lib/tntd-layout/EnterpriseLayout/Theme.d.ts.map +1 -1
  1500. package/lib/tntd-layout/EnterpriseLayout/Theme.js +7 -8
  1501. package/lib/tntd-layout/EnterpriseLayout/index.js +2 -3
  1502. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.d.ts +2 -1
  1503. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.d.ts.map +1 -1
  1504. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +7 -8
  1505. package/lib/tntd-layout/GlobalNavigation/index.js +7 -8
  1506. package/lib/tntd-layout/Header.js +9 -6
  1507. package/lib/tntd-layout/HeaderActions.js +18 -21
  1508. package/lib/tntd-layout/HeaderNavs.js +8 -12
  1509. package/lib/tntd-layout/HeaderTabs.js +10 -14
  1510. package/lib/tntd-layout/Iconfont.d.ts +2 -1
  1511. package/lib/tntd-layout/Iconfont.d.ts.map +1 -1
  1512. package/lib/tntd-layout/Iconfont.js +2 -3
  1513. package/lib/tntd-layout/Language.js +7 -8
  1514. package/lib/tntd-layout/Layout.js +7 -8
  1515. package/lib/tntd-layout/Logo.js +9 -6
  1516. package/lib/tntd-layout/OrgAppList.js +7 -8
  1517. package/lib/tntd-layout/SideMenu.js +8 -11
  1518. package/lib/tntd-layout/Theme.d.ts +2 -1
  1519. package/lib/tntd-layout/Theme.d.ts.map +1 -1
  1520. package/lib/tntd-layout/Theme.js +7 -8
  1521. package/lib/tntd-layout/createActions.js +2 -3
  1522. package/lib/tntd-layout/images/index.js +4 -7
  1523. package/lib/tntd-layout/index.d.ts +3 -2
  1524. package/lib/tntd-layout/index.d.ts.map +1 -1
  1525. package/lib/tntd-layout/index.js +6 -11
  1526. package/lib/tntd-layout/paaslayout/CompactSideMenu.d.ts +2 -1
  1527. package/lib/tntd-layout/paaslayout/CompactSideMenu.d.ts.map +1 -1
  1528. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +7 -8
  1529. package/lib/tntd-layout/paaslayout/Header.d.ts +2 -1
  1530. package/lib/tntd-layout/paaslayout/Header.d.ts.map +1 -1
  1531. package/lib/tntd-layout/paaslayout/Header.js +9 -6
  1532. package/lib/tntd-layout/paaslayout/Logo.d.ts +2 -1
  1533. package/lib/tntd-layout/paaslayout/Logo.d.ts.map +1 -1
  1534. package/lib/tntd-layout/paaslayout/Logo.js +6 -3
  1535. package/lib/tntd-layout/paaslayout/SideMenu.d.ts +2 -1
  1536. package/lib/tntd-layout/paaslayout/SideMenu.d.ts.map +1 -1
  1537. package/lib/tntd-layout/paaslayout/SideMenu.js +7 -8
  1538. package/lib/tntd-layout/paaslayout/index.js +7 -8
  1539. package/lib/tntd-layout/storage.js +14 -27
  1540. package/lib/tntd-modal/index.d.ts +2 -1
  1541. package/lib/tntd-modal/index.d.ts.map +1 -1
  1542. package/lib/tntd-modal/index.js +11 -15
  1543. package/lib/tntd-rc-select/_util/DisabledContext.js +5 -7
  1544. package/lib/tntd-rc-select/_util/FormItemInputContext.js +4 -5
  1545. package/lib/tntd-rc-select/_util/PurePanel.d.ts +2 -2
  1546. package/lib/tntd-rc-select/_util/PurePanel.d.ts.map +1 -1
  1547. package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
  1548. package/lib/tntd-rc-select/_util/SizeContext.js +4 -5
  1549. package/lib/tntd-rc-select/_util/context.js +3 -6
  1550. package/lib/tntd-rc-select/_util/defaultRenderEmpty.d.ts +2 -2
  1551. package/lib/tntd-rc-select/_util/defaultRenderEmpty.d.ts.map +1 -1
  1552. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +4 -5
  1553. package/lib/tntd-rc-select/_util/getIcons.d.ts +2 -2
  1554. package/lib/tntd-rc-select/_util/getIcons.js +4 -5
  1555. package/lib/tntd-rc-select/_util/getIcons.js.map +1 -1
  1556. package/lib/tntd-rc-select/_util/interface.js +1 -2
  1557. package/lib/tntd-rc-select/_util/motion.js +3 -6
  1558. package/lib/tntd-rc-select/_util/type.js +3 -5
  1559. package/lib/tntd-rc-select/_util/useCompactItemContext.js +9 -12
  1560. package/lib/tntd-rc-select/_util/warning.js +4 -5
  1561. package/lib/tntd-rc-select/index.js +11 -14
  1562. package/lib/tntd-rc-select/style/index.less +844 -740
  1563. package/lib/tntd-select/DropDownWrap.js +16 -19
  1564. package/lib/tntd-select/index.d.ts +1 -1
  1565. package/lib/tntd-select/index.d.ts.map +1 -1
  1566. package/lib/tntd-select/index.js +48 -49
  1567. package/lib/tntd-select/index.js.map +1 -1
  1568. package/lib/tooltip/index.d.ts +4 -3
  1569. package/lib/tooltip/index.d.ts.map +1 -1
  1570. package/lib/tooltip/index.js +7 -7
  1571. package/lib/tooltip/index.js.map +1 -1
  1572. package/lib/tooltip/index.less +29 -0
  1573. package/lib/tooltip/style/index.d.ts +3 -0
  1574. package/lib/tooltip/style/index.d.ts.map +1 -0
  1575. package/lib/tooltip/style/index.js +4 -0
  1576. package/lib/tooltip/style/index.js.map +1 -0
  1577. package/lib/tooltip/style/index.less +187 -0
  1578. package/lib/tooltip/tooltip.d.ts +9 -0
  1579. package/lib/tooltip/tooltip.d.ts.map +1 -0
  1580. package/lib/tooltip/tooltip.js +53 -0
  1581. package/lib/tooltip/tooltip.js.map +1 -0
  1582. package/lib/transfer/index.d.ts +1 -1
  1583. package/lib/transfer/index.d.ts.map +1 -1
  1584. package/lib/transfer/index.js +5 -6
  1585. package/lib/transfer/index.js.map +1 -1
  1586. package/lib/transfer/style/customize.less +62 -0
  1587. package/lib/transfer/style/index.d.ts +7 -0
  1588. package/lib/transfer/style/index.d.ts.map +1 -0
  1589. package/lib/transfer/style/index.js +8 -0
  1590. package/lib/transfer/style/index.js.map +1 -0
  1591. package/lib/transfer/style/index.less +191 -0
  1592. package/lib/tree/index.d.ts +1 -1
  1593. package/lib/tree/index.d.ts.map +1 -1
  1594. package/lib/tree/index.js +5 -6
  1595. package/lib/tree/index.js.map +1 -1
  1596. package/lib/tree/style/directory.less +95 -0
  1597. package/lib/tree/style/index.d.ts +3 -0
  1598. package/lib/tree/style/index.d.ts.map +1 -0
  1599. package/lib/tree/style/index.js +4 -0
  1600. package/lib/tree/style/index.js.map +1 -0
  1601. package/lib/tree/style/index.less +280 -0
  1602. package/lib/tree/style/mixin.less +29 -0
  1603. package/lib/tree-select/index.d.ts +1 -1
  1604. package/lib/tree-select/index.d.ts.map +1 -1
  1605. package/lib/tree-select/index.js +6 -8
  1606. package/lib/tree-select/index.js.map +1 -1
  1607. package/lib/tree-select/style/index.d.ts +5 -0
  1608. package/lib/tree-select/style/index.d.ts.map +1 -0
  1609. package/lib/tree-select/style/index.js +6 -0
  1610. package/lib/tree-select/style/index.js.map +1 -0
  1611. package/lib/tree-select/style/index.less +191 -0
  1612. package/lib/typography/index.d.ts +1 -1
  1613. package/lib/typography/index.d.ts.map +1 -1
  1614. package/lib/typography/index.js +5 -6
  1615. package/lib/typography/index.js.map +1 -1
  1616. package/lib/typography/style/index.d.ts +5 -0
  1617. package/lib/typography/style/index.d.ts.map +1 -0
  1618. package/lib/typography/style/index.js +6 -0
  1619. package/lib/typography/style/index.js.map +1 -0
  1620. package/lib/typography/style/index.less +204 -0
  1621. package/lib/upload/index.d.ts +1 -1
  1622. package/lib/upload/index.d.ts.map +1 -1
  1623. package/lib/upload/index.js +5 -6
  1624. package/lib/upload/index.js.map +1 -1
  1625. package/lib/upload/style/index.d.ts +5 -0
  1626. package/lib/upload/style/index.d.ts.map +1 -0
  1627. package/lib/upload/style/index.js +6 -0
  1628. package/lib/upload/style/index.js.map +1 -0
  1629. package/lib/upload/style/index.less +542 -0
  1630. package/lib/utils/checkAuth.js +2 -4
  1631. package/lib/utils/findMenuInfoByPath.js +2 -4
  1632. package/lib/utils/index.js +10 -18
  1633. package/lib/utils/lang.js +6 -11
  1634. package/lib/version/index.d.ts +1 -1
  1635. package/lib/version/index.d.ts.map +1 -1
  1636. package/lib/version/index.js +5 -6
  1637. package/lib/version/index.js.map +1 -1
  1638. package/lib/version/style/index.d.ts +2 -0
  1639. package/lib/version/style/index.d.ts.map +1 -0
  1640. package/lib/version/style/index.js +3 -0
  1641. package/lib/version/style/index.js.map +1 -0
  1642. package/lib/water-mark/index.js +7 -9
  1643. package/package.json +6 -5
  1644. package/themes/common/css2.x.css +154 -0
  1645. package/themes/common/css3.x.css +154 -0
  1646. package/themes/common/index.less +2 -0
  1647. package/themes/default/colors.less +12 -4
  1648. package/themes/default/colorsVar.less +160 -0
  1649. package/themes/default/lessToCssVar.less +127 -0
  1650. package/themes/default/lessVars2.x.less +33 -0
  1651. package/themes/default/lessVars3.x.less +35 -0
  1652. package/themes/default/variables.less +35 -25
  1653. package/themes/default/variablesVar.less +675 -0
  1654. package/themes/utils/colorPalette.less +11 -0
  1655. package/es/array-input/icon.js +0 -25
  1656. package/es/array-input/icon.js.map +0 -1
  1657. package/es/drawer/drawer.less +0 -20
  1658. package/es/grid/RowContext.js.map +0 -1
  1659. package/es/grid/col.js.map +0 -1
  1660. package/es/grid/hooks/useBreakpoint.js.map +0 -1
  1661. package/es/grid/row.js.map +0 -1
  1662. package/lib/array-input/icon.d.ts +0 -3
  1663. package/lib/array-input/icon.d.ts.map +0 -1
  1664. package/lib/array-input/icon.js +0 -34
  1665. package/lib/array-input/icon.js.map +0 -1
  1666. package/lib/drawer/drawer.less +0 -20
  1667. package/lib/grid/RowContext.d.ts.map +0 -1
  1668. package/lib/grid/RowContext.js.map +0 -1
  1669. package/lib/grid/col.d.ts.map +0 -1
  1670. package/lib/grid/col.js.map +0 -1
  1671. package/lib/grid/hooks/useBreakpoint.d.ts.map +0 -1
  1672. package/lib/grid/hooks/useBreakpoint.js.map +0 -1
  1673. package/lib/grid/row.d.ts.map +0 -1
  1674. /package/es/{grid → grid-v4}/RowContext.js +0 -0
  1675. /package/es/{grid → grid-v4}/col.js +0 -0
  1676. /package/es/{grid → grid-v4}/hooks/useBreakpoint.js +0 -0
  1677. /package/es/{grid → grid-v4}/row.js +0 -0
  1678. /package/es/{grid → grid-v4}/style/rtl.less +0 -0
  1679. /package/lib/{grid → grid-v4}/RowContext.d.ts +0 -0
  1680. /package/lib/{grid → grid-v4}/col.d.ts +0 -0
  1681. /package/lib/{grid → grid-v4}/hooks/useBreakpoint.d.ts +0 -0
  1682. /package/lib/{grid → grid-v4}/row.d.ts +0 -0
  1683. /package/lib/{grid → grid-v4}/style/rtl.less +0 -0
@@ -0,0 +1,180 @@
1
+ @table-padding-vertical-md: @table-padding-vertical * 3 / 4;
2
+ @table-padding-horizontal-md: @table-padding-horizontal / 2;
3
+ @table-padding-horizontal-md: @table-padding-horizontal;
4
+ @table-padding-vertical-sm: @table-padding-vertical / 2;
5
+ @table-padding-horizontal-sm: @table-padding-horizontal / 2;
6
+
7
+ .@{table-prefix-cls}-middle {
8
+ > .@{table-prefix-cls}-title,
9
+ > .@{table-prefix-cls}-content > .@{table-prefix-cls}-footer {
10
+ padding: @table-padding-vertical-md @table-padding-horizontal-md;
11
+ }
12
+ > .@{table-prefix-cls}-content {
13
+ > .@{table-prefix-cls}-header > table,
14
+ > .@{table-prefix-cls}-body > table,
15
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-header > table,
16
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-body > table,
17
+ > .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-header > table,
18
+ > .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-header > table,
19
+ > .@{table-prefix-cls}-fixed-left
20
+ > .@{table-prefix-cls}-body-outer
21
+ > .@{table-prefix-cls}-body-inner
22
+ > table,
23
+ > .@{table-prefix-cls}-fixed-right
24
+ > .@{table-prefix-cls}-body-outer
25
+ > .@{table-prefix-cls}-body-inner
26
+ > table {
27
+ > .@{table-prefix-cls}-thead > tr > th,
28
+ > .@{table-prefix-cls}-tbody > tr > td {
29
+ padding: @table-padding-vertical-md @table-padding-horizontal-md;
30
+ }
31
+ }
32
+ }
33
+
34
+ tr.@{table-prefix-cls}-expanded-row td > .@{table-prefix-cls}-wrapper {
35
+ margin: -@table-padding-vertical-md -@table-padding-horizontal / 2 calc(-@table-padding-vertical-md -
36
+ 1px);
37
+ }
38
+ }
39
+
40
+ .@{table-prefix-cls}-small {
41
+ border: @border-width-base @border-style-base @border-color-split;
42
+ border-radius: @table-border-radius-base;
43
+
44
+ > .@{table-prefix-cls}-title,
45
+ > .@{table-prefix-cls}-content > .@{table-prefix-cls}-footer {
46
+ padding: @table-padding-vertical-sm @table-padding-horizontal-sm;
47
+ }
48
+
49
+ > .@{table-prefix-cls}-title {
50
+ top: 0;
51
+ border-bottom: @border-width-base @border-style-base @border-color-split;
52
+ }
53
+
54
+ > .@{table-prefix-cls}-content > .@{table-prefix-cls}-footer {
55
+ background-color: transparent;
56
+ border-top: @border-width-base @border-style-base @border-color-split;
57
+ &::before {
58
+ background-color: transparent;
59
+ }
60
+ }
61
+
62
+ > .@{table-prefix-cls}-content {
63
+ > .@{table-prefix-cls}-body {
64
+ margin: 0 @table-padding-horizontal-sm;
65
+ }
66
+
67
+ > .@{table-prefix-cls}-header > table,
68
+ > .@{table-prefix-cls}-body > table,
69
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-header > table,
70
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-body > table,
71
+ > .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-header > table,
72
+ > .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-header > table,
73
+ > .@{table-prefix-cls}-fixed-left
74
+ > .@{table-prefix-cls}-body-outer
75
+ > .@{table-prefix-cls}-body-inner
76
+ > table,
77
+ > .@{table-prefix-cls}-fixed-right
78
+ > .@{table-prefix-cls}-body-outer
79
+ > .@{table-prefix-cls}-body-inner
80
+ > table {
81
+ border: 0;
82
+ > .@{table-prefix-cls}-thead > tr > th,
83
+ > .@{table-prefix-cls}-tbody > tr > td {
84
+ padding: @table-padding-vertical-sm @table-padding-horizontal-sm;
85
+ }
86
+ > .@{table-prefix-cls}-thead > tr > th {
87
+ background-color: @table-header-bg-sm;
88
+ }
89
+ > .@{table-prefix-cls}-thead > tr {
90
+ border-bottom: @border-width-base @border-style-base @border-color-split;
91
+ }
92
+ > .@{table-prefix-cls}-thead > tr > th.@{table-prefix-cls}-column-sort {
93
+ background-color: @table-body-sort-bg;
94
+ }
95
+ }
96
+
97
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-header > table,
98
+ > .@{table-prefix-cls}-scroll > .@{table-prefix-cls}-body > table,
99
+ > .@{table-prefix-cls}-fixed-left > .@{table-prefix-cls}-header > table,
100
+ > .@{table-prefix-cls}-fixed-right > .@{table-prefix-cls}-header > table,
101
+ > .@{table-prefix-cls}-fixed-left
102
+ > .@{table-prefix-cls}-body-outer
103
+ > .@{table-prefix-cls}-body-inner
104
+ > table,
105
+ > .@{table-prefix-cls}-fixed-right
106
+ > .@{table-prefix-cls}-body-outer
107
+ > .@{table-prefix-cls}-body-inner
108
+ > table {
109
+ padding: 0;
110
+ }
111
+
112
+ .@{table-prefix-cls}-header {
113
+ background-color: @table-header-bg-sm;
114
+ border-radius: @table-border-radius-base @table-border-radius-base 0 0;
115
+ }
116
+
117
+ .@{table-prefix-cls}-placeholder,
118
+ .@{table-prefix-cls}-row:last-child td {
119
+ border-bottom: 0;
120
+ }
121
+ }
122
+
123
+ &.@{table-prefix-cls}-bordered {
124
+ border-right: 0;
125
+
126
+ .@{table-prefix-cls}-title {
127
+ border: 0;
128
+ border-right: @border-width-base @border-style-base @border-color-split;
129
+ border-bottom: @border-width-base @border-style-base @border-color-split;
130
+ }
131
+
132
+ .@{table-prefix-cls}-content {
133
+ border-right: @border-width-base @border-style-base @border-color-split;
134
+ }
135
+
136
+ .@{table-prefix-cls}-footer {
137
+ border: 0;
138
+ border-top: @border-width-base @border-style-base @border-color-split;
139
+ &::before {
140
+ display: none;
141
+ }
142
+ }
143
+
144
+ .@{table-prefix-cls}-placeholder {
145
+ border-right: 0;
146
+ border-bottom: 0;
147
+ border-left: 0;
148
+ }
149
+
150
+ .@{table-prefix-cls}-thead > tr > th.@{table-prefix-cls}-row-cell-last,
151
+ .@{table-prefix-cls}-tbody > tr > td:last-child {
152
+ border-right: none;
153
+ }
154
+
155
+ .@{table-prefix-cls}-fixed-left {
156
+ .@{table-prefix-cls}-thead > tr > th:last-child,
157
+ .@{table-prefix-cls}-tbody > tr > td:last-child {
158
+ border-right: @border-width-base @border-style-base @border-color-split;
159
+ }
160
+ }
161
+
162
+ .@{table-prefix-cls}-fixed-right {
163
+ border-right: @border-width-base @border-style-base @border-color-split;
164
+ border-left: @border-width-base @border-style-base @border-color-split;
165
+ }
166
+ }
167
+
168
+ tr.@{table-prefix-cls}-expanded-row td > .@{table-prefix-cls}-wrapper {
169
+ margin: -@table-padding-vertical-sm -@table-padding-horizontal / 2 calc(-@table-padding-vertical-sm -
170
+ 1px);
171
+ }
172
+
173
+ // https://github.com/ant-design/ant-design/issues/19287#issuecomment-544368967
174
+ &.@{table-prefix-cls}-fixed-header
175
+ > .@{table-prefix-cls}-content
176
+ > .@{table-prefix-cls}-scroll
177
+ > .@{table-prefix-cls}-body {
178
+ border-radius: 0 0 @table-border-radius-base @table-border-radius-base;
179
+ }
180
+ }
@@ -1,12 +1,13 @@
1
- /// <reference types="react" />
2
1
  import type { TableProps as AntdTableProps } from 'antd/lib/table';
3
2
  import Column from 'antd/lib/table/Column';
4
3
  import ColumnGroup from 'antd/lib/table/ColumnGroup';
4
+ import React from 'react';
5
5
  export declare type TableProps<T> = Omit<AntdTableProps<T>, 'locale'> & {
6
6
  storageKey?: string;
7
7
  enableToolbar?: boolean;
8
8
  showCellBorders?: boolean;
9
9
  striped?: boolean;
10
+ sticky?: boolean;
10
11
  shadowed?: boolean;
11
12
  locale?: AntdTableProps<T>['locale'] & {
12
13
  loadingDescription?: string;
@@ -15,10 +16,11 @@ export declare type TableProps<T> = Omit<AntdTableProps<T>, 'locale'> & {
15
16
  refresh?(): void;
16
17
  unUpperConverted?: boolean;
17
18
  unTooltip?: boolean;
19
+ smallPadding?: boolean;
18
20
  upperCaseIgnore?: string[];
19
21
  };
20
22
  export declare const Table: {
21
- <T>({ className, locale, bordered, size, storageKey, columns, children, shadowed, striped, showCellBorders, enableToolbar, refresh, upperCaseIgnore, unUpperConverted, unTooltip, ...rest }: TableProps<T>): JSX.Element;
23
+ <T>({ className, locale, bordered, size, storageKey, columns, children, sticky, shadowed, striped, showCellBorders, enableToolbar, refresh, upperCaseIgnore, unUpperConverted, unTooltip, smallPadding, ...rest }: TableProps<T>): React.JSX.Element;
22
24
  Column: typeof Column;
23
25
  ColumnGroup: typeof ColumnGroup;
24
26
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/table/table.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EACV,UAAU,IAAI,cAAc,EAI7B,MAAM,eAAe,CAAA;AAEtB,OAAO,MAAM,MAAM,sBAAsB,CAAA;AACzC,OAAO,WAAW,MAAM,2BAA2B,CAAA;AAkBnD,oBAAY,UAAU,CAAC,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG;QACrC,kBAAkB,CAAC,EAAE,MAAM,CAAA;QAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,OAAO,CAAC,IAAI,IAAI,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;CAC3B,CAAA;AAmBD,eAAO,MAAM,KAAK;;;;;;CA4LjB,CAAA"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/table/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,UAAU,IAAI,cAAc,EAI7B,MAAM,eAAe,CAAA;AAEtB,OAAO,MAAM,MAAM,sBAAsB,CAAA;AACzC,OAAO,WAAW,MAAM,2BAA2B,CAAA;AAEnD,OAAO,KAAoC,MAAM,OAAO,CAAA;AAmBxD,oBAAY,UAAU,CAAC,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG;QACrC,kBAAkB,CAAC,EAAE,MAAM,CAAA;QAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,OAAO,CAAC,IAAI,IAAI,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;CAC3B,CAAA;AAmBD,eAAO,MAAM,KAAK;;;;;;CAsOjB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
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); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -19,23 +19,22 @@ var _utils = require("./utils");
19
19
  var _lang = require("../utils/lang");
20
20
  var _totalShower = require("./total-shower");
21
21
  var _prevLocale = require("../prev-locale");
22
- 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); }
23
- 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; }
22
+ var _rcResizeObserver = _interopRequireDefault(require("rc-resize-observer"));
23
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
24
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
24
25
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
26
  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; }
26
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27
- 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); }
27
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
28
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
28
29
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
29
30
  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."); }
30
31
  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); }
31
- 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; }
32
- 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; } }
32
+ 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; }
33
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
33
34
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
34
35
  var __rest = void 0 && (void 0).__rest || function (s, e) {
35
36
  var t = {};
36
- for (var p in s) {
37
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
38
- }
37
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
39
38
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
40
39
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
41
40
  }
@@ -47,7 +46,6 @@ var sizeWidthMap = {
47
46
  small: 20,
48
47
  xs: 16 // 8
49
48
  };
50
-
51
49
  var getDefaultPagination = function getDefaultPagination(locale) {
52
50
  return {
53
51
  showTotal: function showTotal(total) {
@@ -70,7 +68,7 @@ var getDefaultPagination = function getDefaultPagination(locale) {
70
68
  // }
71
69
  // return isPrompt
72
70
  // }
73
- var Table = function Table(_a) {
71
+ var Table = exports.Table = function Table(_a) {
74
72
  var className = _a.className,
75
73
  locale = _a.locale,
76
74
  bordered = _a.bordered,
@@ -78,8 +76,9 @@ var Table = function Table(_a) {
78
76
  storageKey = _a.storageKey,
79
77
  columns = _a.columns,
80
78
  children = _a.children,
81
- _a$shadowed = _a.shadowed,
82
- shadowed = _a$shadowed === void 0 ? !bordered : _a$shadowed,
79
+ _a$sticky = _a.sticky,
80
+ sticky = _a$sticky === void 0 ? false : _a$sticky,
81
+ shadowed = _a.shadowed,
83
82
  _a$striped = _a.striped,
84
83
  striped = _a$striped === void 0 ? false : _a$striped,
85
84
  _a$showCellBorders = _a.showCellBorders,
@@ -90,7 +89,8 @@ var Table = function Table(_a) {
90
89
  upperCaseIgnore = _a.upperCaseIgnore,
91
90
  unUpperConverted = _a.unUpperConverted,
92
91
  unTooltip = _a.unTooltip,
93
- rest = __rest(_a, ["className", "locale", "bordered", "size", "storageKey", "columns", "children", "shadowed", "striped", "showCellBorders", "enableToolbar", "refresh", "upperCaseIgnore", "unUpperConverted", "unTooltip"]);
92
+ smallPadding = _a.smallPadding,
93
+ rest = __rest(_a, ["className", "locale", "bordered", "size", "storageKey", "columns", "children", "sticky", "shadowed", "striped", "showCellBorders", "enableToolbar", "refresh", "upperCaseIgnore", "unUpperConverted", "unTooltip", "smallPadding"]);
94
94
  var tableContainer = (0, _react.useRef)(null);
95
95
  // const [innerSize, setInnerSize] = useLocalStorage<TableProps<T>['size']>(
96
96
  // TABLE_SIZE_STORAGE_KEY,
@@ -104,6 +104,10 @@ var Table = function Table(_a) {
104
104
  displayColumns = _useColumnSetting2[0],
105
105
  columnSetting = _useColumnSetting2[1],
106
106
  setColumnSetting = _useColumnSetting2[2];
107
+ var _useState = (0, _react.useState)(Number),
108
+ _useState2 = _slicedToArray(_useState, 2),
109
+ fixedWidth = _useState2[0],
110
+ setFixedWidth = _useState2[1];
107
111
  var lang = (0, _prevLocale.getLanguage)();
108
112
  var newColumns = displayColumns;
109
113
  // 非中文做处理
@@ -183,6 +187,32 @@ var Table = function Table(_a) {
183
187
  // setInnerSize(size)
184
188
  // }
185
189
  // }, [setInnerSize, size])
190
+ /**
191
+ * expand 与 fix 兼容,expand悬浮
192
+ */
193
+ var _useExpandFixed = (0, _hooks.useExpandFixed)(),
194
+ _useExpandFixed2 = _slicedToArray(_useExpandFixed, 2),
195
+ tableKey = _useExpandFixed2[0],
196
+ trigger = _useExpandFixed2[1];
197
+ var stickyProps = (0, _react.useMemo)(function () {
198
+ return {
199
+ onExpandedRowsChange: function onExpandedRowsChange(arg) {
200
+ var key = arg && arg[arg.length - 1];
201
+ if (rest === null || rest === void 0 ? void 0 : rest.onExpandedRowsChange) rest === null || rest === void 0 ? void 0 : rest.onExpandedRowsChange([Number(key)]);
202
+ // 触发MutationObserver监听
203
+ trigger(key);
204
+ },
205
+ expandedRowRender: (rest === null || rest === void 0 ? void 0 : rest.expandedRowRender) ? function (record, index, indent, expanded) {
206
+ var padding = 0;
207
+ return _react["default"].createElement("div", {
208
+ className: "ant-table-expanded-row-fixed",
209
+ style: {
210
+ width: fixedWidth + padding
211
+ }
212
+ }, (rest === null || rest === void 0 ? void 0 : rest.expandedRowRender) && (rest === null || rest === void 0 ? void 0 : rest.expandedRowRender(record, index, indent, expanded)));
213
+ } : undefined
214
+ };
215
+ }, [rest === null || rest === void 0 ? void 0 : rest.expandedRowRender, rest === null || rest === void 0 ? void 0 : rest.onExpandedRowsChange, trigger]);
186
216
  return _react["default"].createElement(_context.TableContext.Provider, {
187
217
  value: {
188
218
  // size: innerSize,
@@ -202,22 +232,25 @@ var Table = function Table(_a) {
202
232
  componentName: "Table",
203
233
  defaultLocale: locale
204
234
  }, function (localeObject) {
205
- var _classNames;
206
235
  // const locale = localeObject as Record<string, string>
207
236
  // const paginationConfig = pagination ? getDefaultPagination(locale) : pagination
208
- return _react["default"].createElement(_table["default"], Object.assign({
237
+ return _react["default"].createElement(_rcResizeObserver["default"], {
238
+ onResize: function onResize(_ref2) {
239
+ var width = _ref2.width;
240
+ setFixedWidth(width);
241
+ }
242
+ }, _react["default"].createElement(_table["default"], Object.assign({
209
243
  className: (0, _classnames["default"])(
210
244
  // prefixCls,
211
- 'tnt-table-wrapper', (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-borderless"), !bordered), _defineProperty(_classNames, "".concat(prefixCls, "-hide-cell-borders"), !showCellBorders), _defineProperty(_classNames, "".concat(prefixCls, "-size-small"), size === 'small'), _defineProperty(_classNames, "".concat(prefixCls, "-size-middle"), size === 'middle'), _defineProperty(_classNames, "".concat(prefixCls, "-size-middle"), size === 'middle'), _defineProperty(_classNames, "".concat(prefixCls, "-striped"), striped), _defineProperty(_classNames, "".concat(prefixCls, "-shadowed"), shadowed), _classNames), className),
245
+ 'tnt-table-wrapper', "".concat(tableKey, " collapse-panel"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-borderless"), !bordered), "".concat(prefixCls, "-hide-cell-borders"), !showCellBorders), "".concat(prefixCls, "-size-small"), size === 'small'), "".concat(prefixCls, "-size-middle"), size === 'middle'), "".concat(prefixCls, "-striped"), striped), "".concat(prefixCls, "-shadowed"), shadowed), "".concat(prefixCls, "-small-padding"), smallPadding), "".concat(prefixCls, "-sticky"), sticky), className),
212
246
  locale: locale,
213
247
  bordered: bordered,
214
248
  size: size,
215
249
  columns: newColumns
216
- }, rest));
250
+ }, rest, sticky ? stickyProps : {})));
217
251
  }));
218
252
  }));
219
253
  };
220
- exports.Table = Table;
221
254
  Table.Column = _Column["default"];
222
255
  Table.ColumnGroup = _ColumnGroup["default"];
223
256
  Table.displayName = 'Table';
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/table/table.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAAwD;AACxD,4FAAmE;AAOnE,0DAAoD;AACpD,kEAAyC;AACzC,4EAAmD;AACnD,4DAAmC;AACnC,+CAA8C;AAC9C,2DAAkC;AAClC,uCAAwC;AACxC,mCAA0C;AAC1C,mCAA0C;AAC1C,wCAA8C;AAC9C,iDAA4C;AAC5C,gDAA4C;AAE5C,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,EAAE,EAAE,EAAE,EAAE,IAAI;CACb,CAAA;AAkBD,MAAM,oBAAoB,GAAG,CAAC,MAAsD,EAAE,EAAE,CAAC,CAAC;IACxF,SAAS,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,8BAAC,0BAAW,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAI;CAC5E,CAAC,CAAA;AAEF,kBAAkB;AAClB,iDAAiD;AACjD,kCAAkC;AAClC,qCAAqC;AACrC,0DAA0D;AAC1D,mEAAmE;AACnE,0BAA0B;AAC1B,UAAU;AACV,QAAQ;AACR,MAAM;AACN,oBAAoB;AACpB,IAAI;AAEG,MAAM,KAAK,GAAG,CAAK,EAkBV,EAAE,EAAE;QAlBM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;AA5LY,QAAA,KAAK,SA4LjB;AAED,aAAK,CAAC,MAAM,GAAG,gBAAM,CAAA;AACrB,aAAK,CAAC,WAAW,GAAG,qBAAW,CAAA;AAC/B,aAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAC3B,aAAK,CAAC,cAAc,GAAG,qBAAc,CAAA","sourcesContent":["import { ConfigConsumer } from 'antd/lib/config-provider'\nimport LocaleReceiver from 'antd/lib/locale-provider/LocaleReceiver'\nimport type {\n TableProps as AntdTableProps,\n ColumnProps,\n TableStateFilters,\n SortOrder,\n} from 'antd/lib/table'\nimport { default as AntdTable } from 'antd/lib/table'\nimport Column from 'antd/lib/table/Column'\nimport ColumnGroup from 'antd/lib/table/ColumnGroup'\nimport classNames from 'classnames'\nimport React, { useMemo, useRef } from 'react'\nimport Ellipsis from '../ellipsis'\nimport { TableContext } from './context'\nimport { useColumnSetting } from './hooks'\nimport { normalizeColumns } from './utils'\nimport { titleCaseUpper } from '../utils/lang'\nimport { TotalShower } from './total-shower'\nimport { getLanguage } from '../prev-locale'\n\nconst sizeWidthMap = {\n default: 40, //20\n middle: 20, //10\n small: 20, //10\n xs: 16, // 8\n}\n\nexport type TableProps<T> = Omit<AntdTableProps<T>, 'locale'> & {\n storageKey?: string\n enableToolbar?: boolean\n showCellBorders?: boolean\n striped?: boolean\n shadowed?: boolean\n locale?: AntdTableProps<T>['locale'] & {\n loadingDescription?: string\n emptyText?: string\n }\n refresh?(): void\n unUpperConverted?: boolean // 不要转换表头\n unTooltip?: boolean // 不要tooltip\n upperCaseIgnore?: string[]\n}\n\nconst getDefaultPagination = (locale: NonNullable<AntdTableProps<unknown>['locale']>) => ({\n showTotal: (total: number) => <TotalShower total={total} locale={locale} />,\n})\n\n// 判断是否是特殊的tooltip\n// const checkIsPrompt = (dom: any): boolean => {\n// let isPrompt: boolean = false\n// if (React.isValidElement(dom)) {\n// if (dom?.type && typeof dom?.type === 'function') {\n// if (['Tooltip', 'Popconfirm'].includes(dom?.type?.name)) {\n// isPrompt = true\n// }\n// }\n// }\n// return isPrompt\n// }\n\nexport const Table = <T,>({\n className,\n locale,\n bordered,\n size,\n storageKey,\n columns,\n children,\n shadowed = !bordered,\n striped = false,\n showCellBorders = false,\n // pagination,\n enableToolbar = false,\n refresh,\n upperCaseIgnore,\n unUpperConverted, // 强制不要转换\n unTooltip,\n ...rest\n}: TableProps<T>) => {\n const tableContainer = useRef<HTMLDivElement>(null)\n // const [innerSize, setInnerSize] = useLocalStorage<TableProps<T>['size']>(\n // TABLE_SIZE_STORAGE_KEY,\n // 'default'\n // )\n const normalizedColumns = useMemo(\n () => columns || normalizeColumns<T>(children as React.ReactChildren),\n [children, columns]\n )\n const [displayColumns, columnSetting, setColumnSetting] = useColumnSetting(\n normalizedColumns,\n storageKey\n )\n\n const lang = getLanguage()\n let newColumns = displayColumns\n // 非中文做处理\n if (lang !== 'cn') {\n if (!unUpperConverted) {\n newColumns = displayColumns?.map((column) => {\n return {\n ...column,\n title: (options: {\n filters: TableStateFilters\n sortOrder?: SortOrder\n sortColumn?: ColumnProps<T> | null\n }) => {\n let title = column.title\n if (typeof title === 'function') {\n title = title(options)\n }\n\n if (React.isValidElement(title)) {\n const renderChildren = (children: [] | string): React.ReactNode => {\n if (React.isValidElement(children) || Array.isArray(children)) {\n return React?.Children?.map(children, (child) => {\n if (React.isValidElement(child)) {\n const childProps = (child.props || {}) as any\n return React.cloneElement(child, {\n ...childProps,\n children: childProps.children?.length\n ? renderChildren(childProps.children)\n : childProps.children,\n title: titleCaseUpper(childProps?.title, upperCaseIgnore),\n })\n } else {\n return titleCaseUpper(child, upperCaseIgnore)\n }\n })\n }\n\n return titleCaseUpper(children, upperCaseIgnore)\n }\n\n return renderChildren(title.props.children)\n }\n\n if (typeof title === 'string') {\n return titleCaseUpper(title, upperCaseIgnore)\n }\n },\n }\n })\n }\n if (!unTooltip) {\n newColumns = newColumns?.map((column) => {\n if (!(column.width && !String(column.width).includes('%'))) {\n return column\n } else {\n return {\n ...column,\n title: (options: {\n filters: TableStateFilters\n sortOrder?: SortOrder\n sortColumn?: ColumnProps<T> | null\n }) => {\n let title = column.title\n if (typeof title === 'function') {\n title = title(options)\n }\n\n let widthLimitObj = {}\n if (column.width && !String(column.width).includes('%')) {\n let width = column.width\n if (typeof width === 'string') {\n width = width?.replace(/[^\\d]/g, ' ')\n }\n widthLimitObj = {\n widthLimit:\n Number(width) -\n Number(sizeWidthMap[size || 'default']) -\n (column.sorter ? 20 : 0),\n }\n }\n return (\n <Ellipsis\n {...widthLimitObj}\n placement={column?.placement || 'topLeft'}\n title={title}\n />\n )\n },\n }\n }\n })\n }\n }\n\n /**\n * update the innerSize when props size changes\n */\n // useEffect(() => {\n // if (size) {\n // setInnerSize(size)\n // }\n // }, [setInnerSize, size])\n\n return (\n <TableContext.Provider\n value={{\n // size: innerSize,\n tableContainer,\n columnSetting,\n refresh,\n upperCaseIgnore,\n // setSize: setInnerSize,\n setColumnSetting,\n }}\n >\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('table')\n return (\n <div ref={tableContainer}>\n <LocaleReceiver componentName=\"Table\" defaultLocale={locale}>\n {(localeObject) => {\n // const locale = localeObject as Record<string, string>\n // const paginationConfig = pagination ? getDefaultPagination(locale) : pagination\n return (\n <AntdTable\n className={classNames(\n // prefixCls,\n 'tnt-table-wrapper',\n {\n [`${prefixCls}-borderless`]: !bordered,\n [`${prefixCls}-hide-cell-borders`]: !showCellBorders,\n [`${prefixCls}-size-small`]: size === 'small',\n [`${prefixCls}-size-middle`]: size === 'middle',\n [`${prefixCls}-size-middle`]: size === 'middle',\n [`${prefixCls}-striped`]: striped,\n [`${prefixCls}-shadowed`]: shadowed,\n },\n className\n )}\n locale={locale}\n bordered={bordered}\n size={size}\n columns={newColumns}\n {...rest}\n />\n )\n }}\n </LocaleReceiver>\n </div>\n )\n }}\n </ConfigConsumer>\n </TableContext.Provider>\n )\n}\n\nTable.Column = Column\nTable.ColumnGroup = ColumnGroup\nTable.displayName = 'Table'\nTable.titleCaseUpper = titleCaseUpper\n"]}
1
+ {"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/table/table.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAAwD;AACxD,4FAAmE;AAOnE,0DAAoD;AACpD,kEAAyC;AACzC,4EAAmD;AACnD,4DAAmC;AACnC,+CAAwD;AACxD,2DAAkC;AAClC,uCAAwC;AACxC,mCAA0D;AAE1D,mCAA0C;AAC1C,wCAA8C;AAC9C,iDAA4C;AAC5C,gDAA4C;AAC5C,4EAA+C;AAC/C,kBAAiC;AAEjC,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,EAAE,EAAE,EAAE,EAAE,IAAI;CACb,CAAA;AAoBD,MAAM,oBAAoB,GAAG,CAAC,MAAsD,EAAE,EAAE,CAAC,CAAC;IACxF,SAAS,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,8BAAC,0BAAW,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAI;CAC5E,CAAC,CAAA;AAEF,kBAAkB;AAClB,iDAAiD;AACjD,kCAAkC;AAClC,qCAAqC;AACrC,0DAA0D;AAC1D,mEAAmE;AACnE,0BAA0B;AAC1B,UAAU;AACV,QAAQ;AACR,MAAM;AACN,oBAAoB;AACpB,IAAI;AAEG,MAAM,KAAK,GAAG,CAAK,EAqBV,EAAE,EAAE;QArBM,EACxB,SAAS,EACT,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,OAAO,EACP,QAAQ,EACR,MAAM,GAAG,KAAK,EACd,QAAQ,EACR,OAAO,GAAG,KAAK,EACf,eAAe,GAAG,KAAK;IACvB,gBAAgB;IAChB,aAAa,GAAG,KAAK,EACrB,OAAO,EACP,eAAe,EACf,gBAAgB,EAAE,SAAS;IAC3B,SAAS,EACT,YAAY,OAG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,CAAA;gBACH,CAAC,CACc,CACb,CACP,CAAA;QACH,CAAC,CACc,CACK,CACzB,CAAA;AACH,CAAC,CAAA;AAtOY,QAAA,KAAK,SAsOjB;AAED,aAAK,CAAC,MAAM,GAAG,gBAAM,CAAA;AACrB,aAAK,CAAC,WAAW,GAAG,qBAAW,CAAA;AAC/B,aAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAC3B,aAAK,CAAC,cAAc,GAAG,qBAAc,CAAA","sourcesContent":["import { ConfigConsumer } from 'antd/lib/config-provider'\nimport LocaleReceiver from 'antd/lib/locale-provider/LocaleReceiver'\nimport type {\n TableProps as AntdTableProps,\n ColumnProps,\n TableStateFilters,\n SortOrder,\n} from 'antd/lib/table'\nimport { default as AntdTable } from 'antd/lib/table'\nimport Column from 'antd/lib/table/Column'\nimport ColumnGroup from 'antd/lib/table/ColumnGroup'\nimport classNames from 'classnames'\nimport React, { useMemo, useRef, useState } from 'react'\nimport Ellipsis from '../ellipsis'\nimport { TableContext } from './context'\nimport { useColumnSetting, useExpandFixed } from './hooks'\nimport type { keyType } from './hooks'\nimport { normalizeColumns } from './utils'\nimport { titleCaseUpper } from '../utils/lang'\nimport { TotalShower } from './total-shower'\nimport { getLanguage } from '../prev-locale'\nimport ResizeObserver from 'rc-resize-observer'\nimport { debounce } from 'lodash'\n\nconst sizeWidthMap = {\n default: 40, //20\n middle: 20, //10\n small: 20, //10\n xs: 16, // 8\n}\n\nexport type TableProps<T> = Omit<AntdTableProps<T>, 'locale'> & {\n storageKey?: string\n enableToolbar?: boolean\n showCellBorders?: boolean\n striped?: boolean\n sticky?: boolean\n shadowed?: boolean\n locale?: AntdTableProps<T>['locale'] & {\n loadingDescription?: string\n emptyText?: string\n }\n refresh?(): void\n unUpperConverted?: boolean // 不要转换表头\n unTooltip?: boolean // 不要tooltip\n smallPadding?: boolean // 缩小间距\n upperCaseIgnore?: string[]\n}\n\nconst getDefaultPagination = (locale: NonNullable<AntdTableProps<unknown>['locale']>) => ({\n showTotal: (total: number) => <TotalShower total={total} locale={locale} />,\n})\n\n// 判断是否是特殊的tooltip\n// const checkIsPrompt = (dom: any): boolean => {\n// let isPrompt: boolean = false\n// if (React.isValidElement(dom)) {\n// if (dom?.type && typeof dom?.type === 'function') {\n// if (['Tooltip', 'Popconfirm'].includes(dom?.type?.name)) {\n// isPrompt = true\n// }\n// }\n// }\n// return isPrompt\n// }\n\nexport const Table = <T,>({\n className,\n locale,\n bordered,\n size,\n storageKey,\n columns,\n children,\n sticky = false,\n shadowed,\n striped = false,\n showCellBorders = false,\n // pagination,\n enableToolbar = false,\n refresh,\n upperCaseIgnore,\n unUpperConverted, // 强制不要转换\n unTooltip,\n smallPadding,\n\n ...rest\n}: TableProps<T>) => {\n const tableContainer = useRef<HTMLDivElement>(null)\n // const [innerSize, setInnerSize] = useLocalStorage<TableProps<T>['size']>(\n // TABLE_SIZE_STORAGE_KEY,\n // 'default'\n // )\n\n const normalizedColumns = useMemo(\n () => columns || normalizeColumns<T>(children as React.ReactChildren),\n [children, columns]\n )\n const [displayColumns, columnSetting, setColumnSetting] = useColumnSetting(\n normalizedColumns,\n storageKey\n )\n\n const [fixedWidth, setFixedWidth] = useState(Number)\n\n const lang = getLanguage()\n let newColumns = displayColumns\n // 非中文做处理\n if (lang !== 'cn') {\n if (!unUpperConverted) {\n newColumns = displayColumns?.map((column) => {\n return {\n ...column,\n title: (options: {\n filters: TableStateFilters\n sortOrder?: SortOrder\n sortColumn?: ColumnProps<T> | null\n }) => {\n let title = column.title\n if (typeof title === 'function') {\n title = title(options)\n }\n\n if (React.isValidElement(title)) {\n const renderChildren = (children: [] | string): React.ReactNode => {\n if (React.isValidElement(children) || Array.isArray(children)) {\n return React?.Children?.map(children, (child) => {\n if (React.isValidElement(child)) {\n const childProps = (child.props || {}) as any\n return React.cloneElement(child, {\n ...childProps,\n children: childProps.children?.length\n ? renderChildren(childProps.children)\n : childProps.children,\n title: titleCaseUpper(childProps?.title, upperCaseIgnore),\n })\n } else {\n return titleCaseUpper(child, upperCaseIgnore)\n }\n })\n }\n\n return titleCaseUpper(children, upperCaseIgnore)\n }\n\n return renderChildren(title.props.children)\n }\n\n if (typeof title === 'string') {\n return titleCaseUpper(title, upperCaseIgnore)\n }\n },\n }\n })\n }\n if (!unTooltip) {\n newColumns = newColumns?.map((column) => {\n if (!(column.width && !String(column.width).includes('%'))) {\n return column\n } else {\n return {\n ...column,\n title: (options: {\n filters: TableStateFilters\n sortOrder?: SortOrder\n sortColumn?: ColumnProps<T> | null\n }) => {\n let title = column.title\n if (typeof title === 'function') {\n title = title(options)\n }\n\n let widthLimitObj = {}\n if (column.width && !String(column.width).includes('%')) {\n let width = column.width\n if (typeof width === 'string') {\n width = width?.replace(/[^\\d]/g, ' ')\n }\n widthLimitObj = {\n widthLimit:\n Number(width) -\n Number(sizeWidthMap[size || 'default']) -\n (column.sorter ? 20 : 0),\n }\n }\n return (\n <Ellipsis\n {...widthLimitObj}\n placement={column?.placement || 'topLeft'}\n title={title}\n />\n )\n },\n }\n }\n })\n }\n }\n\n /**\n * update the innerSize when props size changes\n */\n // useEffect(() => {\n // if (size) {\n // setInnerSize(size)\n // }\n // }, [setInnerSize, size])\n\n /**\n * expand 与 fix 兼容,expand悬浮\n */\n const [tableKey, trigger] = useExpandFixed()\n\n const stickyProps = useMemo(() => {\n return {\n onExpandedRowsChange: (arg: string[] | number[]) => {\n const key: keyType = arg && arg[arg.length - 1]\n if (rest?.onExpandedRowsChange) rest?.onExpandedRowsChange([Number(key)])\n // 触发MutationObserver监听\n trigger(key as string)\n },\n expandedRowRender: rest?.expandedRowRender\n ? (record: T, index: number, indent: number, expanded: boolean) => {\n const padding = 0\n return (\n <div className=\"ant-table-expanded-row-fixed\" style={{ width: fixedWidth + padding }}>\n {rest?.expandedRowRender &&\n rest?.expandedRowRender(record, index, indent, expanded)}\n </div>\n )\n }\n : undefined,\n }\n }, [rest?.expandedRowRender, rest?.onExpandedRowsChange, trigger])\n\n return (\n <TableContext.Provider\n value={{\n // size: innerSize,\n tableContainer,\n columnSetting,\n refresh,\n upperCaseIgnore,\n // setSize: setInnerSize,\n setColumnSetting,\n }}\n >\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('table')\n return (\n <div ref={tableContainer}>\n <LocaleReceiver componentName=\"Table\" defaultLocale={locale}>\n {(localeObject) => {\n // const locale = localeObject as Record<string, string>\n // const paginationConfig = pagination ? getDefaultPagination(locale) : pagination\n return (\n <ResizeObserver\n onResize={({ width }) => {\n setFixedWidth(width)\n }}\n >\n <AntdTable\n className={classNames(\n // prefixCls,\n 'tnt-table-wrapper',\n `${tableKey} collapse-panel`,\n {\n [`${prefixCls}-borderless`]: !bordered,\n [`${prefixCls}-hide-cell-borders`]: !showCellBorders,\n [`${prefixCls}-size-small`]: size === 'small',\n [`${prefixCls}-size-middle`]: size === 'middle',\n [`${prefixCls}-striped`]: striped,\n [`${prefixCls}-shadowed`]: shadowed,\n [`${prefixCls}-small-padding`]: smallPadding,\n [`${prefixCls}-sticky`]: sticky,\n },\n className\n )}\n locale={locale}\n bordered={bordered}\n size={size}\n columns={newColumns}\n {...rest}\n {...(sticky ? stickyProps : {})}\n />\n </ResizeObserver>\n )\n }}\n </LocaleReceiver>\n </div>\n )\n }}\n </ConfigConsumer>\n </TableContext.Provider>\n )\n}\n\nTable.Column = Column\nTable.ColumnGroup = ColumnGroup\nTable.displayName = 'Table'\nTable.titleCaseUpper = titleCaseUpper\n"]}
@@ -3,9 +3,8 @@
3
3
  @spin-prefix-cls: ~'@{ant-prefix}-spin';
4
4
  @table-borderless-shadow: 0 0 14px rgba(0, 0, 0, 0.08);
5
5
 
6
-
7
6
  // .@{table-prefix-cls} {
8
- .tnt-table-wrapper{
7
+ .tnt-table-wrapper {
9
8
  background-color: @white;
10
9
  border-radius: @border-radius-base;
11
10
 
@@ -30,9 +29,9 @@
30
29
  }
31
30
 
32
31
  &.@{table-prefix-cls}-hide-cell-borders {
33
- .@{table-prefix-cls}-thead > tr > th:not(:last-child),
34
- .@{table-prefix-cls}-tbody > tr > td:not(:last-child) {
35
- border-right: none;
32
+ .@{table-prefix-cls}-thead > tr > th,
33
+ .@{table-prefix-cls}-tbody > tr > td {
34
+ border-right: none !important;
36
35
  }
37
36
  }
38
37
 
@@ -68,6 +67,7 @@
68
67
  .@{table-prefix-cls}-placeholder {
69
68
  padding-top: @table-padding-horizontal;
70
69
  padding-bottom: @table-padding-horizontal;
70
+ border-bottom: 0;
71
71
  }
72
72
 
73
73
  // customize the loading of table
@@ -1,32 +1,109 @@
1
- import type { Meta, Story } from '@tntd/storybook-react-storykit';
2
- import { TableProps } from './';
3
- declare const _default: Meta<import("@tntd/storybook-react-storykit").Args>;
1
+ declare namespace _default {
2
+ export { Table as component };
3
+ export const title: string;
4
+ export namespace parameters {
5
+ namespace backgrounds {
6
+ const _default: string;
7
+ export { _default as default };
8
+ export const values: {
9
+ name: string;
10
+ value: string;
11
+ }[];
12
+ }
13
+ }
14
+ }
4
15
  export default _default;
5
- export declare const Empty: Story<TableProps<{
6
- key: string;
7
- name: string;
8
- age: number;
9
- address: string;
10
- }>>;
11
- export declare const Loading: Story<TableProps<{
12
- key: string;
13
- name: string;
14
- age: number;
15
- address: string;
16
- }>>;
17
- export declare const Default: Story<TableProps<{
18
- key: string;
19
- name: string;
20
- age: number;
21
- address: string;
22
- }>>;
23
- interface MockData {
24
- key: string;
25
- age: number;
26
- address: string;
27
- firstName: string;
28
- lastName: string;
29
- tags: string[];
16
+ export function Empty(args: any): React.JSX.Element;
17
+ export namespace Empty {
18
+ namespace args {
19
+ const columns: {
20
+ title: string;
21
+ dataIndex: string;
22
+ key: string;
23
+ }[];
24
+ }
25
+ }
26
+ export function Loading(args: any): React.JSX.Element;
27
+ export namespace Loading {
28
+ export namespace args_1 {
29
+ const columns_1: {
30
+ title: string;
31
+ dataIndex: string;
32
+ key: string;
33
+ }[];
34
+ export { columns_1 as columns };
35
+ export const loading: boolean;
36
+ }
37
+ export { args_1 as args };
38
+ }
39
+ export function Default(args: any): React.JSX.Element;
40
+ export namespace Default {
41
+ export namespace args_2 {
42
+ const columns_2: ({
43
+ title: string;
44
+ dataIndex: string;
45
+ key: string;
46
+ render?: undefined;
47
+ } | {
48
+ title: string;
49
+ dataIndex: string;
50
+ key: string;
51
+ render: (cellData: any) => React.JSX.Element;
52
+ })[];
53
+ export { columns_2 as columns };
54
+ export const dataSource: {
55
+ key: string;
56
+ name: string;
57
+ age: number;
58
+ address: string;
59
+ }[];
60
+ export namespace pagination {
61
+ const total: number;
62
+ const position: string;
63
+ const showSizeChanger: boolean;
64
+ const showQuickJumper: boolean;
65
+ function showTotal(total: any, range: any): string;
66
+ }
67
+ const loading_1: boolean;
68
+ export { loading_1 as loading };
69
+ }
70
+ export { args_2 as args };
71
+ }
72
+ export function ColumnFilter(args: any): React.JSX.Element;
73
+ export namespace ColumnFilter {
74
+ export namespace args_3 {
75
+ const dataSource_1: {
76
+ key: string;
77
+ firstName: string;
78
+ lastName: string;
79
+ age: number;
80
+ address: string;
81
+ tags: string[];
82
+ }[];
83
+ export { dataSource_1 as dataSource };
84
+ export namespace pagination_1 {
85
+ const total_1: number;
86
+ export { total_1 as total };
87
+ const position_1: string;
88
+ export { position_1 as position };
89
+ const showSizeChanger_1: boolean;
90
+ export { showSizeChanger_1 as showSizeChanger };
91
+ const showQuickJumper_1: boolean;
92
+ export { showQuickJumper_1 as showQuickJumper };
93
+ export function showTotal_1(total: any, range: any): string;
94
+ export { showTotal_1 as showTotal };
95
+ }
96
+ export { pagination_1 as pagination };
97
+ const loading_2: boolean;
98
+ export { loading_2 as loading };
99
+ }
100
+ export { args_3 as args };
101
+ }
102
+ export function All(): React.JSX.Element;
103
+ export namespace All {
104
+ const args_4: {};
105
+ export { args_4 as args };
30
106
  }
31
- export declare const ColumnFilter: Story<TableProps<MockData>>;
107
+ import { Table } from "./table";
108
+ import React from "react";
32
109
  //# sourceMappingURL=table.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.stories.d.ts","sourceRoot":"","sources":["../../src/table/table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AAIjE,OAAO,EAAS,UAAU,EAAE,MAAM,IAAI,CAAA;;AAItC,wBASS;AAmBT,eAAO,MAAM,KAAK;SAfT,MAAM;UACL,MAAM;SACP,MAAM;aACF,MAAM;GAYmB,CAAA;AAsBtC,eAAO,MAAM,OAAO;SArCX,MAAM;UACL,MAAM;SACP,MAAM;aACF,MAAM;GAkCqB,CAAA;AAuBxC,eAAO,MAAM,OAAO;SA5DX,MAAM;UACL,MAAM;SACP,MAAM;aACF,MAAM;GAyDqB,CAAA;AA6CxC,UAAU,QAAQ;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,EAAE,CAAA;CACf;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAuCpD,CAAA"}
1
+ {"version":3,"file":"table.stories.d.ts","sourceRoot":"","sources":["../../src/table/table.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAkBA,oDAQC;;;;;;;;;;AARD,sDAQC;;;;;;;;;;;;;AARD,sDAQC;;;;;;;;;;;;;;;;;;;;;;;;;;YAuFc,mDAA2D;;;;;;;AAKnE,2DAuCN;;;;;;;;;;;;;;;;;;;;;YAkCc,4DAA6D;;;;;;;;;AAKrE,yCA0UN"}