tntd 2.8.0-beta.2 → 3.0.0-beta

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 (1787) 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/alert.js +70 -0
  7. package/es/alert/alert.js.map +1 -0
  8. package/es/alert/alert.less +128 -0
  9. package/es/alert/index.js +2 -2
  10. package/es/alert/index.js.map +1 -1
  11. package/es/alert/style/index.js +2 -0
  12. package/es/alert/style/index.js.map +1 -0
  13. package/es/alert/style/index.less +189 -0
  14. package/es/anchor/index.js +1 -1
  15. package/es/anchor/index.js.map +1 -1
  16. package/es/anchor/style/index.js +4 -0
  17. package/es/anchor/style/index.js.map +1 -0
  18. package/es/anchor/style/index.less +82 -0
  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 +51 -0
  45. package/es/button/button.js +30 -3
  46. package/es/button/button.js.map +1 -1
  47. package/es/button/button.less +72 -0
  48. package/es/button/index.js +2 -1
  49. package/es/button/index.js.map +1 -1
  50. package/es/button/style/index.js +2 -0
  51. package/es/button/style/index.js.map +1 -0
  52. package/es/button/style/index.less +224 -0
  53. package/es/button/style/mixin.less +357 -0
  54. package/es/calendar/index.js +1 -1
  55. package/es/calendar/index.js.map +1 -1
  56. package/es/calendar/style/index.js +5 -0
  57. package/es/calendar/style/index.js.map +1 -0
  58. package/es/calendar/style/index.less +278 -0
  59. package/es/card/index.js +1 -1
  60. package/es/card/index.js.map +1 -1
  61. package/es/card/style/index.js +6 -0
  62. package/es/card/style/index.js.map +1 -0
  63. package/es/card/style/index.less +263 -0
  64. package/es/card/style/size.less +25 -0
  65. package/es/carousel/index.js +1 -1
  66. package/es/carousel/index.js.map +1 -1
  67. package/es/carousel/style/index.js +2 -0
  68. package/es/carousel/style/index.js.map +1 -0
  69. package/es/carousel/style/index.less +238 -0
  70. package/es/cascader/index.js +1 -1
  71. package/es/cascader/index.js.map +1 -1
  72. package/es/cascader/style/index.js +5 -0
  73. package/es/cascader/style/index.js.map +1 -0
  74. package/es/cascader/style/index.less +227 -0
  75. package/es/checkbox/check.png +0 -0
  76. package/es/checkbox/checkbox.js +48 -0
  77. package/es/checkbox/checkbox.js.map +1 -0
  78. package/es/checkbox/checkbox.less +69 -0
  79. package/es/checkbox/index.js +4 -8
  80. package/es/checkbox/index.js.map +1 -1
  81. package/es/checkbox/style/index.js +2 -0
  82. package/es/checkbox/style/index.js.map +1 -0
  83. package/es/checkbox/style/index.less +4 -0
  84. package/es/checkbox/style/mixin.less +220 -0
  85. package/es/col/index.js +1 -1
  86. package/es/col/index.js.map +1 -1
  87. package/es/col/style/index.js +4 -0
  88. package/es/col/style/index.js.map +1 -0
  89. package/es/collapse/index.js +1 -1
  90. package/es/collapse/index.js.map +1 -1
  91. package/es/collapse/style/index.js +2 -0
  92. package/es/collapse/style/index.js.map +1 -0
  93. package/es/collapse/style/index.less +134 -0
  94. package/es/color-picker/ColorPicker.js +4 -2
  95. package/es/color-picker/ColorPicker.js.map +1 -1
  96. package/es/color-picker/index.less +25 -8
  97. package/es/comment/index.js +1 -1
  98. package/es/comment/index.js.map +1 -1
  99. package/es/comment/style/index.js +2 -0
  100. package/es/comment/style/index.js.map +1 -0
  101. package/es/comment/style/index.less +93 -0
  102. package/es/config-provider/index.js +1 -1
  103. package/es/config-provider/index.js.map +1 -1
  104. package/es/config-provider/style/index.js +1 -0
  105. package/es/config-provider/style/index.js.map +1 -0
  106. package/es/config-provider/style/index.less +2 -0
  107. package/es/date-picker/DatePicker.js +101 -0
  108. package/es/date-picker/DatePicker.js.map +1 -0
  109. package/es/date-picker/index.js +7 -13
  110. package/es/date-picker/index.js.map +1 -1
  111. package/es/date-picker/index.less +294 -0
  112. package/es/date-picker/style/Calendar.less +402 -0
  113. package/es/date-picker/style/DecadePanel.less +81 -0
  114. package/es/date-picker/style/MonthPanel.less +86 -0
  115. package/es/date-picker/style/MonthPicker.less +11 -0
  116. package/es/date-picker/style/Picker.less +113 -0
  117. package/es/date-picker/style/RangePicker.less +248 -0
  118. package/es/date-picker/style/TimePicker.less +151 -0
  119. package/es/date-picker/style/WeekPicker.less +21 -0
  120. package/es/date-picker/style/YearPanel.less +85 -0
  121. package/es/date-picker/style/index.js +7 -0
  122. package/es/date-picker/style/index.js.map +1 -0
  123. package/es/date-picker/style/index.less +17 -0
  124. package/es/descriptions/descriptions.js +82 -25
  125. package/es/descriptions/descriptions.js.map +1 -1
  126. package/es/descriptions/descriptions.less +107 -22
  127. package/es/descriptions/index.js +3 -3
  128. package/es/descriptions/index.js.map +1 -1
  129. package/es/descriptions/style/index.js +2 -0
  130. package/es/descriptions/style/index.js.map +1 -0
  131. package/es/descriptions/style/index.less +144 -0
  132. package/es/divider/index.js +1 -1
  133. package/es/divider/index.js.map +1 -1
  134. package/es/divider/style/index.js +2 -0
  135. package/es/divider/style/index.js.map +1 -0
  136. package/es/divider/style/index.less +109 -0
  137. package/es/drawer/drawer.js +98 -13
  138. package/es/drawer/drawer.js.map +1 -1
  139. package/es/drawer/index.js +2 -2
  140. package/es/drawer/index.js.map +1 -1
  141. package/es/drawer/index.less +154 -0
  142. package/es/drawer/style/drawer.less +245 -0
  143. package/es/drawer/style/index.js +4 -0
  144. package/es/drawer/style/index.js.map +1 -0
  145. package/es/drawer/style/index.less +3 -0
  146. package/es/dropdown/index.js +1 -1
  147. package/es/dropdown/index.js.map +1 -1
  148. package/es/dropdown/style/index.js +4 -0
  149. package/es/dropdown/style/index.js.map +1 -0
  150. package/es/dropdown/style/index.less +282 -0
  151. package/es/empty/index.js +1 -1
  152. package/es/empty/index.js.map +1 -1
  153. package/es/empty/style/index.js +2 -0
  154. package/es/empty/style/index.js.map +1 -0
  155. package/es/empty/style/index.less +52 -0
  156. package/es/form/form.js +3 -0
  157. package/es/form/form.js.map +1 -1
  158. package/es/form/form.less +36 -0
  159. package/es/form/index.js +1 -1
  160. package/es/form/index.js.map +1 -1
  161. package/es/form/style/index.js +4 -0
  162. package/es/form/style/index.js.map +1 -0
  163. package/es/form/style/index.less +653 -0
  164. package/es/form/style/mixin.less +126 -0
  165. package/es/grid/index.js +3 -13
  166. package/es/grid/index.js.map +1 -1
  167. package/es/grid/style/index.js +1 -1
  168. package/es/grid/style/index.js.map +1 -1
  169. package/es/grid/style/index.less +24 -26
  170. package/es/grid/style/mixin.less +63 -19
  171. package/es/grid-v4/RowContext.js.map +1 -0
  172. package/es/grid-v4/col.js.map +1 -0
  173. package/es/grid-v4/hooks/useBreakpoint.js.map +1 -0
  174. package/es/grid-v4/index.js +14 -0
  175. package/es/grid-v4/index.js.map +1 -0
  176. package/{lib/grid → es/grid-v4}/row.js.map +1 -1
  177. package/es/grid-v4/style/index.js +2 -0
  178. package/es/grid-v4/style/index.js.map +1 -0
  179. package/es/grid-v4/style/index.less +124 -0
  180. package/es/grid-v4/style/mixin.less +57 -0
  181. package/es/icon/index.js +2 -0
  182. package/es/icon/index.js.map +1 -1
  183. package/es/icon/style/index.js +2 -0
  184. package/es/icon/style/index.js.map +1 -0
  185. package/es/icon/style/index.less +4 -0
  186. package/es/icon/style/style.less +4 -0
  187. package/es/icon-old/index.js +4 -0
  188. package/es/icon-old/index.js.map +1 -0
  189. package/es/icon-old/style/index.js +2 -0
  190. package/es/icon-old/style/index.js.map +1 -0
  191. package/es/icon-old/style/index.less +4 -0
  192. package/es/index.js +3 -2
  193. package/es/index.js.map +1 -1
  194. package/es/input/index.js +2 -2
  195. package/es/input/index.js.map +1 -1
  196. package/es/input/input.js +21 -30
  197. package/es/input/input.js.map +1 -1
  198. package/es/input/input.less +123 -20
  199. package/es/input/style/index.js +4 -0
  200. package/es/input/style/index.js.map +1 -0
  201. package/es/input/style/index.less +57 -0
  202. package/es/input/style/mixin.less +449 -0
  203. package/es/input/style/search-input.less +34 -0
  204. package/es/input-number/index.js +5 -6
  205. package/es/input-number/index.js.map +1 -1
  206. package/es/input-number/inputNumber.js +29 -0
  207. package/es/input-number/inputNumber.js.map +1 -0
  208. package/es/input-number/inputNumber.less +12 -0
  209. package/es/input-number/style/index.js +2 -0
  210. package/es/input-number/style/index.js.map +1 -0
  211. package/es/input-number/style/index.less +179 -0
  212. package/es/layout/index.js +1 -1
  213. package/es/layout/index.js.map +1 -1
  214. package/es/layout/style/index.js +2 -0
  215. package/es/layout/style/index.js.map +1 -0
  216. package/es/layout/style/index.less +124 -0
  217. package/es/layout/style/light.less +15 -0
  218. package/es/list/index.js +1 -1
  219. package/es/list/index.js.map +1 -1
  220. package/es/list/style/bordered.less +41 -0
  221. package/es/list/style/index.js +7 -0
  222. package/es/list/style/index.js.map +1 -0
  223. package/es/list/style/index.less +234 -0
  224. package/es/list/style/responsive.less +40 -0
  225. package/es/locale/en_US.js +12 -1
  226. package/es/locale/en_US.js.map +1 -1
  227. package/es/locale/zh_CN.js +12 -1
  228. package/es/locale/zh_CN.js.map +1 -1
  229. package/es/locale-provider/index.js +1 -1
  230. package/es/locale-provider/index.js.map +1 -1
  231. package/es/locale-provider/style/index.js +1 -0
  232. package/es/locale-provider/style/index.js.map +1 -0
  233. package/es/locale-provider/style/index.less +2 -0
  234. package/es/mentions/index.js +1 -1
  235. package/es/mentions/index.js.map +1 -1
  236. package/es/mentions/style/index.js +4 -0
  237. package/es/mentions/style/index.js.map +1 -0
  238. package/es/mentions/style/index.less +164 -0
  239. package/es/menu/index.js +1 -1
  240. package/es/menu/index.js.map +1 -1
  241. package/es/menu/style/dark.less +139 -0
  242. package/es/menu/style/index.js +5 -0
  243. package/es/menu/style/index.js.map +1 -0
  244. package/es/menu/style/index.less +515 -0
  245. package/es/message/index.js +1 -1
  246. package/es/message/index.js.map +1 -1
  247. package/es/message/message.less +2 -1
  248. package/es/message/style/index.js +2 -0
  249. package/es/message/style/index.js.map +1 -0
  250. package/es/message/style/index.less +75 -0
  251. package/es/modal/index.js +3 -4
  252. package/es/modal/index.js.map +1 -1
  253. package/es/modal/index.less +36 -0
  254. package/es/modal/modal.js +141 -12
  255. package/es/modal/modal.js.map +1 -1
  256. package/es/modal/style/confirm.less +96 -0
  257. package/es/modal/style/index.js +5 -0
  258. package/es/modal/style/index.js.map +1 -0
  259. package/es/modal/style/index.less +4 -0
  260. package/es/modal/style/modal.less +165 -0
  261. package/es/notification/assets/index.js +2 -0
  262. package/es/notification/assets/index.js.map +1 -0
  263. package/es/notification/assets/svg-error-tip.js +145 -0
  264. package/es/notification/assets/svg-error-tip.js.map +1 -0
  265. package/es/notification/assets/svg-success-tip.js +162 -0
  266. package/es/notification/assets/svg-success-tip.js.map +1 -0
  267. package/es/notification/index.js +2 -2
  268. package/es/notification/index.js.map +1 -1
  269. package/es/notification/notification.js +80 -0
  270. package/es/notification/notification.js.map +1 -0
  271. package/es/notification/notification.less +59 -0
  272. package/es/notification/style/index.js +2 -0
  273. package/es/notification/style/index.js.map +1 -0
  274. package/es/notification/style/index.less +201 -0
  275. package/es/page/index.js +0 -1
  276. package/es/page-header/index.js +1 -1
  277. package/es/page-header/index.js.map +1 -1
  278. package/es/page-header/style/index.js +4 -0
  279. package/es/page-header/style/index.js.map +1 -0
  280. package/es/page-header/style/index.less +119 -0
  281. package/es/pagination/index.js +1 -1
  282. package/es/pagination/index.js.map +1 -1
  283. package/es/pagination/style/index.js +4 -0
  284. package/es/pagination/style/index.js.map +1 -0
  285. package/es/pagination/style/index.less +400 -0
  286. package/es/popconfirm/index.js +3 -3
  287. package/es/popconfirm/index.js.map +1 -1
  288. package/es/popconfirm/index.less +26 -0
  289. package/es/popconfirm/popconfirm.js +40 -0
  290. package/es/popconfirm/popconfirm.js.map +1 -0
  291. package/es/popconfirm/style/index.js +6 -0
  292. package/es/popconfirm/style/index.js.map +1 -0
  293. package/es/popover/index.js +3 -3
  294. package/es/popover/index.js.map +1 -1
  295. package/es/popover/index.less +51 -0
  296. package/es/popover/popover.js +33 -0
  297. package/es/popover/popover.js.map +1 -0
  298. package/es/popover/style/index.js +5 -0
  299. package/es/popover/style/index.js.map +1 -0
  300. package/es/popover/style/index.less +205 -0
  301. package/es/preview-text/index.js.map +1 -1
  302. package/es/progress/index.js +3 -3
  303. package/es/progress/index.js.map +1 -1
  304. package/es/progress/progress.js +132 -0
  305. package/es/progress/progress.js.map +1 -0
  306. package/es/progress/progress.less +82 -0
  307. package/es/progress/style/index.js +2 -0
  308. package/es/progress/style/index.js.map +1 -0
  309. package/es/progress/style/index.less +182 -0
  310. package/es/query-form/Field/Composition/FieldPopover.js +284 -0
  311. package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
  312. package/es/query-form/Field/Composition/FieldPopover.less +35 -0
  313. package/es/query-form/Field/Composition/Select.js +108 -0
  314. package/es/query-form/Field/Composition/Select.js.map +1 -0
  315. package/es/query-form/Field/Composition/index.js +282 -0
  316. package/es/query-form/Field/Composition/index.js.map +1 -0
  317. package/es/query-form/Field/Composition/index.less +106 -0
  318. package/es/query-form/Field/Composition/utils.js +19 -0
  319. package/es/query-form/Field/Composition/utils.js.map +1 -0
  320. package/es/query-form/index.js +109 -125
  321. package/es/query-form/index.js.map +1 -1
  322. package/es/query-form/index.less +12 -9
  323. package/es/query-list-scene/index.less +4 -4
  324. package/es/radio/index.js +4 -6
  325. package/es/radio/index.js.map +1 -1
  326. package/es/radio/radio.js +57 -0
  327. package/es/radio/radio.js.map +1 -0
  328. package/es/radio/radio.less +43 -0
  329. package/es/radio/style/index.js +2 -0
  330. package/es/radio/style/index.js.map +1 -0
  331. package/es/radio/style/index.less +327 -0
  332. package/es/rate/index.js +1 -1
  333. package/es/rate/index.js.map +1 -1
  334. package/es/rate/style/index.js +4 -0
  335. package/es/rate/style/index.js.map +1 -0
  336. package/es/rate/style/index.less +85 -0
  337. package/es/result/index.js +1 -1
  338. package/es/result/index.js.map +1 -1
  339. package/es/result/style/index.js +2 -0
  340. package/es/result/style/index.js.map +1 -0
  341. package/es/result/style/index.less +71 -0
  342. package/es/row/index.js +1 -1
  343. package/es/row/index.js.map +1 -1
  344. package/es/row/style/index.js +4 -0
  345. package/es/row/style/index.js.map +1 -0
  346. package/es/segmented/index.less +126 -112
  347. package/es/select/index.js +2 -2
  348. package/es/select/index.js.map +1 -1
  349. package/es/select/select.js +5 -6
  350. package/es/select/select.js.map +1 -1
  351. package/es/select/select.less +83 -9
  352. package/es/select/style/index.js +4 -0
  353. package/es/select/style/index.js.map +1 -0
  354. package/es/select/style/index.less +604 -0
  355. package/es/skeleton/index.js +1 -1
  356. package/es/skeleton/index.js.map +1 -1
  357. package/es/skeleton/style/index.js +2 -0
  358. package/es/skeleton/style/index.js.map +1 -0
  359. package/es/skeleton/style/index.less +130 -0
  360. package/es/slider/index.js +1 -1
  361. package/es/slider/index.js.map +1 -1
  362. package/es/slider/style/index.js +4 -0
  363. package/es/slider/style/index.js.map +1 -0
  364. package/es/slider/style/index.less +197 -0
  365. package/es/spin/index.js +1 -1
  366. package/es/spin/index.js.map +1 -1
  367. package/es/spin/style/index.js +2 -0
  368. package/es/spin/style/index.js.map +1 -0
  369. package/es/spin/style/index.less +214 -0
  370. package/es/statistic/index.js +1 -1
  371. package/es/statistic/index.js.map +1 -1
  372. package/es/statistic/style/index.js +2 -0
  373. package/es/statistic/style/index.js.map +1 -0
  374. package/es/statistic/style/index.less +40 -0
  375. package/es/steps/assets/background_left.svg +12 -0
  376. package/es/steps/assets/background_right.svg +12 -0
  377. package/es/steps/assets/horizontal_line.svg +3 -0
  378. package/es/steps/assets/vertical_line.svg +3 -0
  379. package/es/steps/index.js +10 -2
  380. package/es/steps/index.js.map +1 -1
  381. package/es/steps/stepStyle/icon.less +51 -0
  382. package/es/steps/stepStyle/index.less +177 -0
  383. package/es/steps/stepStyle/nav.less +73 -0
  384. package/es/steps/stepStyle/progress-dot.less +10 -0
  385. package/es/steps/stepStyle/variables.less +8 -0
  386. package/es/steps/stepStyle/vertical.less +41 -0
  387. package/es/steps/steps.js +53 -27
  388. package/es/steps/steps.js.map +1 -1
  389. package/es/steps/style/compatibility.less +50 -0
  390. package/es/steps/style/custom-icon.less +31 -0
  391. package/es/steps/style/index.js +10 -0
  392. package/es/steps/style/index.js.map +1 -0
  393. package/es/steps/style/index.less +241 -6
  394. package/es/steps/style/label-placement.less +38 -0
  395. package/es/steps/style/nav.less +96 -247
  396. package/es/steps/style/progress-dot.less +80 -0
  397. package/es/steps/style/small.less +43 -3
  398. package/es/steps/style/vertical.less +74 -0
  399. package/es/style/color/bezierEasing.less +110 -0
  400. package/es/style/color/colorPalette.less +75 -0
  401. package/es/style/color/colors.less +149 -0
  402. package/es/style/color/tinyColor.less +1184 -0
  403. package/es/style/core/base.less +510 -0
  404. package/es/style/core/iconfont.less +19 -0
  405. package/es/style/core/index.less +4 -0
  406. package/es/style/core/motion/fade.less +31 -0
  407. package/es/style/core/motion/move.less +120 -0
  408. package/es/style/core/motion/other.less +40 -0
  409. package/es/style/core/motion/slide.less +120 -0
  410. package/es/style/core/motion/swing.less +34 -0
  411. package/es/style/core/motion/zoom.less +162 -0
  412. package/es/style/core/motion.less +20 -0
  413. package/es/style/index.js +1 -0
  414. package/es/style/index.js.map +1 -0
  415. package/es/style/index.less +2 -0
  416. package/es/style/mixins/clearfix.less +13 -0
  417. package/es/style/mixins/compatibility.less +22 -0
  418. package/es/style/mixins/iconfont.less +43 -0
  419. package/es/style/mixins/index.less +10 -0
  420. package/es/style/mixins/motion.less +35 -0
  421. package/es/style/mixins/operation-unit.less +18 -0
  422. package/es/style/mixins/reset.less +13 -0
  423. package/es/style/mixins/size.less +10 -0
  424. package/es/style/mixins/typography.less +49 -0
  425. package/es/style/themes/default.less +700 -0
  426. package/es/style/themes/index.less +1 -0
  427. package/es/style/v2-compatible-reset.js +1 -0
  428. package/es/style/v2-compatible-reset.js.map +1 -0
  429. package/es/style/v2-compatible-reset.less +51 -0
  430. package/es/switch/index.less +46 -0
  431. package/es/switch/style/index.js +3 -0
  432. package/es/switch/style/index.js.map +1 -0
  433. package/es/switch/style/index.less +178 -0
  434. package/es/switch/switch.js +41 -3
  435. package/es/switch/switch.js.map +1 -1
  436. package/es/table/index.js +1 -1
  437. package/es/table/index.js.map +1 -1
  438. package/es/table/style/index.js +10 -0
  439. package/es/table/style/index.js.map +1 -0
  440. package/es/table/style/index.less +844 -0
  441. package/es/table/style/size.less +179 -0
  442. package/es/table/table.js +37 -7
  443. package/es/table/table.js.map +1 -1
  444. package/es/table/table.less +33 -5
  445. package/es/tabs/index.js +2 -1
  446. package/es/tabs/index.js.map +1 -1
  447. package/es/tabs/style/card-style.less +186 -0
  448. package/es/tabs/style/index.js +2 -0
  449. package/es/tabs/style/index.js.map +1 -0
  450. package/es/tabs/style/index.less +437 -0
  451. package/es/tabs/tabs.js +22 -4
  452. package/es/tabs/tabs.js.map +1 -1
  453. package/es/tabs/tabs.less +114 -0
  454. package/es/tag/color.less +43 -0
  455. package/es/tag/index.js +12 -3
  456. package/es/tag/index.js.map +1 -1
  457. package/es/tag/style/index.js +2 -0
  458. package/es/tag/style/index.js.map +1 -0
  459. package/es/tag/style/index.less +106 -0
  460. package/es/tag/tag.js +171 -0
  461. package/es/tag/tag.js.map +1 -0
  462. package/es/tag/tag.less +192 -0
  463. package/es/time-picker/TimePicker.js +36 -0
  464. package/es/time-picker/TimePicker.js.map +1 -0
  465. package/es/time-picker/index.js +3 -3
  466. package/es/time-picker/index.js.map +1 -1
  467. package/es/time-picker/index.less +38 -0
  468. package/es/time-picker/style/index.js +2 -0
  469. package/es/time-picker/style/index.js.map +1 -0
  470. package/es/time-picker/style/index.less +246 -0
  471. package/es/timeline/index.js +1 -1
  472. package/es/timeline/index.js.map +1 -1
  473. package/es/timeline/style/index.js +2 -0
  474. package/es/timeline/style/index.js.map +1 -0
  475. package/es/timeline/style/index.less +167 -0
  476. package/es/tntd-action/Action.js +66 -0
  477. package/es/tntd-action/Action.js.map +1 -0
  478. package/es/tntd-action/index.js +65 -0
  479. package/es/tntd-action/index.js.map +1 -0
  480. package/es/tntd-action/index.less +36 -0
  481. package/es/tntd-cascader/AntdCascader/index.less +28 -27
  482. package/es/tntd-cascader/rc-cascader/OptionList/index.js +0 -1
  483. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +0 -1
  484. package/es/tntd-form/Form.js.map +1 -1
  485. package/es/tntd-form/FormItem/ItemHolder.js +1 -1
  486. package/es/tntd-form/FormItem/ItemHolder.js.map +1 -1
  487. package/es/tntd-form/FormItemInput.js +1 -1
  488. package/es/tntd-form/FormItemInput.js.map +1 -1
  489. package/es/tntd-form/FormItemLabel.js +1 -1
  490. package/es/tntd-form/FormItemLabel.js.map +1 -1
  491. package/es/tntd-form/context.js.map +1 -1
  492. package/es/tntd-form/style/index.js +1 -1
  493. package/es/tntd-form/style/index.js.map +1 -1
  494. package/es/tntd-form/style/index.less +1 -1
  495. package/es/tntd-form/style/rtl.less +3 -3
  496. package/es/tntd-layout/index.js +0 -1
  497. package/es/tntd-rc-select/style/index.less +844 -740
  498. package/es/tntd-select/index.js +0 -1
  499. package/es/tooltip/index.js +3 -3
  500. package/es/tooltip/index.js.map +1 -1
  501. package/es/tooltip/index.less +24 -0
  502. package/es/tooltip/style/index.js +3 -0
  503. package/es/tooltip/style/index.js.map +1 -0
  504. package/es/tooltip/style/index.less +187 -0
  505. package/es/tooltip/tooltip.js +32 -0
  506. package/es/tooltip/tooltip.js.map +1 -0
  507. package/es/transfer/index.js +1 -1
  508. package/es/transfer/index.js.map +1 -1
  509. package/es/transfer/style/customize.less +62 -0
  510. package/es/transfer/style/index.js +7 -0
  511. package/es/transfer/style/index.js.map +1 -0
  512. package/es/transfer/style/index.less +191 -0
  513. package/es/tree/index.js +1 -1
  514. package/es/tree/index.js.map +1 -1
  515. package/es/tree/style/directory.less +95 -0
  516. package/es/tree/style/index.js +2 -0
  517. package/es/tree/style/index.js.map +1 -0
  518. package/es/tree/style/index.less +280 -0
  519. package/es/tree/style/mixin.less +29 -0
  520. package/es/tree-select/index.js +1 -1
  521. package/es/tree-select/index.js.map +1 -1
  522. package/es/tree-select/style/index.js +6 -0
  523. package/es/tree-select/style/index.js.map +1 -0
  524. package/es/tree-select/style/index.less +191 -0
  525. package/es/typography/index.js +1 -1
  526. package/es/typography/index.js.map +1 -1
  527. package/es/typography/style/index.js +5 -0
  528. package/es/typography/style/index.js.map +1 -0
  529. package/es/typography/style/index.less +204 -0
  530. package/es/upload/index.js +1 -1
  531. package/es/upload/index.js.map +1 -1
  532. package/es/upload/style/index.js +5 -0
  533. package/es/upload/style/index.js.map +1 -0
  534. package/es/upload/style/index.less +542 -0
  535. package/es/utils/lang.js +8 -2
  536. package/es/utils/lang.js.map +1 -1
  537. package/es/version/index.js +1 -1
  538. package/es/version/index.js.map +1 -1
  539. package/es/version/style/index.js +2 -0
  540. package/es/version/style/index.js.map +1 -0
  541. package/lib/_util/context.js +3 -6
  542. package/lib/_util/defaultRenderEmpty.d.ts +2 -2
  543. package/lib/_util/defaultRenderEmpty.d.ts.map +1 -1
  544. package/lib/_util/defaultRenderEmpty.js +4 -5
  545. package/lib/_util/hooks/useFlexGapSupport.js +7 -8
  546. package/lib/_util/hooks/useForceUpdate.js +5 -5
  547. package/lib/_util/motion.js +3 -6
  548. package/lib/_util/reactNode.js +4 -5
  549. package/lib/_util/responsiveObserve.js +6 -9
  550. package/lib/_util/styleChecker.js +3 -5
  551. package/lib/_util/type.js +3 -5
  552. package/lib/_util/warning.js +5 -6
  553. package/lib/actions/index.js +1 -2
  554. package/lib/affix/index.d.ts +1 -1
  555. package/lib/affix/index.d.ts.map +1 -1
  556. package/lib/affix/index.js +5 -6
  557. package/lib/affix/index.js.map +1 -1
  558. package/lib/affix/style/index.d.ts +3 -0
  559. package/lib/affix/style/index.d.ts.map +1 -0
  560. package/lib/affix/style/index.js +4 -0
  561. package/lib/affix/style/index.js.map +1 -0
  562. package/lib/affix/style/index.less +6 -0
  563. package/lib/alert/alert.d.ts +12 -0
  564. package/lib/alert/alert.d.ts.map +1 -0
  565. package/lib/alert/alert.js +92 -0
  566. package/lib/alert/alert.js.map +1 -0
  567. package/lib/alert/alert.less +128 -0
  568. package/lib/alert/index.d.ts +2 -2
  569. package/lib/alert/index.d.ts.map +1 -1
  570. package/lib/alert/index.js +8 -10
  571. package/lib/alert/index.js.map +1 -1
  572. package/lib/alert/style/index.d.ts +3 -0
  573. package/lib/alert/style/index.d.ts.map +1 -0
  574. package/lib/alert/style/index.js +4 -0
  575. package/lib/alert/style/index.js.map +1 -0
  576. package/lib/alert/style/index.less +189 -0
  577. package/lib/anchor/index.d.ts +1 -1
  578. package/lib/anchor/index.d.ts.map +1 -1
  579. package/lib/anchor/index.js +5 -6
  580. package/lib/anchor/index.js.map +1 -1
  581. package/lib/anchor/style/index.d.ts +4 -0
  582. package/lib/anchor/style/index.d.ts.map +1 -0
  583. package/lib/anchor/style/index.js +5 -0
  584. package/lib/anchor/style/index.js.map +1 -0
  585. package/lib/anchor/style/index.less +82 -0
  586. package/lib/array-input/icon.d.ts +3 -2
  587. package/lib/array-input/icon.d.ts.map +1 -1
  588. package/lib/array-input/icon.js +3 -5
  589. package/lib/array-input/index.d.ts +2 -1
  590. package/lib/array-input/index.d.ts.map +1 -1
  591. package/lib/array-input/index.js +8 -10
  592. package/lib/auth-context/index.js +2 -3
  593. package/lib/auto-complete/index.d.ts +1 -1
  594. package/lib/auto-complete/index.d.ts.map +1 -1
  595. package/lib/auto-complete/index.js +5 -6
  596. package/lib/auto-complete/index.js.map +1 -1
  597. package/lib/auto-complete/style/index.d.ts +5 -0
  598. package/lib/auto-complete/style/index.d.ts.map +1 -0
  599. package/lib/auto-complete/style/index.js +6 -0
  600. package/lib/auto-complete/style/index.js.map +1 -0
  601. package/lib/auto-complete/style/index.less +92 -0
  602. package/lib/avatar/index.d.ts +1 -1
  603. package/lib/avatar/index.d.ts.map +1 -1
  604. package/lib/avatar/index.js +5 -6
  605. package/lib/avatar/index.js.map +1 -1
  606. package/lib/avatar/style/index.d.ts +3 -0
  607. package/lib/avatar/style/index.d.ts.map +1 -0
  608. package/lib/avatar/style/index.js +4 -0
  609. package/lib/avatar/style/index.js.map +1 -0
  610. package/lib/avatar/style/index.less +59 -0
  611. package/lib/back-top/index.d.ts +1 -1
  612. package/lib/back-top/index.d.ts.map +1 -1
  613. package/lib/back-top/index.js +5 -6
  614. package/lib/back-top/index.js.map +1 -1
  615. package/lib/back-top/style/index.d.ts +3 -0
  616. package/lib/back-top/style/index.d.ts.map +1 -0
  617. package/lib/back-top/style/index.js +4 -0
  618. package/lib/back-top/style/index.js.map +1 -0
  619. package/lib/back-top/style/index.less +42 -0
  620. package/lib/back-top/style/responsive.less +11 -0
  621. package/lib/badge/index.d.ts +1 -1
  622. package/lib/badge/index.d.ts.map +1 -1
  623. package/lib/badge/index.js +5 -6
  624. package/lib/badge/index.js.map +1 -1
  625. package/lib/badge/style/index.d.ts +3 -0
  626. package/lib/badge/style/index.d.ts.map +1 -0
  627. package/lib/badge/style/index.js +4 -0
  628. package/lib/badge/style/index.js.map +1 -0
  629. package/lib/badge/style/index.less +190 -0
  630. package/lib/breadcrumb/index.d.ts +1 -1
  631. package/lib/breadcrumb/index.d.ts.map +1 -1
  632. package/lib/breadcrumb/index.js +5 -6
  633. package/lib/breadcrumb/index.js.map +1 -1
  634. package/lib/breadcrumb/style/index.d.ts +5 -0
  635. package/lib/breadcrumb/style/index.d.ts.map +1 -0
  636. package/lib/breadcrumb/style/index.js +6 -0
  637. package/lib/breadcrumb/style/index.js.map +1 -0
  638. package/lib/breadcrumb/style/index.less +51 -0
  639. package/lib/button/button.d.ts +9 -4
  640. package/lib/button/button.d.ts.map +1 -1
  641. package/lib/button/button.js +33 -12
  642. package/lib/button/button.js.map +1 -1
  643. package/lib/button/button.less +72 -0
  644. package/lib/button/index.d.ts +2 -1
  645. package/lib/button/index.d.ts.map +1 -1
  646. package/lib/button/index.js +7 -7
  647. package/lib/button/index.js.map +1 -1
  648. package/lib/button/style/index.d.ts +3 -0
  649. package/lib/button/style/index.d.ts.map +1 -0
  650. package/lib/button/style/index.js +4 -0
  651. package/lib/button/style/index.js.map +1 -0
  652. package/lib/button/style/index.less +224 -0
  653. package/lib/button/style/mixin.less +357 -0
  654. package/lib/calendar/index.d.ts +1 -1
  655. package/lib/calendar/index.d.ts.map +1 -1
  656. package/lib/calendar/index.js +5 -6
  657. package/lib/calendar/index.js.map +1 -1
  658. package/lib/calendar/style/index.d.ts +5 -0
  659. package/lib/calendar/style/index.d.ts.map +1 -0
  660. package/lib/calendar/style/index.js +6 -0
  661. package/lib/calendar/style/index.js.map +1 -0
  662. package/lib/calendar/style/index.less +278 -0
  663. package/lib/card/card.js +5 -8
  664. package/lib/card/index.d.ts +1 -1
  665. package/lib/card/index.d.ts.map +1 -1
  666. package/lib/card/index.js +2 -3
  667. package/lib/card/index.js.map +1 -1
  668. package/lib/card/style/index.d.ts +6 -0
  669. package/lib/card/style/index.d.ts.map +1 -0
  670. package/lib/card/style/index.js +7 -0
  671. package/lib/card/style/index.js.map +1 -0
  672. package/lib/card/style/index.less +263 -0
  673. package/lib/card/style/size.less +25 -0
  674. package/lib/carousel/index.d.ts +1 -1
  675. package/lib/carousel/index.d.ts.map +1 -1
  676. package/lib/carousel/index.js +5 -6
  677. package/lib/carousel/index.js.map +1 -1
  678. package/lib/carousel/style/index.d.ts +3 -0
  679. package/lib/carousel/style/index.d.ts.map +1 -0
  680. package/lib/carousel/style/index.js +4 -0
  681. package/lib/carousel/style/index.js.map +1 -0
  682. package/lib/carousel/style/index.less +238 -0
  683. package/lib/cascader/index.d.ts +1 -1
  684. package/lib/cascader/index.d.ts.map +1 -1
  685. package/lib/cascader/index.js +6 -8
  686. package/lib/cascader/index.js.map +1 -1
  687. package/lib/cascader/style/index.d.ts +5 -0
  688. package/lib/cascader/style/index.d.ts.map +1 -0
  689. package/lib/cascader/style/index.js +6 -0
  690. package/lib/cascader/style/index.js.map +1 -0
  691. package/lib/cascader/style/index.less +227 -0
  692. package/lib/check-card/group.js +9 -14
  693. package/lib/check-card/index.js +10 -14
  694. package/lib/checkbox/check.png +0 -0
  695. package/lib/checkbox/checkbox.d.ts +16 -0
  696. package/lib/checkbox/checkbox.d.ts.map +1 -0
  697. package/lib/checkbox/checkbox.js +65 -0
  698. package/lib/checkbox/checkbox.js.map +1 -0
  699. package/lib/checkbox/checkbox.less +69 -0
  700. package/lib/checkbox/index.d.ts +4 -4
  701. package/lib/checkbox/index.d.ts.map +1 -1
  702. package/lib/checkbox/index.js +7 -23
  703. package/lib/checkbox/index.js.map +1 -1
  704. package/lib/checkbox/style/index.d.ts +3 -0
  705. package/lib/checkbox/style/index.d.ts.map +1 -0
  706. package/lib/checkbox/style/index.js +4 -0
  707. package/lib/checkbox/style/index.js.map +1 -0
  708. package/lib/checkbox/style/index.less +4 -0
  709. package/lib/checkbox/style/mixin.less +220 -0
  710. package/lib/col/index.d.ts +1 -1
  711. package/lib/col/index.d.ts.map +1 -1
  712. package/lib/col/index.js +5 -6
  713. package/lib/col/index.js.map +1 -1
  714. package/lib/col/style/index.d.ts +3 -0
  715. package/lib/col/style/index.d.ts.map +1 -0
  716. package/lib/col/style/index.js +4 -0
  717. package/lib/col/style/index.js.map +1 -0
  718. package/lib/collapse/index.d.ts +1 -1
  719. package/lib/collapse/index.d.ts.map +1 -1
  720. package/lib/collapse/index.js +5 -6
  721. package/lib/collapse/index.js.map +1 -1
  722. package/lib/collapse/style/index.d.ts +3 -0
  723. package/lib/collapse/style/index.d.ts.map +1 -0
  724. package/lib/collapse/style/index.js +4 -0
  725. package/lib/collapse/style/index.js.map +1 -0
  726. package/lib/collapse/style/index.less +134 -0
  727. package/lib/color-picker/ColorPicker.d.ts +4 -2
  728. package/lib/color-picker/ColorPicker.d.ts.map +1 -1
  729. package/lib/color-picker/ColorPicker.js +11 -13
  730. package/lib/color-picker/ColorPicker.js.map +1 -1
  731. package/lib/color-picker/index.d.ts +2 -1
  732. package/lib/color-picker/index.d.ts.map +1 -1
  733. package/lib/color-picker/index.less +25 -8
  734. package/lib/columns/index.d.ts +3 -2
  735. package/lib/columns/index.d.ts.map +1 -1
  736. package/lib/columns/index.js +3 -7
  737. package/lib/comment/index.d.ts +1 -1
  738. package/lib/comment/index.d.ts.map +1 -1
  739. package/lib/comment/index.js +5 -6
  740. package/lib/comment/index.js.map +1 -1
  741. package/lib/comment/style/index.d.ts +3 -0
  742. package/lib/comment/style/index.d.ts.map +1 -0
  743. package/lib/comment/style/index.js +4 -0
  744. package/lib/comment/style/index.js.map +1 -0
  745. package/lib/comment/style/index.less +93 -0
  746. package/lib/config-provider/DisabledContext.js +5 -7
  747. package/lib/config-provider/SizeContext.js +5 -7
  748. package/lib/config-provider/index.d.ts +1 -1
  749. package/lib/config-provider/index.d.ts.map +1 -1
  750. package/lib/config-provider/index.js +5 -6
  751. package/lib/config-provider/index.js.map +1 -1
  752. package/lib/config-provider/style/index.d.ts +2 -0
  753. package/lib/config-provider/style/index.d.ts.map +1 -0
  754. package/lib/config-provider/style/index.js +3 -0
  755. package/lib/config-provider/style/index.js.map +1 -0
  756. package/lib/config-provider/style/index.less +2 -0
  757. package/lib/connect/index.js +5 -11
  758. package/lib/date-picker/DatePicker.d.ts +21 -0
  759. package/lib/date-picker/DatePicker.d.ts.map +1 -0
  760. package/lib/date-picker/DatePicker.js +128 -0
  761. package/lib/date-picker/DatePicker.js.map +1 -0
  762. package/lib/date-picker/index.d.ts +3 -7
  763. package/lib/date-picker/index.d.ts.map +1 -1
  764. package/lib/date-picker/index.js +8 -41
  765. package/lib/date-picker/index.js.map +1 -1
  766. package/lib/date-picker/index.less +294 -0
  767. package/lib/date-picker/style/Calendar.less +402 -0
  768. package/lib/date-picker/style/DecadePanel.less +81 -0
  769. package/lib/date-picker/style/MonthPanel.less +86 -0
  770. package/lib/date-picker/style/MonthPicker.less +11 -0
  771. package/lib/date-picker/style/Picker.less +113 -0
  772. package/lib/date-picker/style/RangePicker.less +248 -0
  773. package/lib/date-picker/style/TimePicker.less +151 -0
  774. package/lib/date-picker/style/WeekPicker.less +21 -0
  775. package/lib/date-picker/style/YearPanel.less +85 -0
  776. package/lib/date-picker/style/index.d.ts +6 -0
  777. package/lib/date-picker/style/index.d.ts.map +1 -0
  778. package/lib/date-picker/style/index.js +7 -0
  779. package/lib/date-picker/style/index.js.map +1 -0
  780. package/lib/date-picker/style/index.less +17 -0
  781. package/lib/descriptions/descriptions.d.ts +17 -6
  782. package/lib/descriptions/descriptions.d.ts.map +1 -1
  783. package/lib/descriptions/descriptions.js +87 -34
  784. package/lib/descriptions/descriptions.js.map +1 -1
  785. package/lib/descriptions/descriptions.less +107 -22
  786. package/lib/descriptions/index.d.ts +2 -2
  787. package/lib/descriptions/index.d.ts.map +1 -1
  788. package/lib/descriptions/index.js +8 -9
  789. package/lib/descriptions/index.js.map +1 -1
  790. package/lib/descriptions/style/index.d.ts +3 -0
  791. package/lib/descriptions/style/index.d.ts.map +1 -0
  792. package/lib/descriptions/style/index.js +4 -0
  793. package/lib/descriptions/style/index.js.map +1 -0
  794. package/lib/descriptions/style/index.less +144 -0
  795. package/lib/development-login/LoginModal.d.ts +2 -1
  796. package/lib/development-login/LoginModal.d.ts.map +1 -1
  797. package/lib/development-login/LoginModal.js +9 -10
  798. package/lib/development-login/index.d.ts +2 -1
  799. package/lib/development-login/index.d.ts.map +1 -1
  800. package/lib/development-login/index.js +9 -8
  801. package/lib/divider/index.d.ts +1 -1
  802. package/lib/divider/index.d.ts.map +1 -1
  803. package/lib/divider/index.js +5 -6
  804. package/lib/divider/index.js.map +1 -1
  805. package/lib/divider/style/index.d.ts +3 -0
  806. package/lib/divider/style/index.d.ts.map +1 -0
  807. package/lib/divider/style/index.js +4 -0
  808. package/lib/divider/style/index.js.map +1 -0
  809. package/lib/divider/style/index.less +109 -0
  810. package/lib/drawer/drawer.d.ts +22 -2
  811. package/lib/drawer/drawer.d.ts.map +1 -1
  812. package/lib/drawer/drawer.js +110 -22
  813. package/lib/drawer/drawer.js.map +1 -1
  814. package/lib/drawer/index.d.ts +2 -2
  815. package/lib/drawer/index.d.ts.map +1 -1
  816. package/lib/drawer/index.js +7 -8
  817. package/lib/drawer/index.js.map +1 -1
  818. package/lib/drawer/index.less +154 -0
  819. package/lib/drawer/style/drawer.less +245 -0
  820. package/lib/drawer/style/index.d.ts +4 -0
  821. package/lib/drawer/style/index.d.ts.map +1 -0
  822. package/lib/drawer/style/index.js +5 -0
  823. package/lib/drawer/style/index.js.map +1 -0
  824. package/lib/drawer/style/index.less +3 -0
  825. package/lib/dropdown/index.d.ts +1 -1
  826. package/lib/dropdown/index.d.ts.map +1 -1
  827. package/lib/dropdown/index.js +5 -6
  828. package/lib/dropdown/index.js.map +1 -1
  829. package/lib/dropdown/style/index.d.ts +4 -0
  830. package/lib/dropdown/style/index.d.ts.map +1 -0
  831. package/lib/dropdown/style/index.js +5 -0
  832. package/lib/dropdown/style/index.js.map +1 -0
  833. package/lib/dropdown/style/index.less +282 -0
  834. package/lib/ellipsis/Svg/CopySVG.d.ts +2 -1
  835. package/lib/ellipsis/Svg/CopySVG.d.ts.map +1 -1
  836. package/lib/ellipsis/Svg/CopySVG.js +2 -3
  837. package/lib/ellipsis/Svg/TickSVG.d.ts +2 -1
  838. package/lib/ellipsis/Svg/TickSVG.d.ts.map +1 -1
  839. package/lib/ellipsis/Svg/TickSVG.js +2 -3
  840. package/lib/ellipsis/index.d.ts +2 -1
  841. package/lib/ellipsis/index.d.ts.map +1 -1
  842. package/lib/ellipsis/index.js +12 -9
  843. package/lib/empty/empty.d.ts +2 -2
  844. package/lib/empty/empty.d.ts.map +1 -1
  845. package/lib/empty/empty.js +8 -12
  846. package/lib/empty/empty.stories.js +2 -4
  847. package/lib/empty/index.d.ts +1 -1
  848. package/lib/empty/index.d.ts.map +1 -1
  849. package/lib/empty/index.js +2 -3
  850. package/lib/empty/index.js.map +1 -1
  851. package/lib/empty/style/index.d.ts +3 -0
  852. package/lib/empty/style/index.d.ts.map +1 -0
  853. package/lib/empty/style/index.js +4 -0
  854. package/lib/empty/style/index.js.map +1 -0
  855. package/lib/empty/style/index.less +52 -0
  856. package/lib/exception/exception.js +1 -2
  857. package/lib/exception/index.js +1 -2
  858. package/lib/form/form.d.ts +1 -0
  859. package/lib/form/form.d.ts.map +1 -1
  860. package/lib/form/form.js +11 -10
  861. package/lib/form/form.js.map +1 -1
  862. package/lib/form/form.less +36 -0
  863. package/lib/form/index.d.ts +1 -1
  864. package/lib/form/index.d.ts.map +1 -1
  865. package/lib/form/index.js +2 -3
  866. package/lib/form/index.js.map +1 -1
  867. package/lib/form/style/index.d.ts +4 -0
  868. package/lib/form/style/index.d.ts.map +1 -0
  869. package/lib/form/style/index.js +5 -0
  870. package/lib/form/style/index.js.map +1 -0
  871. package/lib/form/style/index.less +653 -0
  872. package/lib/form/style/mixin.less +126 -0
  873. package/lib/grid/index.d.ts +3 -10
  874. package/lib/grid/index.d.ts.map +1 -1
  875. package/lib/grid/index.js +17 -24
  876. package/lib/grid/index.js.map +1 -1
  877. package/lib/grid/style/index.d.ts +1 -0
  878. package/lib/grid/style/index.d.ts.map +1 -1
  879. package/lib/grid/style/index.js +1 -0
  880. package/lib/grid/style/index.js.map +1 -1
  881. package/lib/grid/style/index.less +24 -26
  882. package/lib/grid/style/mixin.less +63 -19
  883. package/lib/grid-v4/RowContext.d.ts.map +1 -0
  884. package/lib/{grid → grid-v4}/RowContext.js +1 -2
  885. package/lib/grid-v4/RowContext.js.map +1 -0
  886. package/lib/grid-v4/col.d.ts.map +1 -0
  887. package/lib/{grid → grid-v4}/col.js +9 -14
  888. package/lib/grid-v4/col.js.map +1 -0
  889. package/lib/grid-v4/hooks/useBreakpoint.d.ts.map +1 -0
  890. package/lib/{grid → grid-v4}/hooks/useBreakpoint.js +1 -2
  891. package/lib/grid-v4/hooks/useBreakpoint.js.map +1 -0
  892. package/lib/grid-v4/index.d.ts +12 -0
  893. package/lib/grid-v4/index.d.ts.map +1 -0
  894. package/lib/grid-v4/index.js +30 -0
  895. package/lib/grid-v4/index.js.map +1 -0
  896. package/lib/grid-v4/row.d.ts.map +1 -0
  897. package/lib/{grid → grid-v4}/row.js +10 -14
  898. package/lib/grid-v4/row.js.map +1 -0
  899. package/lib/grid-v4/style/index.d.ts +2 -0
  900. package/lib/grid-v4/style/index.d.ts.map +1 -0
  901. package/lib/grid-v4/style/index.js +3 -0
  902. package/lib/grid-v4/style/index.js.map +1 -0
  903. package/lib/grid-v4/style/index.less +124 -0
  904. package/lib/grid-v4/style/mixin.less +57 -0
  905. package/lib/handle/index.d.ts +2 -1
  906. package/lib/handle/index.d.ts.map +1 -1
  907. package/lib/handle/index.js +6 -9
  908. package/lib/icon/IconFont.js +4 -6
  909. package/lib/icon/components/Icon.js +16 -22
  910. package/lib/icon/components/utils.js +7 -9
  911. package/lib/icon/index.d.ts +1 -0
  912. package/lib/icon/index.d.ts.map +1 -1
  913. package/lib/icon/index.js +10 -13
  914. package/lib/icon/index.js.map +1 -1
  915. package/lib/icon/style/index.d.ts +3 -0
  916. package/lib/icon/style/index.d.ts.map +1 -0
  917. package/lib/icon/style/index.js +4 -0
  918. package/lib/icon/style/index.js.map +1 -0
  919. package/lib/icon/style/index.less +4 -0
  920. package/lib/icon/style/style.less +4 -0
  921. package/lib/icon/utils.js +1 -2
  922. package/lib/icon-list/index.js +1 -2
  923. package/lib/icon-old/index.d.ts +5 -0
  924. package/lib/icon-old/index.d.ts.map +1 -0
  925. package/lib/icon-old/index.js +24 -0
  926. package/lib/icon-old/index.js.map +1 -0
  927. package/lib/icon-old/style/index.d.ts +3 -0
  928. package/lib/icon-old/style/index.d.ts.map +1 -0
  929. package/lib/icon-old/style/index.js +4 -0
  930. package/lib/icon-old/style/index.js.map +1 -0
  931. package/lib/icon-old/style/index.less +4 -0
  932. package/lib/img/Contain.d.ts +2 -1
  933. package/lib/img/Contain.d.ts.map +1 -1
  934. package/lib/img/Contain.js +3 -6
  935. package/lib/img/Cover.d.ts +2 -1
  936. package/lib/img/Cover.d.ts.map +1 -1
  937. package/lib/img/Cover.js +8 -11
  938. package/lib/img/index.d.ts +2 -1
  939. package/lib/img/index.d.ts.map +1 -1
  940. package/lib/img/index.js +8 -11
  941. package/lib/index.d.ts +3 -2
  942. package/lib/index.d.ts.map +1 -1
  943. package/lib/index.js +10 -3
  944. package/lib/index.js.map +1 -1
  945. package/lib/input/index.d.ts +2 -2
  946. package/lib/input/index.d.ts.map +1 -1
  947. package/lib/input/index.js +7 -8
  948. package/lib/input/index.js.map +1 -1
  949. package/lib/input/input.d.ts +5 -5
  950. package/lib/input/input.d.ts.map +1 -1
  951. package/lib/input/input.js +19 -32
  952. package/lib/input/input.js.map +1 -1
  953. package/lib/input/input.less +123 -20
  954. package/lib/input/style/index.d.ts +4 -0
  955. package/lib/input/style/index.d.ts.map +1 -0
  956. package/lib/input/style/index.js +5 -0
  957. package/lib/input/style/index.js.map +1 -0
  958. package/lib/input/style/index.less +57 -0
  959. package/lib/input/style/mixin.less +449 -0
  960. package/lib/input/style/search-input.less +34 -0
  961. package/lib/input-number/index.d.ts +5 -9
  962. package/lib/input-number/index.d.ts.map +1 -1
  963. package/lib/input-number/index.js +7 -10
  964. package/lib/input-number/index.js.map +1 -1
  965. package/lib/input-number/inputNumber.d.ts +10 -0
  966. package/lib/input-number/inputNumber.d.ts.map +1 -0
  967. package/lib/input-number/inputNumber.js +48 -0
  968. package/lib/input-number/inputNumber.js.map +1 -0
  969. package/lib/input-number/inputNumber.less +12 -0
  970. package/lib/input-number/style/index.d.ts +3 -0
  971. package/lib/input-number/style/index.d.ts.map +1 -0
  972. package/lib/input-number/style/index.js +4 -0
  973. package/lib/input-number/style/index.js.map +1 -0
  974. package/lib/input-number/style/index.less +179 -0
  975. package/lib/label/index.d.ts +2 -2
  976. package/lib/label/index.d.ts.map +1 -1
  977. package/lib/label/index.js +10 -17
  978. package/lib/layout/index.d.ts +1 -1
  979. package/lib/layout/index.d.ts.map +1 -1
  980. package/lib/layout/index.js +5 -6
  981. package/lib/layout/index.js.map +1 -1
  982. package/lib/layout/style/index.d.ts +3 -0
  983. package/lib/layout/style/index.d.ts.map +1 -0
  984. package/lib/layout/style/index.js +4 -0
  985. package/lib/layout/style/index.js.map +1 -0
  986. package/lib/layout/style/index.less +124 -0
  987. package/lib/layout/style/light.less +15 -0
  988. package/lib/list/index.d.ts +1 -1
  989. package/lib/list/index.d.ts.map +1 -1
  990. package/lib/list/index.js +5 -6
  991. package/lib/list/index.js.map +1 -1
  992. package/lib/list/style/bordered.less +41 -0
  993. package/lib/list/style/index.d.ts +7 -0
  994. package/lib/list/style/index.d.ts.map +1 -0
  995. package/lib/list/style/index.js +8 -0
  996. package/lib/list/style/index.js.map +1 -0
  997. package/lib/list/style/index.less +234 -0
  998. package/lib/list/style/responsive.less +40 -0
  999. package/lib/loading-button/index.d.ts +2 -1
  1000. package/lib/loading-button/index.d.ts.map +1 -1
  1001. package/lib/loading-button/index.js +8 -11
  1002. package/lib/locale/default.d.ts +11 -0
  1003. package/lib/locale/default.d.ts.map +1 -1
  1004. package/lib/locale/default.js +1 -2
  1005. package/lib/locale/en_US.d.ts +11 -0
  1006. package/lib/locale/en_US.d.ts.map +1 -1
  1007. package/lib/locale/en_US.js +13 -3
  1008. package/lib/locale/en_US.js.map +1 -1
  1009. package/lib/locale/zh_CN.d.ts +11 -0
  1010. package/lib/locale/zh_CN.d.ts.map +1 -1
  1011. package/lib/locale/zh_CN.js +13 -3
  1012. package/lib/locale/zh_CN.js.map +1 -1
  1013. package/lib/locale-provider/index.d.ts +1 -1
  1014. package/lib/locale-provider/index.d.ts.map +1 -1
  1015. package/lib/locale-provider/index.js +5 -6
  1016. package/lib/locale-provider/index.js.map +1 -1
  1017. package/lib/locale-provider/style/index.d.ts +2 -0
  1018. package/lib/locale-provider/style/index.d.ts.map +1 -0
  1019. package/lib/locale-provider/style/index.js +3 -0
  1020. package/lib/locale-provider/style/index.js.map +1 -0
  1021. package/lib/locale-provider/style/index.less +2 -0
  1022. package/lib/mentions/index.d.ts +1 -1
  1023. package/lib/mentions/index.d.ts.map +1 -1
  1024. package/lib/mentions/index.js +5 -6
  1025. package/lib/mentions/index.js.map +1 -1
  1026. package/lib/mentions/style/index.d.ts +4 -0
  1027. package/lib/mentions/style/index.d.ts.map +1 -0
  1028. package/lib/mentions/style/index.js +5 -0
  1029. package/lib/mentions/style/index.js.map +1 -0
  1030. package/lib/mentions/style/index.less +164 -0
  1031. package/lib/menu/index.d.ts +1 -1
  1032. package/lib/menu/index.d.ts.map +1 -1
  1033. package/lib/menu/index.js +5 -6
  1034. package/lib/menu/index.js.map +1 -1
  1035. package/lib/menu/style/dark.less +139 -0
  1036. package/lib/menu/style/index.d.ts +4 -0
  1037. package/lib/menu/style/index.d.ts.map +1 -0
  1038. package/lib/menu/style/index.js +5 -0
  1039. package/lib/menu/style/index.js.map +1 -0
  1040. package/lib/menu/style/index.less +515 -0
  1041. package/lib/message/index.d.ts +1 -1
  1042. package/lib/message/index.d.ts.map +1 -1
  1043. package/lib/message/index.js +5 -6
  1044. package/lib/message/index.js.map +1 -1
  1045. package/lib/message/message.less +2 -1
  1046. package/lib/message/style/index.d.ts +3 -0
  1047. package/lib/message/style/index.d.ts.map +1 -0
  1048. package/lib/message/style/index.js +4 -0
  1049. package/lib/message/style/index.js.map +1 -0
  1050. package/lib/message/style/index.less +75 -0
  1051. package/lib/modal/index.d.ts +1 -2
  1052. package/lib/modal/index.d.ts.map +1 -1
  1053. package/lib/modal/index.js +4 -6
  1054. package/lib/modal/index.js.map +1 -1
  1055. package/lib/modal/index.less +36 -0
  1056. package/lib/modal/modal.d.ts +1 -1
  1057. package/lib/modal/modal.d.ts.map +1 -1
  1058. package/lib/modal/modal.js +133 -19
  1059. package/lib/modal/modal.js.map +1 -1
  1060. package/lib/modal/style/confirm.less +96 -0
  1061. package/lib/modal/style/index.d.ts +5 -0
  1062. package/lib/modal/style/index.d.ts.map +1 -0
  1063. package/lib/modal/style/index.js +6 -0
  1064. package/lib/modal/style/index.js.map +1 -0
  1065. package/lib/modal/style/index.less +4 -0
  1066. package/lib/modal/style/modal.less +165 -0
  1067. package/lib/notification/assets/index.d.ts +3 -0
  1068. package/lib/notification/assets/index.d.ts.map +1 -0
  1069. package/lib/notification/assets/index.js +20 -0
  1070. package/lib/notification/assets/index.js.map +1 -0
  1071. package/lib/notification/assets/svg-error-tip.d.ts +4 -0
  1072. package/lib/notification/assets/svg-error-tip.d.ts.map +1 -0
  1073. package/lib/notification/assets/svg-error-tip.js +154 -0
  1074. package/lib/notification/assets/svg-error-tip.js.map +1 -0
  1075. package/lib/notification/assets/svg-success-tip.d.ts +4 -0
  1076. package/lib/notification/assets/svg-success-tip.d.ts.map +1 -0
  1077. package/lib/notification/assets/svg-success-tip.js +171 -0
  1078. package/lib/notification/assets/svg-success-tip.js.map +1 -0
  1079. package/lib/notification/index.d.ts +2 -2
  1080. package/lib/notification/index.d.ts.map +1 -1
  1081. package/lib/notification/index.js +8 -10
  1082. package/lib/notification/index.js.map +1 -1
  1083. package/lib/notification/notification.d.ts +9 -0
  1084. package/lib/notification/notification.d.ts.map +1 -0
  1085. package/lib/notification/notification.js +105 -0
  1086. package/lib/notification/notification.js.map +1 -0
  1087. package/lib/notification/notification.less +59 -0
  1088. package/lib/notification/style/index.d.ts +3 -0
  1089. package/lib/notification/style/index.d.ts.map +1 -0
  1090. package/lib/notification/style/index.js +4 -0
  1091. package/lib/notification/style/index.js.map +1 -0
  1092. package/lib/notification/style/index.less +201 -0
  1093. package/lib/page/Box.d.ts +2 -1
  1094. package/lib/page/Box.d.ts.map +1 -1
  1095. package/lib/page/Box.js +2 -5
  1096. package/lib/page/index.d.ts +2 -1
  1097. package/lib/page/index.d.ts.map +1 -1
  1098. package/lib/page/index.js +7 -12
  1099. package/lib/page/utils.js +4 -7
  1100. package/lib/page-header/index.d.ts +1 -1
  1101. package/lib/page-header/index.d.ts.map +1 -1
  1102. package/lib/page-header/index.js +5 -6
  1103. package/lib/page-header/index.js.map +1 -1
  1104. package/lib/page-header/style/index.d.ts +4 -0
  1105. package/lib/page-header/style/index.d.ts.map +1 -0
  1106. package/lib/page-header/style/index.js +5 -0
  1107. package/lib/page-header/style/index.js.map +1 -0
  1108. package/lib/page-header/style/index.less +119 -0
  1109. package/lib/pagination/index.d.ts +1 -1
  1110. package/lib/pagination/index.d.ts.map +1 -1
  1111. package/lib/pagination/index.js +5 -6
  1112. package/lib/pagination/index.js.map +1 -1
  1113. package/lib/pagination/style/index.d.ts +4 -0
  1114. package/lib/pagination/style/index.d.ts.map +1 -0
  1115. package/lib/pagination/style/index.js +5 -0
  1116. package/lib/pagination/style/index.js.map +1 -0
  1117. package/lib/pagination/style/index.less +400 -0
  1118. package/lib/popconfirm/index.d.ts +3 -3
  1119. package/lib/popconfirm/index.d.ts.map +1 -1
  1120. package/lib/popconfirm/index.js +6 -7
  1121. package/lib/popconfirm/index.js.map +1 -1
  1122. package/lib/popconfirm/index.less +26 -0
  1123. package/lib/popconfirm/popconfirm.d.ts +6 -0
  1124. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  1125. package/lib/popconfirm/popconfirm.js +58 -0
  1126. package/lib/popconfirm/popconfirm.js.map +1 -0
  1127. package/lib/popconfirm/style/index.d.ts +5 -0
  1128. package/lib/popconfirm/style/index.d.ts.map +1 -0
  1129. package/lib/popconfirm/style/index.js +6 -0
  1130. package/lib/popconfirm/style/index.js.map +1 -0
  1131. package/lib/popover/index.d.ts +3 -3
  1132. package/lib/popover/index.d.ts.map +1 -1
  1133. package/lib/popover/index.js +6 -7
  1134. package/lib/popover/index.js.map +1 -1
  1135. package/lib/popover/index.less +51 -0
  1136. package/lib/popover/popover.d.ts +13 -0
  1137. package/lib/popover/popover.d.ts.map +1 -0
  1138. package/lib/popover/popover.js +53 -0
  1139. package/lib/popover/popover.js.map +1 -0
  1140. package/lib/popover/style/index.d.ts +4 -0
  1141. package/lib/popover/style/index.d.ts.map +1 -0
  1142. package/lib/popover/style/index.js +5 -0
  1143. package/lib/popover/style/index.js.map +1 -0
  1144. package/lib/popover/style/index.less +205 -0
  1145. package/lib/prev-locale.js +6 -11
  1146. package/lib/preview-text/index.d.ts +1 -1
  1147. package/lib/preview-text/index.d.ts.map +1 -1
  1148. package/lib/preview-text/index.js +5 -7
  1149. package/lib/preview-text/index.js.map +1 -1
  1150. package/lib/progress/index.d.ts +3 -3
  1151. package/lib/progress/index.d.ts.map +1 -1
  1152. package/lib/progress/index.js +6 -7
  1153. package/lib/progress/index.js.map +1 -1
  1154. package/lib/progress/progress.d.ts +12 -0
  1155. package/lib/progress/progress.d.ts.map +1 -0
  1156. package/lib/progress/progress.js +148 -0
  1157. package/lib/progress/progress.js.map +1 -0
  1158. package/lib/progress/progress.less +82 -0
  1159. package/lib/progress/style/index.d.ts +3 -0
  1160. package/lib/progress/style/index.d.ts.map +1 -0
  1161. package/lib/progress/style/index.js +4 -0
  1162. package/lib/progress/style/index.js.map +1 -0
  1163. package/lib/progress/style/index.less +182 -0
  1164. package/lib/query-form/Field/Checkbox.d.ts +2 -1
  1165. package/lib/query-form/Field/Checkbox.d.ts.map +1 -1
  1166. package/lib/query-form/Field/Checkbox.js +3 -6
  1167. package/lib/query-form/Field/Composition/FieldPopover.d.ts +17 -0
  1168. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
  1169. package/lib/query-form/Field/Composition/FieldPopover.js +319 -0
  1170. package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
  1171. package/lib/query-form/Field/Composition/FieldPopover.less +35 -0
  1172. package/lib/query-form/Field/Composition/Select.d.ts +4 -0
  1173. package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
  1174. package/lib/query-form/Field/Composition/Select.js +132 -0
  1175. package/lib/query-form/Field/Composition/Select.js.map +1 -0
  1176. package/lib/query-form/Field/Composition/index.d.ts +14 -0
  1177. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  1178. package/lib/query-form/Field/Composition/index.js +337 -0
  1179. package/lib/query-form/Field/Composition/index.js.map +1 -0
  1180. package/lib/query-form/Field/Composition/index.less +106 -0
  1181. package/lib/query-form/Field/Composition/utils.d.ts +6 -0
  1182. package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
  1183. package/lib/query-form/Field/Composition/utils.js +27 -0
  1184. package/lib/query-form/Field/Composition/utils.js.map +1 -0
  1185. package/lib/query-form/Field/Select.d.ts +2 -1
  1186. package/lib/query-form/Field/Select.d.ts.map +1 -1
  1187. package/lib/query-form/Field/Select.js +10 -13
  1188. package/lib/query-form/Field/SelectInput.d.ts +2 -1
  1189. package/lib/query-form/Field/SelectInput.d.ts.map +1 -1
  1190. package/lib/query-form/Field/SelectInput.js +10 -13
  1191. package/lib/query-form/Field/fieldsMap.js +4 -7
  1192. package/lib/query-form/Field/index.d.ts +1 -1
  1193. package/lib/query-form/Field/index.d.ts.map +1 -1
  1194. package/lib/query-form/Field/index.js +19 -24
  1195. package/lib/query-form/createActions.js +2 -3
  1196. package/lib/query-form/index.d.ts +5 -8
  1197. package/lib/query-form/index.d.ts.map +1 -1
  1198. package/lib/query-form/index.js +156 -171
  1199. package/lib/query-form/index.js.map +1 -1
  1200. package/lib/query-form/index.less +12 -9
  1201. package/lib/query-list-scene/List.d.ts +1 -1
  1202. package/lib/query-list-scene/List.d.ts.map +1 -1
  1203. package/lib/query-list-scene/List.js +24 -29
  1204. package/lib/query-list-scene/QueryForm.d.ts +1 -1
  1205. package/lib/query-list-scene/QueryForm.d.ts.map +1 -1
  1206. package/lib/query-list-scene/QueryForm.js +17 -22
  1207. package/lib/query-list-scene/QueryListScene.d.ts +1 -1
  1208. package/lib/query-list-scene/QueryListScene.d.ts.map +1 -1
  1209. package/lib/query-list-scene/QueryListScene.js +14 -18
  1210. package/lib/query-list-scene/Title.d.ts +2 -1
  1211. package/lib/query-list-scene/Title.d.ts.map +1 -1
  1212. package/lib/query-list-scene/Title.js +2 -3
  1213. package/lib/query-list-scene/Toolbar.d.ts +2 -1
  1214. package/lib/query-list-scene/Toolbar.d.ts.map +1 -1
  1215. package/lib/query-list-scene/Toolbar.js +6 -9
  1216. package/lib/query-list-scene/createActions.js +2 -3
  1217. package/lib/query-list-scene/index.js +4 -8
  1218. package/lib/query-list-scene/index.less +4 -4
  1219. package/lib/radio/index.d.ts +4 -3
  1220. package/lib/radio/index.d.ts.map +1 -1
  1221. package/lib/radio/index.js +7 -11
  1222. package/lib/radio/index.js.map +1 -1
  1223. package/lib/radio/radio.d.ts +17 -0
  1224. package/lib/radio/radio.d.ts.map +1 -0
  1225. package/lib/radio/radio.js +75 -0
  1226. package/lib/radio/radio.js.map +1 -0
  1227. package/lib/radio/radio.less +43 -0
  1228. package/lib/radio/style/index.d.ts +3 -0
  1229. package/lib/radio/style/index.d.ts.map +1 -0
  1230. package/lib/radio/style/index.js +4 -0
  1231. package/lib/radio/style/index.js.map +1 -0
  1232. package/lib/radio/style/index.less +327 -0
  1233. package/lib/rate/index.d.ts +1 -1
  1234. package/lib/rate/index.d.ts.map +1 -1
  1235. package/lib/rate/index.js +5 -6
  1236. package/lib/rate/index.js.map +1 -1
  1237. package/lib/rate/style/index.d.ts +4 -0
  1238. package/lib/rate/style/index.d.ts.map +1 -0
  1239. package/lib/rate/style/index.js +5 -0
  1240. package/lib/rate/style/index.js.map +1 -0
  1241. package/lib/rate/style/index.less +85 -0
  1242. package/lib/render-empty/index.js +1 -2
  1243. package/lib/render-empty/render-empty.js +2 -3
  1244. package/lib/result/index.d.ts +1 -1
  1245. package/lib/result/index.d.ts.map +1 -1
  1246. package/lib/result/index.js +5 -6
  1247. package/lib/result/index.js.map +1 -1
  1248. package/lib/result/style/index.d.ts +3 -0
  1249. package/lib/result/style/index.d.ts.map +1 -0
  1250. package/lib/result/style/index.js +4 -0
  1251. package/lib/result/style/index.js.map +1 -0
  1252. package/lib/result/style/index.less +71 -0
  1253. package/lib/row/index.d.ts +1 -1
  1254. package/lib/row/index.d.ts.map +1 -1
  1255. package/lib/row/index.js +5 -6
  1256. package/lib/row/index.js.map +1 -1
  1257. package/lib/row/style/index.d.ts +3 -0
  1258. package/lib/row/style/index.d.ts.map +1 -0
  1259. package/lib/row/style/index.js +4 -0
  1260. package/lib/row/style/index.js.map +1 -0
  1261. package/lib/segmented/index.d.ts +1 -1
  1262. package/lib/segmented/index.d.ts.map +1 -1
  1263. package/lib/segmented/index.js +8 -12
  1264. package/lib/segmented/index.less +126 -112
  1265. package/lib/select/index.d.ts +2 -2
  1266. package/lib/select/index.d.ts.map +1 -1
  1267. package/lib/select/index.js +7 -8
  1268. package/lib/select/index.js.map +1 -1
  1269. package/lib/select/select.d.ts +1 -1
  1270. package/lib/select/select.d.ts.map +1 -1
  1271. package/lib/select/select.js +11 -16
  1272. package/lib/select/select.js.map +1 -1
  1273. package/lib/select/select.less +83 -9
  1274. package/lib/select/style/index.d.ts +4 -0
  1275. package/lib/select/style/index.d.ts.map +1 -0
  1276. package/lib/select/style/index.js +5 -0
  1277. package/lib/select/style/index.js.map +1 -0
  1278. package/lib/select/style/index.less +604 -0
  1279. package/lib/skeleton/index.d.ts +1 -1
  1280. package/lib/skeleton/index.d.ts.map +1 -1
  1281. package/lib/skeleton/index.js +5 -6
  1282. package/lib/skeleton/index.js.map +1 -1
  1283. package/lib/skeleton/style/index.d.ts +3 -0
  1284. package/lib/skeleton/style/index.d.ts.map +1 -0
  1285. package/lib/skeleton/style/index.js +4 -0
  1286. package/lib/skeleton/style/index.js.map +1 -0
  1287. package/lib/skeleton/style/index.less +130 -0
  1288. package/lib/slider/index.d.ts +1 -1
  1289. package/lib/slider/index.d.ts.map +1 -1
  1290. package/lib/slider/index.js +5 -6
  1291. package/lib/slider/index.js.map +1 -1
  1292. package/lib/slider/style/index.d.ts +4 -0
  1293. package/lib/slider/style/index.d.ts.map +1 -0
  1294. package/lib/slider/style/index.js +5 -0
  1295. package/lib/slider/style/index.js.map +1 -0
  1296. package/lib/slider/style/index.less +197 -0
  1297. package/lib/spin/index.d.ts +1 -1
  1298. package/lib/spin/index.d.ts.map +1 -1
  1299. package/lib/spin/index.js +5 -6
  1300. package/lib/spin/index.js.map +1 -1
  1301. package/lib/spin/style/index.d.ts +3 -0
  1302. package/lib/spin/style/index.d.ts.map +1 -0
  1303. package/lib/spin/style/index.js +4 -0
  1304. package/lib/spin/style/index.js.map +1 -0
  1305. package/lib/spin/style/index.less +214 -0
  1306. package/lib/statistic/index.d.ts +1 -1
  1307. package/lib/statistic/index.d.ts.map +1 -1
  1308. package/lib/statistic/index.js +5 -6
  1309. package/lib/statistic/index.js.map +1 -1
  1310. package/lib/statistic/style/index.d.ts +3 -0
  1311. package/lib/statistic/style/index.d.ts.map +1 -0
  1312. package/lib/statistic/style/index.js +4 -0
  1313. package/lib/statistic/style/index.js.map +1 -0
  1314. package/lib/statistic/style/index.less +40 -0
  1315. package/lib/steps/assets/background_left.svg +12 -0
  1316. package/lib/steps/assets/background_right.svg +12 -0
  1317. package/lib/steps/assets/horizontal_line.svg +3 -0
  1318. package/lib/steps/assets/vertical_line.svg +3 -0
  1319. package/lib/steps/index.d.ts +2 -2
  1320. package/lib/steps/index.d.ts.map +1 -1
  1321. package/lib/steps/index.js +11 -4
  1322. package/lib/steps/index.js.map +1 -1
  1323. package/lib/steps/stepStyle/icon.less +51 -0
  1324. package/lib/steps/stepStyle/index.less +177 -0
  1325. package/lib/steps/stepStyle/nav.less +73 -0
  1326. package/lib/steps/stepStyle/progress-dot.less +10 -0
  1327. package/lib/steps/stepStyle/variables.less +8 -0
  1328. package/lib/steps/stepStyle/vertical.less +41 -0
  1329. package/lib/steps/steps.d.ts +10 -2
  1330. package/lib/steps/steps.d.ts.map +1 -1
  1331. package/lib/steps/steps.js +56 -31
  1332. package/lib/steps/steps.js.map +1 -1
  1333. package/lib/steps/style/compatibility.less +50 -0
  1334. package/lib/steps/style/custom-icon.less +31 -0
  1335. package/lib/steps/style/index.d.ts +3 -0
  1336. package/lib/steps/style/index.d.ts.map +1 -0
  1337. package/lib/steps/style/index.js +4 -0
  1338. package/lib/steps/style/index.js.map +1 -0
  1339. package/lib/steps/style/index.less +241 -6
  1340. package/lib/steps/style/label-placement.less +38 -0
  1341. package/lib/steps/style/nav.less +96 -247
  1342. package/lib/steps/style/progress-dot.less +80 -0
  1343. package/lib/steps/style/small.less +43 -3
  1344. package/lib/steps/style/vertical.less +74 -0
  1345. package/lib/style/color/bezierEasing.less +110 -0
  1346. package/lib/style/color/colorPalette.less +75 -0
  1347. package/lib/style/color/colors.less +149 -0
  1348. package/lib/style/color/tinyColor.less +1184 -0
  1349. package/lib/style/core/base.less +510 -0
  1350. package/lib/style/core/iconfont.less +19 -0
  1351. package/lib/style/core/index.less +4 -0
  1352. package/lib/style/core/motion/fade.less +31 -0
  1353. package/lib/style/core/motion/move.less +120 -0
  1354. package/lib/style/core/motion/other.less +40 -0
  1355. package/lib/style/core/motion/slide.less +120 -0
  1356. package/lib/style/core/motion/swing.less +34 -0
  1357. package/lib/style/core/motion/zoom.less +162 -0
  1358. package/lib/style/core/motion.less +20 -0
  1359. package/lib/style/index.d.ts +2 -0
  1360. package/lib/style/index.d.ts.map +1 -0
  1361. package/lib/style/index.js +3 -0
  1362. package/lib/style/index.js.map +1 -0
  1363. package/lib/style/index.less +2 -0
  1364. package/lib/style/mixins/clearfix.less +13 -0
  1365. package/lib/style/mixins/compatibility.less +22 -0
  1366. package/lib/style/mixins/iconfont.less +43 -0
  1367. package/lib/style/mixins/index.less +10 -0
  1368. package/lib/style/mixins/motion.less +35 -0
  1369. package/lib/style/mixins/operation-unit.less +18 -0
  1370. package/lib/style/mixins/reset.less +13 -0
  1371. package/lib/style/mixins/size.less +10 -0
  1372. package/lib/style/mixins/typography.less +49 -0
  1373. package/lib/style/themes/default.less +700 -0
  1374. package/lib/style/themes/index.less +1 -0
  1375. package/lib/style/v2-compatible-reset.d.ts +2 -0
  1376. package/lib/style/v2-compatible-reset.d.ts.map +1 -0
  1377. package/lib/style/v2-compatible-reset.js +3 -0
  1378. package/lib/style/v2-compatible-reset.js.map +1 -0
  1379. package/lib/style/v2-compatible-reset.less +51 -0
  1380. package/lib/svg-components/illustration-403.d.ts +1 -1
  1381. package/lib/svg-components/illustration-403.js +4 -5
  1382. package/lib/svg-components/illustration-404.d.ts +1 -1
  1383. package/lib/svg-components/illustration-404.js +4 -5
  1384. package/lib/svg-components/illustration-500.d.ts +1 -1
  1385. package/lib/svg-components/illustration-500.js +4 -5
  1386. package/lib/svg-components/illustration-empty.d.ts +1 -1
  1387. package/lib/svg-components/illustration-empty.js +4 -5
  1388. package/lib/svg-components/illustration-failure.d.ts +1 -1
  1389. package/lib/svg-components/illustration-failure.js +4 -5
  1390. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  1391. package/lib/svg-components/illustration-no-access.js +4 -5
  1392. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  1393. package/lib/svg-components/illustration-no-chart.js +4 -5
  1394. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  1395. package/lib/svg-components/illustration-no-result.js +4 -5
  1396. package/lib/svg-components/illustration-offline.d.ts +1 -1
  1397. package/lib/svg-components/illustration-offline.js +4 -5
  1398. package/lib/svg-components/illustration-success.d.ts +1 -1
  1399. package/lib/svg-components/illustration-success.js +4 -5
  1400. package/lib/switch/index.js +4 -5
  1401. package/lib/switch/index.less +46 -0
  1402. package/lib/switch/style/index.d.ts +4 -0
  1403. package/lib/switch/style/index.d.ts.map +1 -0
  1404. package/lib/switch/style/index.js +5 -0
  1405. package/lib/switch/style/index.js.map +1 -0
  1406. package/lib/switch/style/index.less +178 -0
  1407. package/lib/switch/switch.d.ts +9 -1
  1408. package/lib/switch/switch.d.ts.map +1 -1
  1409. package/lib/switch/switch.js +45 -12
  1410. package/lib/switch/switch.js.map +1 -1
  1411. package/lib/table/assets/image-loading-background.d.ts +1 -1
  1412. package/lib/table/assets/image-loading-background.js +4 -5
  1413. package/lib/table/assets/image-loading.d.ts +1 -1
  1414. package/lib/table/assets/image-loading.js +4 -5
  1415. package/lib/table/constants.js +1 -2
  1416. package/lib/table/context.js +1 -2
  1417. package/lib/table/hooks/use-column-setting.js +4 -5
  1418. package/lib/table/index.d.ts +1 -1
  1419. package/lib/table/index.d.ts.map +1 -1
  1420. package/lib/table/index.js +2 -3
  1421. package/lib/table/index.js.map +1 -1
  1422. package/lib/table/style/index.d.ts +9 -0
  1423. package/lib/table/style/index.d.ts.map +1 -0
  1424. package/lib/table/style/index.js +10 -0
  1425. package/lib/table/style/index.js.map +1 -0
  1426. package/lib/table/style/index.less +844 -0
  1427. package/lib/table/style/size.less +179 -0
  1428. package/lib/table/table.d.ts +3 -2
  1429. package/lib/table/table.d.ts.map +1 -1
  1430. package/lib/table/table.js +44 -18
  1431. package/lib/table/table.js.map +1 -1
  1432. package/lib/table/table.less +33 -5
  1433. package/lib/table/table.stories.js +5 -10
  1434. package/lib/table/total-shower.d.ts +2 -2
  1435. package/lib/table/total-shower.d.ts.map +1 -1
  1436. package/lib/table/total-shower.js +2 -3
  1437. package/lib/tabs/index.d.ts +2 -1
  1438. package/lib/tabs/index.d.ts.map +1 -1
  1439. package/lib/tabs/index.js +7 -7
  1440. package/lib/tabs/index.js.map +1 -1
  1441. package/lib/tabs/style/card-style.less +186 -0
  1442. package/lib/tabs/style/index.d.ts +3 -0
  1443. package/lib/tabs/style/index.d.ts.map +1 -0
  1444. package/lib/tabs/style/index.js +4 -0
  1445. package/lib/tabs/style/index.js.map +1 -0
  1446. package/lib/tabs/style/index.less +437 -0
  1447. package/lib/tabs/tabs.d.ts +3 -2
  1448. package/lib/tabs/tabs.d.ts.map +1 -1
  1449. package/lib/tabs/tabs.js +28 -10
  1450. package/lib/tabs/tabs.js.map +1 -1
  1451. package/lib/tabs/tabs.less +114 -0
  1452. package/lib/tag/color.less +43 -0
  1453. package/lib/tag/index.d.ts +4 -3
  1454. package/lib/tag/index.d.ts.map +1 -1
  1455. package/lib/tag/index.js +15 -10
  1456. package/lib/tag/index.js.map +1 -1
  1457. package/lib/tag/style/index.d.ts +3 -0
  1458. package/lib/tag/style/index.d.ts.map +1 -0
  1459. package/lib/tag/style/index.js +4 -0
  1460. package/lib/tag/style/index.js.map +1 -0
  1461. package/lib/tag/style/index.less +106 -0
  1462. package/lib/tag/tag.d.ts +41 -0
  1463. package/lib/tag/tag.d.ts.map +1 -0
  1464. package/lib/tag/tag.js +183 -0
  1465. package/lib/tag/tag.js.map +1 -0
  1466. package/lib/tag/tag.less +192 -0
  1467. package/lib/time-picker/TimePicker.d.ts +9 -0
  1468. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  1469. package/lib/time-picker/TimePicker.js +55 -0
  1470. package/lib/time-picker/TimePicker.js.map +1 -0
  1471. package/lib/time-picker/index.d.ts +8 -7
  1472. package/lib/time-picker/index.d.ts.map +1 -1
  1473. package/lib/time-picker/index.js +5 -19
  1474. package/lib/time-picker/index.js.map +1 -1
  1475. package/lib/time-picker/index.less +38 -0
  1476. package/lib/time-picker/style/index.d.ts +3 -0
  1477. package/lib/time-picker/style/index.d.ts.map +1 -0
  1478. package/lib/time-picker/style/index.js +4 -0
  1479. package/lib/time-picker/style/index.js.map +1 -0
  1480. package/lib/time-picker/style/index.less +246 -0
  1481. package/lib/timeline/index.d.ts +1 -1
  1482. package/lib/timeline/index.d.ts.map +1 -1
  1483. package/lib/timeline/index.js +5 -6
  1484. package/lib/timeline/index.js.map +1 -1
  1485. package/lib/timeline/style/index.d.ts +3 -0
  1486. package/lib/timeline/style/index.d.ts.map +1 -0
  1487. package/lib/timeline/style/index.js +4 -0
  1488. package/lib/timeline/style/index.js.map +1 -0
  1489. package/lib/timeline/style/index.less +167 -0
  1490. package/lib/title/index.d.ts +1 -1
  1491. package/lib/title/index.js +3 -6
  1492. package/lib/tntd-action/Action.d.ts +6 -0
  1493. package/lib/tntd-action/Action.d.ts.map +1 -0
  1494. package/lib/tntd-action/Action.js +86 -0
  1495. package/lib/tntd-action/Action.js.map +1 -0
  1496. package/lib/tntd-action/index.d.ts +6 -0
  1497. package/lib/tntd-action/index.d.ts.map +1 -0
  1498. package/lib/tntd-action/index.js +83 -0
  1499. package/lib/tntd-action/index.js.map +1 -0
  1500. package/lib/tntd-action/index.less +36 -0
  1501. package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +5 -7
  1502. package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +4 -5
  1503. package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +4 -5
  1504. package/lib/tntd-cascader/AntdCascader/component/context.js +3 -6
  1505. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts +2 -2
  1506. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts.map +1 -1
  1507. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +4 -5
  1508. package/lib/tntd-cascader/AntdCascader/component/getIcons.d.ts +2 -2
  1509. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +3 -3
  1510. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +9 -12
  1511. package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
  1512. package/lib/tntd-cascader/AntdCascader/config/utils.js +8 -12
  1513. package/lib/tntd-cascader/AntdCascader/config/warning.js +4 -5
  1514. package/lib/tntd-cascader/AntdCascader/index.js +13 -16
  1515. package/lib/tntd-cascader/AntdCascader/index.less +28 -27
  1516. package/lib/tntd-cascader/AntdCascader/interface.js +1 -2
  1517. package/lib/tntd-cascader/rc-cascader/Cascader.js +7 -10
  1518. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.d.ts +1 -1
  1519. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.d.ts.map +1 -1
  1520. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +6 -7
  1521. package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts +1 -1
  1522. package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts.map +1 -1
  1523. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +8 -10
  1524. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +14 -17
  1525. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +8 -10
  1526. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +11 -13
  1527. package/lib/tntd-cascader/rc-cascader/context.js +4 -5
  1528. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +6 -7
  1529. package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +5 -6
  1530. package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +5 -6
  1531. package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +3 -3
  1532. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
  1533. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +10 -13
  1534. package/lib/tntd-cascader/rc-cascader/index.js +1 -2
  1535. package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js +3 -6
  1536. package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js +2 -2
  1537. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +1 -2
  1538. package/lib/tntd-form/ErrorList.d.ts +1 -1
  1539. package/lib/tntd-form/ErrorList.d.ts.map +1 -1
  1540. package/lib/tntd-form/ErrorList.js +6 -6
  1541. package/lib/tntd-form/Form.d.ts +1 -1
  1542. package/lib/tntd-form/Form.d.ts.map +1 -1
  1543. package/lib/tntd-form/Form.js +15 -18
  1544. package/lib/tntd-form/Form.js.map +1 -1
  1545. package/lib/tntd-form/FormItem/ItemHolder.d.ts +1 -1
  1546. package/lib/tntd-form/FormItem/ItemHolder.d.ts.map +1 -1
  1547. package/lib/tntd-form/FormItem/ItemHolder.js +11 -14
  1548. package/lib/tntd-form/FormItem/ItemHolder.js.map +1 -1
  1549. package/lib/tntd-form/FormItem/index.js +14 -14
  1550. package/lib/tntd-form/FormItemInput.d.ts +1 -1
  1551. package/lib/tntd-form/FormItemInput.d.ts.map +1 -1
  1552. package/lib/tntd-form/FormItemInput.js +5 -6
  1553. package/lib/tntd-form/FormItemInput.js.map +1 -1
  1554. package/lib/tntd-form/FormItemLabel.d.ts +1 -1
  1555. package/lib/tntd-form/FormItemLabel.d.ts.map +1 -1
  1556. package/lib/tntd-form/FormItemLabel.js +9 -13
  1557. package/lib/tntd-form/FormItemLabel.js.map +1 -1
  1558. package/lib/tntd-form/FormList.js +5 -8
  1559. package/lib/tntd-form/context.d.ts +1 -1
  1560. package/lib/tntd-form/context.d.ts.map +1 -1
  1561. package/lib/tntd-form/context.js +14 -19
  1562. package/lib/tntd-form/context.js.map +1 -1
  1563. package/lib/tntd-form/hooks/useDebounce.js +5 -5
  1564. package/lib/tntd-form/hooks/useForm.js +5 -5
  1565. package/lib/tntd-form/hooks/useFormItemStatus.js +1 -2
  1566. package/lib/tntd-form/hooks/useFrameState.js +10 -9
  1567. package/lib/tntd-form/hooks/useItemRef.js +3 -3
  1568. package/lib/tntd-form/index.js +4 -5
  1569. package/lib/tntd-form/style/index.d.ts +1 -1
  1570. package/lib/tntd-form/style/index.d.ts.map +1 -1
  1571. package/lib/tntd-form/style/index.js +1 -1
  1572. package/lib/tntd-form/style/index.js.map +1 -1
  1573. package/lib/tntd-form/style/index.less +1 -1
  1574. package/lib/tntd-form/style/rtl.less +3 -3
  1575. package/lib/tntd-form/validateMessagesContext.js +1 -2
  1576. package/lib/tntd-icon/index.d.ts +2 -1
  1577. package/lib/tntd-icon/index.d.ts.map +1 -1
  1578. package/lib/tntd-icon/index.js +3 -6
  1579. package/lib/tntd-layout/ActionsContext.js +1 -2
  1580. package/lib/tntd-layout/AppList.js +7 -8
  1581. package/lib/tntd-layout/Application.d.ts +2 -1
  1582. package/lib/tntd-layout/Application.d.ts.map +1 -1
  1583. package/lib/tntd-layout/Application.js +7 -8
  1584. package/lib/tntd-layout/Avatar.d.ts +2 -1
  1585. package/lib/tntd-layout/Avatar.d.ts.map +1 -1
  1586. package/lib/tntd-layout/Avatar.js +5 -6
  1587. package/lib/tntd-layout/CompatibleLanguage.d.ts +2 -1
  1588. package/lib/tntd-layout/CompatibleLanguage.d.ts.map +1 -1
  1589. package/lib/tntd-layout/CompatibleLanguage.js +7 -8
  1590. package/lib/tntd-layout/EnterpriseLayout/Avatar.d.ts +2 -1
  1591. package/lib/tntd-layout/EnterpriseLayout/Avatar.d.ts.map +1 -1
  1592. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +5 -6
  1593. package/lib/tntd-layout/EnterpriseLayout/Language.js +7 -8
  1594. package/lib/tntd-layout/EnterpriseLayout/Theme.d.ts +2 -1
  1595. package/lib/tntd-layout/EnterpriseLayout/Theme.d.ts.map +1 -1
  1596. package/lib/tntd-layout/EnterpriseLayout/Theme.js +7 -8
  1597. package/lib/tntd-layout/EnterpriseLayout/index.js +2 -3
  1598. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.d.ts +2 -1
  1599. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.d.ts.map +1 -1
  1600. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +7 -8
  1601. package/lib/tntd-layout/GlobalNavigation/index.js +7 -8
  1602. package/lib/tntd-layout/Header.js +9 -6
  1603. package/lib/tntd-layout/HeaderActions.js +18 -21
  1604. package/lib/tntd-layout/HeaderNavs.js +8 -12
  1605. package/lib/tntd-layout/HeaderTabs.js +10 -14
  1606. package/lib/tntd-layout/Iconfont.d.ts +2 -1
  1607. package/lib/tntd-layout/Iconfont.d.ts.map +1 -1
  1608. package/lib/tntd-layout/Iconfont.js +2 -3
  1609. package/lib/tntd-layout/Language.js +7 -8
  1610. package/lib/tntd-layout/Layout.js +7 -8
  1611. package/lib/tntd-layout/Logo.js +9 -6
  1612. package/lib/tntd-layout/OrgAppList.js +7 -8
  1613. package/lib/tntd-layout/SideMenu.js +8 -11
  1614. package/lib/tntd-layout/Theme.d.ts +2 -1
  1615. package/lib/tntd-layout/Theme.d.ts.map +1 -1
  1616. package/lib/tntd-layout/Theme.js +7 -8
  1617. package/lib/tntd-layout/createActions.js +2 -3
  1618. package/lib/tntd-layout/images/index.js +4 -7
  1619. package/lib/tntd-layout/index.d.ts +3 -2
  1620. package/lib/tntd-layout/index.d.ts.map +1 -1
  1621. package/lib/tntd-layout/index.js +6 -11
  1622. package/lib/tntd-layout/paaslayout/CompactSideMenu.d.ts +2 -1
  1623. package/lib/tntd-layout/paaslayout/CompactSideMenu.d.ts.map +1 -1
  1624. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +7 -8
  1625. package/lib/tntd-layout/paaslayout/Header.d.ts +2 -1
  1626. package/lib/tntd-layout/paaslayout/Header.d.ts.map +1 -1
  1627. package/lib/tntd-layout/paaslayout/Header.js +9 -6
  1628. package/lib/tntd-layout/paaslayout/Logo.d.ts +2 -1
  1629. package/lib/tntd-layout/paaslayout/Logo.d.ts.map +1 -1
  1630. package/lib/tntd-layout/paaslayout/Logo.js +6 -3
  1631. package/lib/tntd-layout/paaslayout/SideMenu.d.ts +2 -1
  1632. package/lib/tntd-layout/paaslayout/SideMenu.d.ts.map +1 -1
  1633. package/lib/tntd-layout/paaslayout/SideMenu.js +7 -8
  1634. package/lib/tntd-layout/paaslayout/index.js +7 -8
  1635. package/lib/tntd-layout/storage.js +14 -27
  1636. package/lib/tntd-modal/index.d.ts +2 -1
  1637. package/lib/tntd-modal/index.d.ts.map +1 -1
  1638. package/lib/tntd-modal/index.js +11 -15
  1639. package/lib/tntd-rc-select/_util/DisabledContext.js +5 -7
  1640. package/lib/tntd-rc-select/_util/FormItemInputContext.js +4 -5
  1641. package/lib/tntd-rc-select/_util/PurePanel.d.ts +2 -2
  1642. package/lib/tntd-rc-select/_util/PurePanel.d.ts.map +1 -1
  1643. package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
  1644. package/lib/tntd-rc-select/_util/SizeContext.js +4 -5
  1645. package/lib/tntd-rc-select/_util/context.js +3 -6
  1646. package/lib/tntd-rc-select/_util/defaultRenderEmpty.d.ts +2 -2
  1647. package/lib/tntd-rc-select/_util/defaultRenderEmpty.d.ts.map +1 -1
  1648. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +4 -5
  1649. package/lib/tntd-rc-select/_util/getIcons.d.ts +2 -2
  1650. package/lib/tntd-rc-select/_util/getIcons.js +3 -3
  1651. package/lib/tntd-rc-select/_util/interface.js +1 -2
  1652. package/lib/tntd-rc-select/_util/motion.js +3 -6
  1653. package/lib/tntd-rc-select/_util/type.js +3 -5
  1654. package/lib/tntd-rc-select/_util/useCompactItemContext.js +9 -12
  1655. package/lib/tntd-rc-select/_util/warning.js +4 -5
  1656. package/lib/tntd-rc-select/index.js +11 -14
  1657. package/lib/tntd-rc-select/style/index.less +844 -740
  1658. package/lib/tntd-select/DropDownWrap.js +16 -19
  1659. package/lib/tntd-select/index.d.ts +1 -1
  1660. package/lib/tntd-select/index.d.ts.map +1 -1
  1661. package/lib/tntd-select/index.js +44 -47
  1662. package/lib/tooltip/index.d.ts +3 -3
  1663. package/lib/tooltip/index.d.ts.map +1 -1
  1664. package/lib/tooltip/index.js +6 -7
  1665. package/lib/tooltip/index.js.map +1 -1
  1666. package/lib/tooltip/index.less +24 -0
  1667. package/lib/tooltip/style/index.d.ts +4 -0
  1668. package/lib/tooltip/style/index.d.ts.map +1 -0
  1669. package/lib/tooltip/style/index.js +5 -0
  1670. package/lib/tooltip/style/index.js.map +1 -0
  1671. package/lib/tooltip/style/index.less +187 -0
  1672. package/lib/tooltip/tooltip.d.ts +8 -0
  1673. package/lib/tooltip/tooltip.d.ts.map +1 -0
  1674. package/lib/tooltip/tooltip.js +51 -0
  1675. package/lib/tooltip/tooltip.js.map +1 -0
  1676. package/lib/transfer/index.d.ts +1 -1
  1677. package/lib/transfer/index.d.ts.map +1 -1
  1678. package/lib/transfer/index.js +5 -6
  1679. package/lib/transfer/index.js.map +1 -1
  1680. package/lib/transfer/style/customize.less +62 -0
  1681. package/lib/transfer/style/index.d.ts +7 -0
  1682. package/lib/transfer/style/index.d.ts.map +1 -0
  1683. package/lib/transfer/style/index.js +8 -0
  1684. package/lib/transfer/style/index.js.map +1 -0
  1685. package/lib/transfer/style/index.less +191 -0
  1686. package/lib/tree/index.d.ts +1 -1
  1687. package/lib/tree/index.d.ts.map +1 -1
  1688. package/lib/tree/index.js +5 -6
  1689. package/lib/tree/index.js.map +1 -1
  1690. package/lib/tree/style/directory.less +95 -0
  1691. package/lib/tree/style/index.d.ts +3 -0
  1692. package/lib/tree/style/index.d.ts.map +1 -0
  1693. package/lib/tree/style/index.js +4 -0
  1694. package/lib/tree/style/index.js.map +1 -0
  1695. package/lib/tree/style/index.less +280 -0
  1696. package/lib/tree/style/mixin.less +29 -0
  1697. package/lib/tree-select/index.d.ts +1 -1
  1698. package/lib/tree-select/index.d.ts.map +1 -1
  1699. package/lib/tree-select/index.js +6 -8
  1700. package/lib/tree-select/index.js.map +1 -1
  1701. package/lib/tree-select/style/index.d.ts +5 -0
  1702. package/lib/tree-select/style/index.d.ts.map +1 -0
  1703. package/lib/tree-select/style/index.js +6 -0
  1704. package/lib/tree-select/style/index.js.map +1 -0
  1705. package/lib/tree-select/style/index.less +191 -0
  1706. package/lib/typography/index.d.ts +1 -1
  1707. package/lib/typography/index.d.ts.map +1 -1
  1708. package/lib/typography/index.js +5 -6
  1709. package/lib/typography/index.js.map +1 -1
  1710. package/lib/typography/style/index.d.ts +5 -0
  1711. package/lib/typography/style/index.d.ts.map +1 -0
  1712. package/lib/typography/style/index.js +6 -0
  1713. package/lib/typography/style/index.js.map +1 -0
  1714. package/lib/typography/style/index.less +204 -0
  1715. package/lib/upload/index.d.ts +1 -1
  1716. package/lib/upload/index.d.ts.map +1 -1
  1717. package/lib/upload/index.js +5 -6
  1718. package/lib/upload/index.js.map +1 -1
  1719. package/lib/upload/style/index.d.ts +5 -0
  1720. package/lib/upload/style/index.d.ts.map +1 -0
  1721. package/lib/upload/style/index.js +6 -0
  1722. package/lib/upload/style/index.js.map +1 -0
  1723. package/lib/upload/style/index.less +542 -0
  1724. package/lib/utils/checkAuth.js +2 -4
  1725. package/lib/utils/findMenuInfoByPath.js +2 -4
  1726. package/lib/utils/index.js +10 -18
  1727. package/lib/utils/lang.d.ts.map +1 -1
  1728. package/lib/utils/lang.js +14 -13
  1729. package/lib/utils/lang.js.map +1 -1
  1730. package/lib/version/index.d.ts +1 -1
  1731. package/lib/version/index.d.ts.map +1 -1
  1732. package/lib/version/index.js +5 -6
  1733. package/lib/version/index.js.map +1 -1
  1734. package/lib/version/style/index.d.ts +2 -0
  1735. package/lib/version/style/index.d.ts.map +1 -0
  1736. package/lib/version/style/index.js +3 -0
  1737. package/lib/version/style/index.js.map +1 -0
  1738. package/lib/water-mark/index.js +7 -9
  1739. package/package.json +3 -2
  1740. package/themes/common/css2.x.css +154 -0
  1741. package/themes/common/css3.x.css +154 -0
  1742. package/themes/common/index.less +30 -26
  1743. package/themes/default/colors.less +13 -5
  1744. package/themes/default/colorsVar.less +160 -0
  1745. package/themes/default/lessToCssVar.less +127 -0
  1746. package/themes/default/lessVars2.x.less +34 -0
  1747. package/themes/default/lessVars3.x.less +36 -0
  1748. package/themes/default/variables.less +91 -59
  1749. package/themes/default/variablesVar.less +673 -0
  1750. package/themes/utils/colorPalette.less +11 -0
  1751. package/es/checkbox/checkbox-group.js +0 -5
  1752. package/es/checkbox/checkbox-group.js.map +0 -1
  1753. package/es/drawer/drawer.less +0 -20
  1754. package/es/grid/RowContext.js.map +0 -1
  1755. package/es/grid/col.js.map +0 -1
  1756. package/es/grid/hooks/useBreakpoint.js.map +0 -1
  1757. package/es/grid/row.js.map +0 -1
  1758. package/es/modal/modal.less +0 -37
  1759. package/es/radio/radio-group.js +0 -5
  1760. package/es/radio/radio-group.js.map +0 -1
  1761. package/lib/checkbox/checkbox-group.d.ts +0 -8
  1762. package/lib/checkbox/checkbox-group.d.ts.map +0 -1
  1763. package/lib/checkbox/checkbox-group.js +0 -13
  1764. package/lib/checkbox/checkbox-group.js.map +0 -1
  1765. package/lib/drawer/drawer.less +0 -20
  1766. package/lib/grid/RowContext.d.ts.map +0 -1
  1767. package/lib/grid/RowContext.js.map +0 -1
  1768. package/lib/grid/col.d.ts.map +0 -1
  1769. package/lib/grid/col.js.map +0 -1
  1770. package/lib/grid/hooks/useBreakpoint.d.ts.map +0 -1
  1771. package/lib/grid/hooks/useBreakpoint.js.map +0 -1
  1772. package/lib/grid/row.d.ts.map +0 -1
  1773. package/lib/modal/modal.less +0 -37
  1774. package/lib/radio/radio-group.d.ts +0 -8
  1775. package/lib/radio/radio-group.d.ts.map +0 -1
  1776. package/lib/radio/radio-group.js +0 -13
  1777. package/lib/radio/radio-group.js.map +0 -1
  1778. /package/es/{grid → grid-v4}/RowContext.js +0 -0
  1779. /package/es/{grid → grid-v4}/col.js +0 -0
  1780. /package/es/{grid → grid-v4}/hooks/useBreakpoint.js +0 -0
  1781. /package/es/{grid → grid-v4}/row.js +0 -0
  1782. /package/es/{grid → grid-v4}/style/rtl.less +0 -0
  1783. /package/lib/{grid → grid-v4}/RowContext.d.ts +0 -0
  1784. /package/lib/{grid → grid-v4}/col.d.ts +0 -0
  1785. /package/lib/{grid → grid-v4}/hooks/useBreakpoint.d.ts +0 -0
  1786. /package/lib/{grid → grid-v4}/row.d.ts +0 -0
  1787. /package/lib/{grid → grid-v4}/style/rtl.less +0 -0
@@ -0,0 +1,319 @@
1
+ "use strict";
2
+
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
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _get2 = _interopRequireDefault(require("lodash/get"));
9
+ var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
10
+ var _react = _interopRequireWildcard(require("react"));
11
+ var _popover = _interopRequireDefault(require("../../../popover"));
12
+ var _Select = _interopRequireDefault(require("./Select"));
13
+ var _utils = require("./utils");
14
+ var _fieldsMap = _interopRequireWildcard(require("../fieldsMap"));
15
+ require("./FieldPopover.less");
16
+ 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); }
17
+ 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; }
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
+ 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."); }
21
+ 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); }
22
+ 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; }
23
+ 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; } }
24
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
28
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
29
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
30
+ }
31
+ return t;
32
+ };
33
+ var isInput = function isInput(type) {
34
+ return ['input', 'string', 'search', 'number', 'inputNumber'].includes(type);
35
+ };
36
+ var _default = exports["default"] = function _default(_a) {
37
+ var visible = _a.visible,
38
+ setVisible = _a.setVisible,
39
+ searchText = _a.searchText,
40
+ children = _a.children,
41
+ value = _a.value,
42
+ onChange = _a.onChange,
43
+ options = _a.options,
44
+ locale = _a.locale,
45
+ searchTarget = _a.searchTarget,
46
+ setSearchTarget = _a.setSearchTarget,
47
+ clsPrefix = _a.clsPrefix,
48
+ props = __rest(_a, ["visible", "setVisible", "searchText", "children", "value", "onChange", "options", "locale", "searchTarget", "setSearchTarget", "clsPrefix"]);
49
+ var _useState = (0, _react.useState)(null),
50
+ _useState2 = _slicedToArray(_useState, 2),
51
+ dataItem = _useState2[0],
52
+ setDataItem = _useState2[1];
53
+ var onPropsClick = function onPropsClick(propItem) {
54
+ var copyValue = (0, _cloneDeep2["default"])(value);
55
+ if (!(copyValue === null || copyValue === void 0 ? void 0 : copyValue.find(function (v) {
56
+ return v.key === propItem.name;
57
+ }))) {
58
+ copyValue.push({
59
+ key: propItem.name,
60
+ value: propItem.type === 'array' ? [] : '',
61
+ label: (propItem.propsTitle || propItem.title || propItem.name) + ':'
62
+ });
63
+ }
64
+ if (isInput(propItem.type)) {
65
+ var target = copyValue.find(function (v) {
66
+ return v.key === propItem.name;
67
+ });
68
+ onChange(target, true);
69
+ close();
70
+ return;
71
+ }
72
+ setDataItem(propItem);
73
+ onChange(copyValue);
74
+ };
75
+ var onSelectChange = function onSelectChange(v, isMultiple) {
76
+ var _a, _b, _c, _d, _e, _f, _g;
77
+ var copyValue = (0, _cloneDeep2["default"])(value || []);
78
+ var index;
79
+ if (v.dataItem) {
80
+ var _index = copyValue.findIndex(function (vv) {
81
+ var _a;
82
+ return vv.key === ((_a = v.dataItem) === null || _a === void 0 ? void 0 : _a.name);
83
+ });
84
+ if (_index > -1) {
85
+ index = _index;
86
+ } else {
87
+ copyValue.push({
88
+ key: (_a = v.dataItem) === null || _a === void 0 ? void 0 : _a.name,
89
+ value: isMultiple ? [] : '',
90
+ label: (((_b = v.dataItem) === null || _b === void 0 ? void 0 : _b.propsTitle) || ((_c = v.dataItem) === null || _c === void 0 ? void 0 : _c.title) || ((_d = v.dataItem) === null || _d === void 0 ? void 0 : _d.name)) + ':'
91
+ });
92
+ index = copyValue.length - 1;
93
+ }
94
+ } else {
95
+ index = copyValue.findIndex(function (v) {
96
+ return v.key === (dataItem === null || dataItem === void 0 ? void 0 : dataItem.name);
97
+ });
98
+ }
99
+ if (isMultiple) {
100
+ if (!((_f = (_e = copyValue[index]) === null || _e === void 0 ? void 0 : _e.value) === null || _f === void 0 ? void 0 : _f.length)) {
101
+ copyValue[index].label = copyValue[index].label.match(/(.*:)/)[0] + (v === null || v === void 0 ? void 0 : v.label);
102
+ copyValue[index].value = [v === null || v === void 0 ? void 0 : v.value];
103
+ } else {
104
+ if (((_g = copyValue[index].value) === null || _g === void 0 ? void 0 : _g.indexOf(v.value)) > -1) {
105
+ copyValue[index].value = copyValue[index].value.filter(function (val) {
106
+ return val !== v.value;
107
+ });
108
+ var regex = new RegExp("\\|?".concat(v.label), 'g'); //new RegExp(`\\|?${variable}`, 'g')
109
+ var result = copyValue[index].label.replace(regex, '');
110
+ copyValue[index].label = result;
111
+ } else {
112
+ copyValue[index].value.push(v.value);
113
+ copyValue[index].label += '|' + (v === null || v === void 0 ? void 0 : v.label);
114
+ }
115
+ }
116
+ } else {
117
+ copyValue[index].value = v === null || v === void 0 ? void 0 : v.value;
118
+ copyValue[index].label = copyValue[index].label.match(/(.*:)/)[0] + (v === null || v === void 0 ? void 0 : v.label);
119
+ close();
120
+ }
121
+ onChange(copyValue, false, true);
122
+ };
123
+ var onFieldChange = function onFieldChange() {
124
+ var _a, _b;
125
+ var _ref = dataItem || {},
126
+ type = _ref.type,
127
+ component = _ref.component,
128
+ fieldProps = _ref.props,
129
+ setLabel = _ref.setLabel;
130
+ var _ref2 = fieldProps || {},
131
+ onChangeCustom = _ref2.onChange,
132
+ options = _ref2.options;
133
+ onChangeCustom && onChangeCustom.apply(void 0, arguments);
134
+ var copyValue = (0, _cloneDeep2["default"])(value);
135
+ var index = copyValue.findIndex(function (v) {
136
+ return v.key === (dataItem === null || dataItem === void 0 ? void 0 : dataItem.name);
137
+ });
138
+ copyValue[index].value = arguments.length <= 0 ? undefined : arguments[0];
139
+ if (type === 'date') {
140
+ copyValue[index].label = copyValue[index].label.match(/(.*:)/)[0] + (arguments.length <= 1 ? undefined : arguments[1]);
141
+ close();
142
+ } else if (type === 'dateRange') {
143
+ copyValue[index].label = copyValue[index].label.match(/(.*:)/)[0] + ((_a = arguments.length <= 1 ? undefined : arguments[1]) === null || _a === void 0 ? void 0 : _a.join('~'));
144
+ if ((_b = arguments.length <= 1 ? undefined : arguments[1]) === null || _b === void 0 ? void 0 : _b[1]) {
145
+ close();
146
+ }
147
+ } else if (type === 'selectInput') {
148
+ var key = (0, _get2["default"])(Object.keys(arguments.length <= 0 ? undefined : arguments[0]), '0');
149
+ var val = (0, _get2["default"])(arguments.length <= 0 ? undefined : arguments[0], key);
150
+ var label = (0, _utils.getLabelFromOptions)(key, options);
151
+ copyValue[index].label = "".concat(label, ": ").concat(val);
152
+ } else if (type === 'checkbox') {
153
+ copyValue[index].label = "".concat(copyValue[index].label.match(/(.*:)/)[0], " ").concat((arguments.length <= 0 ? undefined : arguments[0]) ? local.Yes : local.No);
154
+ close();
155
+ } else if (!type && component) {
156
+ if (setLabel) {
157
+ // setLabel: 对于自定义组件,无法控制label的显示,可以通过setLabel方法控制
158
+ copyValue[index].label = setLabel(arguments.length <= 0 ? undefined : arguments[0]);
159
+ } else {
160
+ copyValue[index].label = copyValue[index].label.match(/(.*:)/)[0] + ((arguments.length <= 1 ? undefined : arguments[1]) || (arguments.length <= 0 ? undefined : arguments[0]));
161
+ }
162
+ close();
163
+ }
164
+ onChange(copyValue, false, true);
165
+ // close()
166
+ };
167
+ var close = function close() {
168
+ setVisible(false);
169
+ };
170
+ var handleVisibleChange = function handleVisibleChange(visible) {
171
+ setVisible(visible);
172
+ };
173
+ (0, _react.useEffect)(function () {
174
+ setDataItem(null);
175
+ }, [visible]);
176
+ (0, _react.useEffect)(function () {
177
+ var bool1 = false,
178
+ bool2 = false;
179
+ if (searchText) {
180
+ options === null || options === void 0 ? void 0 : options.forEach(function (v) {
181
+ var _ref3 = v.props || {},
182
+ name = _ref3.name,
183
+ propsTitle = _ref3.propsTitle,
184
+ title = _ref3.title,
185
+ type = _ref3.type,
186
+ props = _ref3.props;
187
+ var _propsTitle = propsTitle || title || name;
188
+ if ((_propsTitle === null || _propsTitle === void 0 ? void 0 : _propsTitle.indexOf(searchText)) > -1) {
189
+ bool1 = true;
190
+ }
191
+ var sOptions = type !== 'select' ? [] : (props === null || props === void 0 ? void 0 : props.options) || [];
192
+ var fieldNames = props === null || props === void 0 ? void 0 : props.fieldNames;
193
+ var target = sOptions === null || sOptions === void 0 ? void 0 : sOptions.find(function (item) {
194
+ var labelKey = (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'label';
195
+ var label = item instanceof Object ? item[labelKey] : item;
196
+ return (label === null || label === void 0 ? void 0 : label.indexOf(searchText)) > -1;
197
+ });
198
+ if (target) {
199
+ bool2 = true;
200
+ }
201
+ });
202
+ setSearchTarget(!bool2 && !bool1 ? null : {
203
+ propsTitle: bool1,
204
+ propsValue: bool2
205
+ });
206
+ } else {
207
+ setSearchTarget(null);
208
+ }
209
+ }, [options, searchText]);
210
+ var renderFirstOptions = function renderFirstOptions(menu) {
211
+ return _react["default"].createElement("div", null, (!searchText || (searchTarget === null || searchTarget === void 0 ? void 0 : searchTarget.propsTitle)) && _react["default"].createElement("label", null, locale.propTitle), _react["default"].createElement("ul", {
212
+ className: "ant-select-dropdown-menu"
213
+ }, options === null || options === void 0 ? void 0 : options.map(function (v) {
214
+ var _ref4 = v.props || {},
215
+ name = _ref4.name,
216
+ propsTitle = _ref4.propsTitle,
217
+ title = _ref4.title,
218
+ type = _ref4.type,
219
+ props = _ref4.props;
220
+ var _propsTitle = propsTitle || title || name;
221
+ if (searchText) {
222
+ if ((_propsTitle === null || _propsTitle === void 0 ? void 0 : _propsTitle.indexOf(searchText)) > -1) {
223
+ return _react["default"].createElement("li", {
224
+ className: "ant-select-dropdown-menu-item",
225
+ key: name,
226
+ value: name,
227
+ onMouseDown: function onMouseDown(e) {
228
+ return e.preventDefault();
229
+ },
230
+ onClick: function onClick() {
231
+ onPropsClick(v.props);
232
+ }
233
+ }, _react["default"].createElement("span", {
234
+ dangerouslySetInnerHTML: {
235
+ __html: (0, _utils.highlightSubstring)(_propsTitle, searchText)
236
+ }
237
+ }));
238
+ }
239
+ return '';
240
+ }
241
+ return _react["default"].createElement("li", {
242
+ className: "ant-select-dropdown-menu-item",
243
+ key: name,
244
+ value: name,
245
+ onMouseDown: function onMouseDown(e) {
246
+ return e.preventDefault();
247
+ },
248
+ onClick: function onClick() {
249
+ onPropsClick(v.props);
250
+ }
251
+ }, _propsTitle);
252
+ })), searchText && _react["default"].createElement("div", null, (searchTarget === null || searchTarget === void 0 ? void 0 : searchTarget.propsValue) && _react["default"].createElement("label", null, locale.propValue), _react["default"].createElement("ul", {
253
+ className: "ant-select-dropdown-menu"
254
+ }, options === null || options === void 0 ? void 0 : options.map(function (v) {
255
+ var _ref5 = v.props || {},
256
+ name = _ref5.name,
257
+ propsTitle = _ref5.propsTitle,
258
+ type = _ref5.type,
259
+ props = _ref5.props;
260
+ var target = value === null || value === void 0 ? void 0 : value.find(function (v) {
261
+ return v.key === name;
262
+ });
263
+ if (type === 'select' && props && props.options && props.options.length > 0) {
264
+ return _react["default"].createElement(_Select["default"], Object.assign({}, props, {
265
+ searchText: searchText,
266
+ onChange: onSelectChange,
267
+ value: target === null || target === void 0 ? void 0 : target.value,
268
+ dataItem: v.props
269
+ }));
270
+ }
271
+ return;
272
+ }))));
273
+ };
274
+ var renderSecondOptions = function renderSecondOptions() {
275
+ var _a;
276
+ var _ref6 = dataItem || {},
277
+ name = _ref6.name,
278
+ propsTitle = _ref6.propsTitle,
279
+ title = _ref6.title,
280
+ type = _ref6.type,
281
+ className = _ref6.className,
282
+ component = _ref6.component,
283
+ fieldProps = _ref6.props;
284
+ var target = value === null || value === void 0 ? void 0 : value.find(function (v) {
285
+ return v.key === name;
286
+ });
287
+ var Field = component || _fieldsMap["default"][type];
288
+ return _react["default"].createElement("div", {
289
+ onClick: function onClick(e) {
290
+ return e.stopPropagation();
291
+ },
292
+ className: className
293
+ }, _react["default"].createElement("label", null, propsTitle || title || name), type === 'select' ? _react["default"].createElement(_Select["default"], Object.assign({}, fieldProps, {
294
+ onChange: onSelectChange,
295
+ value: target === null || target === void 0 ? void 0 : target.value
296
+ })) : _react["default"].createElement("div", {
297
+ className: "".concat(clsPrefix, "-field-popover-content"),
298
+ onClick: function onClick(e) {
299
+ return e.stopPropagation();
300
+ }
301
+ }, _react["default"].createElement(Field, Object.assign({
302
+ value: target === null || target === void 0 ? void 0 : target.value
303
+ }, fieldProps, {
304
+ style: Object.assign(Object.assign({}, fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.style), {
305
+ width: ((_a = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.style) === null || _a === void 0 ? void 0 : _a.width) || (0, _fieldsMap.getFieldWidth)(type)
306
+ }),
307
+ onChange: onFieldChange
308
+ }))));
309
+ };
310
+ return _react["default"].createElement(_popover["default"], Object.assign({
311
+ trigger: "click",
312
+ // onClick={(e) => e.stopPropagation()}
313
+ visible: visible,
314
+ placement: "bottom",
315
+ overlayClassName: "".concat(clsPrefix, "-field-popover"),
316
+ content: !dataItem ? renderFirstOptions() : renderSecondOptions(),
317
+ onVisibleChange: handleVisibleChange
318
+ }, props), children);
319
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldPopover.js","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/FieldPopover.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAkD;AAClD,mCAAkC;AAClC,+DAAsC;AACtC,sDAAgC;AAChC,mCAAiE;AACjE,mCAA4B;AAE5B,0DAAuD;AACvD,+BAA4B;AAC5B,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,O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AE,CAAC,CAAC,CAAC,eAAe,EAAE,EAAE,SAAS,EAAE,SAAS;YAC5D,6CAAQ,UAAU,IAAI,KAAK,IAAI,IAAI,CAAS;YAC3C,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CACnB,8BAAC,gBAAS,oBAAK,UAAU,IAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,IAAI,CAC9E,CAAC,CAAC,CAAC,CACF,uCAAK,SAAS,EAAE,GAAG,SAAS,wBAAwB,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE;gBACvF,8BAAC,KAAK,kBACJ,KAAK,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,IAChB,UAAU,IACd,KAAK,kCACA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,KACpB,KAAK,EAAE,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,KAAK,KAAI,IAAA,yBAAa,EAAC,IAAI,CAAC,KAExD,QAAQ,EAAE,aAAa,IACvB,CACE,CACP,CACG,CACP,CAAA;IACH,CAAC,CAAA;IAED,OAAO,CACL,8BAAC,iBAAO,kBACN,OAAO,EAAC,OAAO;QACf,wCAAwC;QACxC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,QAAQ,EAClB,gBAAgB,EAAE,GAAG,SAAS,gBAAgB,EAC9C,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,mBAAmB,EAAE,EACjE,eAAe,EAAE,mBAAmB,IAChC,KAAK,GAER,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CAAA","sourcesContent":["import React, { useEffect, useState } from 'react'\nimport { cloneDeep } from 'lodash'\nimport Popover from '../../../popover'\nimport SelectOpt from './Select'\nimport { highlightSubstring, getLabelFromOptions } from './utils'\nimport { get } from 'lodash'\n\nimport fieldsMap, { getFieldWidth } from '../fieldsMap'\nimport './FieldPopover.less'\nconst isInput = (type) => ['input', 'string', 'search', 'number', 'inputNumber'].includes(type)\n\nexport default ({\n visible,\n setVisible,\n searchText,\n children,\n value,\n onChange,\n options,\n locale,\n searchTarget,\n setSearchTarget,\n clsPrefix,\n ...props\n}) => {\n const [dataItem, setDataItem] = useState(null)\n\n const onPropsClick = (propItem) => {\n const copyValue = cloneDeep(value)\n\n if (!copyValue?.find((v) => v.key === propItem.name)) {\n copyValue.push({\n key: propItem.name,\n value: propItem.type === 'array' ? [] : '',\n label: (propItem.propsTitle || propItem.title || propItem.name) + ':',\n })\n }\n if (isInput(propItem.type)) {\n const target = copyValue.find((v) => v.key === propItem.name)\n onChange(target, true)\n close()\n return\n }\n setDataItem(propItem)\n onChange(copyValue)\n }\n\n const onSelectChange = (v, isMultiple) => {\n const copyValue = cloneDeep(value || [])\n let index\n if (v.dataItem) {\n const _index = copyValue.findIndex((vv) => vv.key === v.dataItem?.name)\n if (_index > -1) {\n index = _index\n } else {\n copyValue.push({\n key: v.dataItem?.name,\n value: isMultiple ? [] : '',\n label: (v.dataItem?.propsTitle || v.dataItem?.title || v.dataItem?.name) + ':',\n })\n index = copyValue.length - 1\n }\n } else {\n index = copyValue.findIndex((v) => v.key === dataItem?.name)\n }\n\n if (isMultiple) {\n if (!copyValue[index]?.value?.length) {\n copyValue[index].label = copyValue[index].label.match(/(.*:)/)[0] + v?.label\n copyValue[index].value = [v?.value]\n } else {\n if (copyValue[index].value?.indexOf(v.value) > -1) {\n copyValue[index].value = copyValue[index].value.filter((val) => val !== v.value)\n const regex = new RegExp(`\\\\|?${v.label}`, 'g') //new RegExp(`\\\\|?${variable}`, 'g')\n const result = copyValue[index].label.replace(regex, '')\n copyValue[index].label = result\n } else {\n copyValue[index].value.push(v.value)\n copyValue[index].label += '|' + v?.label\n }\n }\n } else {\n copyValue[index].value = v?.value\n copyValue[index].label = copyValue[index].label.match(/(.*:)/)[0] + v?.label\n close()\n }\n onChange(copyValue, false, true)\n }\n\n const onFieldChange = (...args) => {\n const { type, component, props: fieldProps, setLabel } = dataItem || {}\n const { onChange: onChangeCustom, options } = fieldProps || {}\n onChangeCustom && onChangeCustom(...args)\n const copyValue = cloneDeep(value)\n const index = copyValue.findIndex((v) => v.key === dataItem?.name)\n copyValue[index].value = args[0]\n if (type === 'date') {\n copyValue[index].label = copyValue[index].label.match(/(.*:)/)[0] + args[1]\n close()\n } else if (type === 'dateRange') {\n copyValue[index].label = copyValue[index].label.match(/(.*:)/)[0] + args[1]?.join('~')\n if (args[1]?.[1]) {\n close()\n }\n } else if (type === 'selectInput') {\n const key = get(Object.keys(args[0]), '0')\n const val = get(args[0], key)\n const label = getLabelFromOptions(key, options)\n copyValue[index].label = `${label}: ${val}`\n } else if (type === 'checkbox') {\n copyValue[index].label = `${copyValue[index].label.match(/(.*:)/)[0]} ${\n args[0] ? local.Yes : local.No\n }`\n close()\n } else if (!type && component) {\n if (setLabel) {\n // setLabel: 对于自定义组件,无法控制label的显示,可以通过setLabel方法控制\n copyValue[index].label = setLabel(args[0])\n } else {\n copyValue[index].label = copyValue[index].label.match(/(.*:)/)[0] + (args[1] || args[0])\n }\n close()\n }\n onChange(copyValue, false, true)\n // close()\n }\n\n const close = () => {\n setVisible(false)\n }\n const handleVisibleChange = (visible) => {\n setVisible(visible)\n }\n useEffect(() => {\n setDataItem(null)\n }, [visible])\n\n useEffect(() => {\n let bool1 = false,\n bool2 = false\n if (searchText) {\n options?.forEach((v) => {\n const { name, propsTitle, title, type, props } = v.props || {}\n const _propsTitle = propsTitle || title || name\n if (_propsTitle?.indexOf(searchText) > -1) {\n bool1 = true\n }\n const sOptions = type !== 'select' ? [] : props?.options || []\n const fieldNames = props?.fieldNames\n const target = sOptions?.find((item) => {\n const labelKey = fieldNames?.label || 'label'\n const label = item instanceof Object ? item[labelKey] : item\n return label?.indexOf(searchText) > -1\n })\n if (target) {\n bool2 = true\n }\n })\n setSearchTarget(!bool2 && !bool1 ? null : { propsTitle: bool1, propsValue: bool2 })\n } else {\n setSearchTarget(null)\n }\n }, [options, searchText])\n const renderFirstOptions = (menu) => {\n return (\n <div>\n {(!searchText || searchTarget?.propsTitle) && <label>{locale.propTitle}</label>}\n <ul className=\"ant-select-dropdown-menu\">\n {options?.map((v) => {\n const { name, propsTitle, title, type, props } = v.props || {}\n const _propsTitle = propsTitle || title || name\n if (searchText) {\n if (_propsTitle?.indexOf(searchText) > -1) {\n return (\n <li\n className=\"ant-select-dropdown-menu-item\"\n key={name}\n value={name}\n onMouseDown={(e) => e.preventDefault()}\n onClick={() => {\n onPropsClick(v.props)\n }}\n >\n <span\n dangerouslySetInnerHTML={{\n __html: highlightSubstring(_propsTitle, searchText),\n }}\n ></span>\n </li>\n )\n }\n return ''\n }\n return (\n <li\n className=\"ant-select-dropdown-menu-item\"\n key={name}\n value={name}\n onMouseDown={(e) => e.preventDefault()}\n onClick={() => {\n onPropsClick(v.props)\n }}\n >\n {_propsTitle}\n </li>\n )\n })}\n </ul>\n {searchText && (\n <div>\n {searchTarget?.propsValue && <label>{locale.propValue}</label>}\n <ul className=\"ant-select-dropdown-menu\">\n {options?.map((v) => {\n const { name, propsTitle, type, props } = v.props || {}\n const target = value?.find((v) => v.key === name)\n if (type === 'select' && props && props.options && props.options.length > 0) {\n return (\n <SelectOpt\n {...props}\n searchText={searchText}\n onChange={onSelectChange}\n value={target?.value}\n dataItem={v.props}\n />\n )\n }\n return\n })}\n </ul>\n </div>\n )}\n </div>\n )\n }\n\n const renderSecondOptions = () => {\n const {\n name,\n propsTitle,\n title,\n type,\n className,\n component,\n props: fieldProps,\n } = dataItem || {}\n const target = value?.find((v) => v.key === name)\n const Field = component || fieldsMap[type]\n\n return (\n <div onClick={(e) => e.stopPropagation()} className={className}>\n <label>{propsTitle || title || name}</label>\n {type === 'select' ? (\n <SelectOpt {...fieldProps} onChange={onSelectChange} value={target?.value} />\n ) : (\n <div className={`${clsPrefix}-field-popover-content`} onClick={(e) => e.stopPropagation()}>\n <Field\n value={target?.value}\n {...fieldProps}\n style={{\n ...fieldProps?.style,\n width: fieldProps?.style?.width || getFieldWidth(type),\n }}\n onChange={onFieldChange}\n />\n </div>\n )}\n </div>\n )\n }\n\n return (\n <Popover\n trigger=\"click\"\n // onClick={(e) => e.stopPropagation()}\n visible={visible}\n placement=\"bottom\"\n overlayClassName={`${clsPrefix}-field-popover`}\n content={!dataItem ? renderFirstOptions() : renderSecondOptions()}\n onVisibleChange={handleVisibleChange}\n {...props}\n >\n {children}\n </Popover>\n )\n}\n"]}
@@ -0,0 +1,35 @@
1
+ .tnt-queryform-field-popover {
2
+ min-width: 280px;
3
+ .ant-popover-inner-content {
4
+ padding: @padding-sm 0;
5
+ }
6
+ .ant-calendar-picker {
7
+ margin: @margin-xxs 0;
8
+ }
9
+ label {
10
+ color: tint(@text-color, 50%);
11
+ margin-bottom: @margin-xs;
12
+ display: block;
13
+ padding: 0 @padding-sm;
14
+ }
15
+ .ant-select-dropdown-menu {
16
+ &-item {
17
+ padding: @padding-xxs @padding-sm;
18
+ &:hover {
19
+ background-color: @bg-color-quaternary;
20
+ }
21
+ }
22
+ }
23
+ &-content {
24
+ padding: @padding-xxs @padding-sm;
25
+ }
26
+ .ant-select-selected-icon {
27
+ position: absolute;
28
+ right: @margin-base;
29
+ top: @margin-xs;
30
+ color: @blue-6;
31
+ }
32
+ .tnt-highlight {
33
+ color: @blue-6;
34
+ }
35
+ }
@@ -0,0 +1,4 @@
1
+ declare function _default(props: any): React.JSX.Element;
2
+ export default _default;
3
+ import React from "react";
4
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/Select.js"],"names":[],"mappings":"AAMe,yDAoGd"}
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+
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
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _classnames = _interopRequireDefault(require("classnames"));
10
+ var _icon = _interopRequireDefault(require("../../../icon"));
11
+ var _utils = require("./utils");
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+ 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); }
14
+ 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; }
15
+ 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; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); }
18
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
19
+ 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."); }
20
+ 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); }
21
+ 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; }
22
+ 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; } }
23
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
25
+ var t = {};
26
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
27
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
28
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
29
+ }
30
+ return t;
31
+ };
32
+ var _default = exports["default"] = function _default(props) {
33
+ var options = props.options,
34
+ params = props.params,
35
+ _props$queryKey = props.queryKey,
36
+ queryKey = _props$queryKey === void 0 ? 'name' : _props$queryKey,
37
+ _props$fieldNames = props.fieldNames,
38
+ fieldNames = _props$fieldNames === void 0 ? {
39
+ label: 'label',
40
+ value: 'value'
41
+ } : _props$fieldNames,
42
+ loadData = props.loadData,
43
+ onChange = props.onChange,
44
+ _value = props.value,
45
+ mode = props.mode,
46
+ searchText = props.searchText,
47
+ dataItem = props.dataItem,
48
+ rest = __rest(props, ["options", "params", "queryKey", "fieldNames", "loadData", "onChange", "value", "mode", "searchText", "dataItem"]);
49
+ var _useState = (0, _react.useState)(options || []),
50
+ _useState2 = _slicedToArray(_useState, 2),
51
+ items = _useState2[0],
52
+ setItems = _useState2[1];
53
+ (0, _react.useEffect)(function () {
54
+ if (loadData) {
55
+ loadData(Object.assign(_defineProperty({}, queryKey, searchText), params || {})).then(function (items) {
56
+ setItems(items);
57
+ });
58
+ }
59
+ }, [params, searchText]);
60
+ (0, _react.useEffect)(function () {
61
+ setItems(options || []);
62
+ }, [options]);
63
+ var onValueChange = function onValueChange(item) {
64
+ onChange(item, mode === 'multiple' || mode === 'tags');
65
+ };
66
+ return _react["default"].createElement("ul", {
67
+ className: "ant-select-dropdown-menu"
68
+ }, items.map(function (item) {
69
+ var labelKey = (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'label';
70
+ var valueKey = (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value) || 'value';
71
+ var value = item instanceof Object ? item[valueKey] : item;
72
+ var label = item instanceof Object ? item[labelKey] : item;
73
+ var optionProps = item instanceof Object ? item : {};
74
+ console.log('value1', value);
75
+ console.log('value2', _value);
76
+ var isSelected = !_value ? false : typeof _value === 'string' ? value === _value : (_value === null || _value === void 0 ? void 0 : _value.indexOf(value)) > -1;
77
+ if (searchText) {
78
+ if ((label === null || label === void 0 ? void 0 : label.indexOf(searchText)) > -1) {
79
+ return _react["default"].createElement("li", {
80
+ className: (0, _classnames["default"])({
81
+ 'ant-select-dropdown-menu-item': true,
82
+ // 'ant-select-dropdown-menu-item-active': value === _value,
83
+ 'ant-select-dropdown-menu-item-selected': isSelected
84
+ }),
85
+ key: value,
86
+ value: value,
87
+ onMouseDown: function onMouseDown(e) {
88
+ return e.preventDefault();
89
+ },
90
+ onClick: function onClick() {
91
+ onValueChange({
92
+ value: value,
93
+ label: label,
94
+ optionProps: optionProps,
95
+ dataItem: dataItem
96
+ });
97
+ }
98
+ }, _react["default"].createElement("span", null, (dataItem === null || dataItem === void 0 ? void 0 : dataItem.propsTitle) || (dataItem === null || dataItem === void 0 ? void 0 : dataItem.name), ": "), _react["default"].createElement("span", {
99
+ dangerouslySetInnerHTML: {
100
+ __html: (0, _utils.highlightSubstring)(label, searchText)
101
+ }
102
+ }), isSelected && _react["default"].createElement(_icon["default"], {
103
+ type: "check",
104
+ className: "ant-select-selected-icon"
105
+ }));
106
+ }
107
+ return '';
108
+ }
109
+ return _react["default"].createElement("li", {
110
+ className: (0, _classnames["default"])({
111
+ 'ant-select-dropdown-menu-item': true,
112
+ // 'ant-select-dropdown-menu-item-active': value === _value,
113
+ 'ant-select-dropdown-menu-item-selected': isSelected
114
+ }),
115
+ key: value,
116
+ value: value,
117
+ onMouseDown: function onMouseDown(e) {
118
+ return e.preventDefault();
119
+ },
120
+ onClick: function onClick() {
121
+ onValueChange({
122
+ value: value,
123
+ label: label,
124
+ optionProps: optionProps
125
+ });
126
+ }
127
+ }, label, isSelected && _react["default"].createElement(_icon["default"], {
128
+ type: "check",
129
+ className: "ant-select-selected-icon"
130
+ }));
131
+ }));
132
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/Select.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAkD;AAElD,4DAAmC;AACnC,yDAAgC;AAChC,mCAA4C;AAE5C,kBAAe,CAAC,KAAK,EAAE,EAAE;IACvB,MAAM,EACJ,OAAO,EACP,MAAM,EACN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;wBAAO,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,UAAU,MAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAA;6BAAU;oBACrD,wCACE,uBAAuB,EAAE;4BACvB,MAAM,EAAE,IAAA,0BAAkB,EAAC,KAAK,EAAE,UAAU,CAAC;yBAC9C,GACK;oBACP,UAAU,IAAI,8BAAC,cAAI,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,0BAA0B,GAAG,CACtE,CACN,CAAA;aACF;YACD,OAAO,EAAE,CAAA;SACV;QACD,OAAO,CACL,sCACE,SAAS,EAAE,IAAA,oBAAU,EAAC;gBACpB,+BAA+B,EAAE,IAAI;gBACrC,4DAA4D;gBAC5D,wCAAwC,EAAE,UAAU;aACrD,CAAC,EACF,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,EACtC,OAAO,EAAE,GAAG,EAAE;gBACZ,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAA;YAC9C,CAAC;YAEA,KAAK;YACL,UAAU,IAAI,8BAAC,cAAI,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,0BAA0B,GAAG,CACtE,CACN,CAAA;IACH,CAAC,CAAC,CACC,CACN,CAAA;AACH,CAAC,CAAA","sourcesContent":["import React, { useState, useEffect } from 'react'\n\nimport classNames from 'classnames'\nimport Icon from '../../../icon'\nimport { highlightSubstring } from './utils'\n\nexport default (props) => {\n const {\n options,\n params,\n queryKey = 'name',\n fieldNames = {\n label: 'label',\n value: 'value',\n },\n loadData,\n onChange,\n value: _value,\n mode,\n searchText,\n dataItem,\n ...rest\n } = props\n const [items, setItems] = useState(options || [])\n\n useEffect(() => {\n if (loadData) {\n loadData({\n [queryKey]: searchText,\n ...(params || {}),\n }).then((items) => {\n setItems(items)\n })\n }\n }, [params, searchText])\n\n useEffect(() => {\n setItems(options || [])\n }, [options])\n\n const onValueChange = (item) => {\n onChange(item, mode === 'multiple' || mode === 'tags')\n }\n \n return (\n <ul className=\"ant-select-dropdown-menu\">\n {items.map((item) => {\n const labelKey = fieldNames?.label || 'label'\n const valueKey = fieldNames?.value || 'value'\n const value = item instanceof Object ? item[valueKey] : item\n const label = item instanceof Object ? item[labelKey] : item\n const optionProps = item instanceof Object ? item : {}\n console.log('value1', value)\n console.log('value2', _value)\n\n const isSelected = !_value ? false :\n (typeof _value === 'string' ? value === _value : _value?.indexOf(value) > -1)\n if (searchText) {\n if (label?.indexOf(searchText) > -1) {\n return (\n <li\n className={classNames({\n 'ant-select-dropdown-menu-item': true,\n // 'ant-select-dropdown-menu-item-active': value === _value,\n 'ant-select-dropdown-menu-item-selected': isSelected,\n })}\n key={value}\n value={value}\n onMouseDown={(e) => e.preventDefault()}\n onClick={() => {\n onValueChange({ value, label, optionProps, dataItem, })\n }}\n >\n <span>{dataItem?.propsTitle||dataItem?.name}: </span>\n <span\n dangerouslySetInnerHTML={{\n __html: highlightSubstring(label, searchText),\n }}\n ></span>\n {isSelected && <Icon type=\"check\" className=\"ant-select-selected-icon\" />}\n </li>\n )\n }\n return ''\n }\n return (\n <li\n className={classNames({\n 'ant-select-dropdown-menu-item': true,\n // 'ant-select-dropdown-menu-item-active': value === _value,\n 'ant-select-dropdown-menu-item-selected': isSelected,\n })}\n key={value}\n value={value}\n onMouseDown={(e) => e.preventDefault()}\n onClick={() => {\n onValueChange({ value, label, optionProps })\n }}\n >\n {label}\n {isSelected && <Icon type=\"check\" className=\"ant-select-selected-icon\" />}\n </li>\n )\n })}\n </ul>\n )\n}\n"]}
@@ -0,0 +1,14 @@
1
+ declare var _default: React.ForwardRefExoticComponent<{
2
+ value: any;
3
+ data: any;
4
+ initialValues: any;
5
+ onChange: any;
6
+ placeholder: any;
7
+ disabled: any;
8
+ form: any;
9
+ style: any;
10
+ clsPrefix: any;
11
+ } & React.RefAttributes<any>>;
12
+ export default _default;
13
+ import React from "react";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/index.js"],"names":[],"mappings":""}