tntd 2.7.34 → 2.8.0-beta.10

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 (1647) hide show
  1. package/es/affix/index.js +1 -1
  2. package/es/affix/index.js.map +1 -1
  3. package/es/affix/style/index.js +2 -0
  4. package/es/affix/style/index.js.map +1 -0
  5. package/es/affix/style/index.less +6 -0
  6. package/es/alert/index.js +1 -1
  7. package/es/alert/index.js.map +1 -1
  8. package/es/alert/style/index.js +2 -0
  9. package/es/alert/style/index.js.map +1 -0
  10. package/es/alert/style/index.less +188 -0
  11. package/es/anchor/index.js +1 -1
  12. package/es/anchor/index.js.map +1 -1
  13. package/es/anchor/style/index.js +4 -0
  14. package/es/anchor/style/index.js.map +1 -0
  15. package/es/anchor/style/index.less +82 -0
  16. package/es/auto-complete/index.js +1 -1
  17. package/es/auto-complete/index.js.map +1 -1
  18. package/es/auto-complete/style/index.js +5 -0
  19. package/es/auto-complete/style/index.js.map +1 -0
  20. package/es/auto-complete/style/index.less +92 -0
  21. package/es/avatar/index.js +1 -1
  22. package/es/avatar/index.js.map +1 -1
  23. package/es/avatar/style/index.js +2 -0
  24. package/es/avatar/style/index.js.map +1 -0
  25. package/es/avatar/style/index.less +59 -0
  26. package/es/back-top/index.js +1 -1
  27. package/es/back-top/index.js.map +1 -1
  28. package/es/back-top/style/index.js +2 -0
  29. package/es/back-top/style/index.js.map +1 -0
  30. package/es/back-top/style/index.less +42 -0
  31. package/es/back-top/style/responsive.less +11 -0
  32. package/es/badge/index.js +1 -1
  33. package/es/badge/index.js.map +1 -1
  34. package/es/badge/style/index.js +2 -0
  35. package/es/badge/style/index.js.map +1 -0
  36. package/es/badge/style/index.less +190 -0
  37. package/es/breadcrumb/index.js +1 -1
  38. package/es/breadcrumb/index.js.map +1 -1
  39. package/es/breadcrumb/style/index.js +4 -0
  40. package/es/breadcrumb/style/index.js.map +1 -0
  41. package/es/breadcrumb/style/index.less +52 -0
  42. package/es/button/button.less +7 -0
  43. package/es/button/index.js +2 -1
  44. package/es/button/index.js.map +1 -1
  45. package/es/button/style/index.js +2 -0
  46. package/es/button/style/index.js.map +1 -0
  47. package/es/button/style/index.less +224 -0
  48. package/es/button/style/mixin.less +357 -0
  49. package/es/calendar/index.js +1 -1
  50. package/es/calendar/index.js.map +1 -1
  51. package/es/calendar/style/index.js +5 -0
  52. package/es/calendar/style/index.js.map +1 -0
  53. package/es/calendar/style/index.less +278 -0
  54. package/es/card/index.js +1 -1
  55. package/es/card/index.js.map +1 -1
  56. package/es/card/style/index.js +6 -0
  57. package/es/card/style/index.js.map +1 -0
  58. package/es/card/style/index.less +263 -0
  59. package/es/card/style/size.less +25 -0
  60. package/es/carousel/index.js +1 -1
  61. package/es/carousel/index.js.map +1 -1
  62. package/es/carousel/style/index.js +2 -0
  63. package/es/carousel/style/index.js.map +1 -0
  64. package/es/carousel/style/index.less +238 -0
  65. package/es/cascader/index.js +1 -1
  66. package/es/cascader/index.js.map +1 -1
  67. package/es/cascader/style/index.js +5 -0
  68. package/es/cascader/style/index.js.map +1 -0
  69. package/es/cascader/style/index.less +227 -0
  70. package/es/check-card/index.js +2 -3
  71. package/es/check-card/index.js.map +1 -1
  72. package/es/checkbox/index.js +1 -1
  73. package/es/checkbox/index.js.map +1 -1
  74. package/es/checkbox/style/index.js +2 -0
  75. package/es/checkbox/style/index.js.map +1 -0
  76. package/es/checkbox/style/index.less +4 -0
  77. package/es/checkbox/style/mixin.less +220 -0
  78. package/es/col/index.js +1 -1
  79. package/es/col/index.js.map +1 -1
  80. package/es/col/style/index.js +4 -0
  81. package/es/col/style/index.js.map +1 -0
  82. package/es/collapse/collapse.less +3 -3
  83. package/es/collapse/index.js +1 -1
  84. package/es/collapse/index.js.map +1 -1
  85. package/es/collapse/style/index.js +2 -0
  86. package/es/collapse/style/index.js.map +1 -0
  87. package/es/collapse/style/index.less +135 -0
  88. package/es/color-picker/ColorPicker.js +8 -8
  89. package/es/color-picker/ColorPicker.js.map +1 -1
  90. package/es/color-picker/index.less +25 -8
  91. package/es/comment/index.js +1 -1
  92. package/es/comment/index.js.map +1 -1
  93. package/es/comment/style/index.js +2 -0
  94. package/es/comment/style/index.js.map +1 -0
  95. package/es/comment/style/index.less +93 -0
  96. package/es/config-provider/index.js +1 -1
  97. package/es/config-provider/index.js.map +1 -1
  98. package/es/config-provider/style/index.js +1 -0
  99. package/es/config-provider/style/index.js.map +1 -0
  100. package/es/config-provider/style/index.less +2 -0
  101. package/es/date-picker/index.js +1 -1
  102. package/es/date-picker/index.js.map +1 -1
  103. package/es/date-picker/style/Calendar.less +402 -0
  104. package/es/date-picker/style/DecadePanel.less +81 -0
  105. package/es/date-picker/style/MonthPanel.less +86 -0
  106. package/es/date-picker/style/MonthPicker.less +11 -0
  107. package/es/date-picker/style/Picker.less +114 -0
  108. package/es/date-picker/style/RangePicker.less +248 -0
  109. package/es/date-picker/style/TimePicker.less +151 -0
  110. package/es/date-picker/style/WeekPicker.less +21 -0
  111. package/es/date-picker/style/YearPanel.less +85 -0
  112. package/es/date-picker/style/index.js +7 -0
  113. package/es/date-picker/style/index.js.map +1 -0
  114. package/es/date-picker/style/index.less +17 -0
  115. package/es/descriptions/descriptions.js +40 -26
  116. package/es/descriptions/descriptions.js.map +1 -1
  117. package/es/descriptions/descriptions.less +104 -16
  118. package/es/descriptions/index.js +1 -1
  119. package/es/descriptions/index.js.map +1 -1
  120. package/es/descriptions/style/index.js +2 -0
  121. package/es/descriptions/style/index.js.map +1 -0
  122. package/es/descriptions/style/index.less +144 -0
  123. package/es/divider/index.js +1 -1
  124. package/es/divider/index.js.map +1 -1
  125. package/es/divider/style/index.js +2 -0
  126. package/es/divider/style/index.js.map +1 -0
  127. package/es/divider/style/index.less +109 -0
  128. package/es/drawer/drawer.js +102 -13
  129. package/es/drawer/drawer.js.map +1 -1
  130. package/es/drawer/drawer.less +1 -1
  131. package/es/drawer/index.js +2 -2
  132. package/es/drawer/index.js.map +1 -1
  133. package/es/drawer/index.less +157 -0
  134. package/es/drawer/style/drawer.less +230 -0
  135. package/es/drawer/style/index.js +3 -0
  136. package/es/drawer/style/index.js.map +1 -0
  137. package/es/drawer/style/index.less +3 -0
  138. package/es/dropdown/index.js +1 -1
  139. package/es/dropdown/index.js.map +1 -1
  140. package/es/dropdown/style/index.js +4 -0
  141. package/es/dropdown/style/index.js.map +1 -0
  142. package/es/dropdown/style/index.less +283 -0
  143. package/es/empty/index.js +1 -1
  144. package/es/empty/index.js.map +1 -1
  145. package/es/empty/style/index.js +2 -0
  146. package/es/empty/style/index.js.map +1 -0
  147. package/es/empty/style/index.less +52 -0
  148. package/es/form/form.js +3 -5
  149. package/es/form/form.js.map +1 -1
  150. package/es/form/index.js +1 -1
  151. package/es/form/index.js.map +1 -1
  152. package/es/form/style/index.js +4 -0
  153. package/es/form/style/index.js.map +1 -0
  154. package/es/form/style/index.less +653 -0
  155. package/es/form/style/mixin.less +126 -0
  156. package/es/grid/index.js +3 -13
  157. package/es/grid/index.js.map +1 -1
  158. package/es/grid/style/index.js +1 -1
  159. package/es/grid/style/index.js.map +1 -1
  160. package/es/grid/style/index.less +24 -26
  161. package/es/grid/style/mixin.less +63 -19
  162. package/es/grid-v4/RowContext.js.map +1 -0
  163. package/es/grid-v4/col.js.map +1 -0
  164. package/es/grid-v4/hooks/useBreakpoint.js.map +1 -0
  165. package/es/grid-v4/index.js +14 -0
  166. package/es/grid-v4/index.js.map +1 -0
  167. package/{lib/grid → es/grid-v4}/row.js.map +1 -1
  168. package/es/grid-v4/style/index.js +2 -0
  169. package/es/grid-v4/style/index.js.map +1 -0
  170. package/es/grid-v4/style/index.less +124 -0
  171. package/es/grid-v4/style/mixin.less +57 -0
  172. package/es/icon/IconFont.js +52 -0
  173. package/es/icon/IconFont.js.map +1 -0
  174. package/es/icon/components/Icon.js +106 -0
  175. package/es/icon/components/Icon.js.map +1 -0
  176. package/es/icon/components/index.js +1 -0
  177. package/es/icon/components/index.js.map +1 -0
  178. package/es/icon/components/utils.js +79 -0
  179. package/es/icon/components/utils.js.map +1 -0
  180. package/es/icon/index.js +115 -3
  181. package/es/icon/index.js.map +1 -1
  182. package/es/icon/style/index.js +3 -0
  183. package/es/icon/style/index.js.map +1 -0
  184. package/es/icon/style/index.less +4 -0
  185. package/es/icon/style/style.less +6 -0
  186. package/es/icon/twoTonePrimaryColor.js +10 -0
  187. package/es/icon/twoTonePrimaryColor.js.map +1 -0
  188. package/es/icon/utils.js +64 -0
  189. package/es/icon/utils.js.map +1 -0
  190. package/es/icon-old/index.js +4 -0
  191. package/es/icon-old/index.js.map +1 -0
  192. package/es/icon-old/style/index.js +2 -0
  193. package/es/icon-old/style/index.js.map +1 -0
  194. package/es/icon-old/style/index.less +4 -0
  195. package/es/index.js +7 -2
  196. package/es/index.js.map +1 -1
  197. package/es/input/index.js +1 -1
  198. package/es/input/index.js.map +1 -1
  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 +448 -0
  203. package/es/input/style/search-input.less +34 -0
  204. package/es/input-number/index.js +1 -1
  205. package/es/input-number/index.js.map +1 -1
  206. package/es/input-number/style/index.js +2 -0
  207. package/es/input-number/style/index.js.map +1 -0
  208. package/es/input-number/style/index.less +179 -0
  209. package/es/layout/index.js +1 -1
  210. package/es/layout/index.js.map +1 -1
  211. package/es/layout/style/index.js +2 -0
  212. package/es/layout/style/index.js.map +1 -0
  213. package/es/layout/style/index.less +124 -0
  214. package/es/layout/style/light.less +15 -0
  215. package/es/list/index.js +1 -1
  216. package/es/list/index.js.map +1 -1
  217. package/es/list/style/bordered.less +41 -0
  218. package/es/list/style/index.js +7 -0
  219. package/es/list/style/index.js.map +1 -0
  220. package/es/list/style/index.less +234 -0
  221. package/es/list/style/responsive.less +40 -0
  222. package/es/locale/en_US.js +8 -1
  223. package/es/locale/en_US.js.map +1 -1
  224. package/es/locale/zh_CN.js +8 -1
  225. package/es/locale/zh_CN.js.map +1 -1
  226. package/es/locale-provider/index.js +1 -1
  227. package/es/locale-provider/index.js.map +1 -1
  228. package/es/locale-provider/style/index.js +1 -0
  229. package/es/locale-provider/style/index.js.map +1 -0
  230. package/es/locale-provider/style/index.less +2 -0
  231. package/es/mentions/index.js +1 -1
  232. package/es/mentions/index.js.map +1 -1
  233. package/es/mentions/style/index.js +4 -0
  234. package/es/mentions/style/index.js.map +1 -0
  235. package/es/mentions/style/index.less +164 -0
  236. package/es/menu/index.js +1 -1
  237. package/es/menu/index.js.map +1 -1
  238. package/es/menu/style/dark.less +139 -0
  239. package/es/menu/style/index.js +5 -0
  240. package/es/menu/style/index.js.map +1 -0
  241. package/es/menu/style/index.less +515 -0
  242. package/es/message/index.js +1 -1
  243. package/es/message/index.js.map +1 -1
  244. package/es/message/style/index.js +2 -0
  245. package/es/message/style/index.js.map +1 -0
  246. package/es/message/style/index.less +75 -0
  247. package/es/modal/index.js +1 -1
  248. package/es/modal/index.js.map +1 -1
  249. package/es/modal/modal.js +51 -9
  250. package/es/modal/modal.js.map +1 -1
  251. package/es/modal/modal.less +13 -32
  252. package/es/modal/style/confirm.less +96 -0
  253. package/es/modal/style/index.js +4 -0
  254. package/es/modal/style/index.js.map +1 -0
  255. package/es/modal/style/index.less +4 -0
  256. package/es/modal/style/modal.less +169 -0
  257. package/es/notification/index.js +1 -1
  258. package/es/notification/index.js.map +1 -1
  259. package/es/notification/style/index.js +2 -0
  260. package/es/notification/style/index.js.map +1 -0
  261. package/es/notification/style/index.less +201 -0
  262. package/es/page/index.js +0 -1
  263. package/es/page-container/index.js +13 -0
  264. package/es/page-container/index.js.map +1 -0
  265. package/es/page-container/index.less +38 -0
  266. package/es/page-header/index.js +1 -1
  267. package/es/page-header/index.js.map +1 -1
  268. package/es/page-header/style/index.js +4 -0
  269. package/es/page-header/style/index.js.map +1 -0
  270. package/es/page-header/style/index.less +119 -0
  271. package/es/page-loading/index.js +29 -0
  272. package/es/page-loading/index.js.map +1 -0
  273. package/es/page-loading/index.less +38 -0
  274. package/es/page-loading/loading.gif +0 -0
  275. package/es/pagination/index.js +1 -1
  276. package/es/pagination/index.js.map +1 -1
  277. package/es/pagination/style/index.js +4 -0
  278. package/es/pagination/style/index.js.map +1 -0
  279. package/es/pagination/style/index.less +400 -0
  280. package/es/popconfirm/index.js +1 -1
  281. package/es/popconfirm/index.js.map +1 -1
  282. package/es/popconfirm/style/index.js +5 -0
  283. package/es/popconfirm/style/index.js.map +1 -0
  284. package/es/popover/index.js +1 -1
  285. package/es/popover/index.js.map +1 -1
  286. package/es/popover/style/index.js +4 -0
  287. package/es/popover/style/index.js.map +1 -0
  288. package/es/popover/style/index.less +206 -0
  289. package/es/progress/index.js +1 -1
  290. package/es/progress/index.js.map +1 -1
  291. package/es/progress/style/index.js +2 -0
  292. package/es/progress/style/index.js.map +1 -0
  293. package/es/progress/style/index.less +182 -0
  294. package/es/radio/index.js +1 -1
  295. package/es/radio/index.js.map +1 -1
  296. package/es/radio/style/index.js +2 -0
  297. package/es/radio/style/index.js.map +1 -0
  298. package/es/radio/style/index.less +327 -0
  299. package/es/rate/index.js +1 -1
  300. package/es/rate/index.js.map +1 -1
  301. package/es/rate/style/index.js +4 -0
  302. package/es/rate/style/index.js.map +1 -0
  303. package/es/rate/style/index.less +85 -0
  304. package/es/result/index.js +1 -1
  305. package/es/result/index.js.map +1 -1
  306. package/es/result/style/index.js +2 -0
  307. package/es/result/style/index.js.map +1 -0
  308. package/es/result/style/index.less +71 -0
  309. package/es/row/index.js +1 -1
  310. package/es/row/index.js.map +1 -1
  311. package/es/row/style/index.js +4 -0
  312. package/es/row/style/index.js.map +1 -0
  313. package/es/select/index.js +1 -1
  314. package/es/select/index.js.map +1 -1
  315. package/es/select/style/index.js +4 -0
  316. package/es/select/style/index.js.map +1 -0
  317. package/es/select/style/index.less +605 -0
  318. package/es/skeleton/index.js +1 -1
  319. package/es/skeleton/index.js.map +1 -1
  320. package/es/skeleton/style/index.js +2 -0
  321. package/es/skeleton/style/index.js.map +1 -0
  322. package/es/skeleton/style/index.less +130 -0
  323. package/es/slider/index.js +1 -1
  324. package/es/slider/index.js.map +1 -1
  325. package/es/slider/style/index.js +4 -0
  326. package/es/slider/style/index.js.map +1 -0
  327. package/es/slider/style/index.less +197 -0
  328. package/es/spin/index.js +1 -1
  329. package/es/spin/index.js.map +1 -1
  330. package/es/spin/style/index.js +2 -0
  331. package/es/spin/style/index.js.map +1 -0
  332. package/es/spin/style/index.less +214 -0
  333. package/es/statistic/index.js +1 -1
  334. package/es/statistic/index.js.map +1 -1
  335. package/es/statistic/style/index.js +2 -0
  336. package/es/statistic/style/index.js.map +1 -0
  337. package/es/statistic/style/index.less +40 -0
  338. package/es/steps/index.js +2 -1
  339. package/es/steps/index.js.map +1 -1
  340. package/es/steps/stepStyle/index.less +12 -0
  341. package/es/steps/stepStyle/nav.less +281 -0
  342. package/es/steps/stepStyle/small.less +5 -0
  343. package/es/steps/steps.js +6 -6
  344. package/es/steps/steps.js.map +1 -1
  345. package/es/steps/style/compatibility.less +50 -0
  346. package/es/steps/style/custom-icon.less +31 -0
  347. package/es/steps/style/index.js +2 -0
  348. package/es/steps/style/index.js.map +1 -0
  349. package/es/steps/style/index.less +241 -6
  350. package/es/steps/style/label-placement.less +38 -0
  351. package/es/steps/style/nav.less +96 -247
  352. package/es/steps/style/progress-dot.less +80 -0
  353. package/es/steps/style/small.less +43 -3
  354. package/es/steps/style/vertical.less +74 -0
  355. package/es/style/color/bezierEasing.less +110 -0
  356. package/es/style/color/colorPalette.less +75 -0
  357. package/es/style/color/colors.less +149 -0
  358. package/es/style/color/tinyColor.less +1184 -0
  359. package/es/style/core/base.less +510 -0
  360. package/es/style/core/iconfont.less +19 -0
  361. package/es/style/core/index.less +4 -0
  362. package/es/style/core/motion/fade.less +31 -0
  363. package/es/style/core/motion/move.less +120 -0
  364. package/es/style/core/motion/other.less +40 -0
  365. package/es/style/core/motion/slide.less +120 -0
  366. package/es/style/core/motion/swing.less +34 -0
  367. package/es/style/core/motion/zoom.less +162 -0
  368. package/es/style/core/motion.less +20 -0
  369. package/es/style/index.js +1 -0
  370. package/es/style/index.js.map +1 -0
  371. package/es/style/index.less +2 -0
  372. package/es/style/mixins/clearfix.less +13 -0
  373. package/es/style/mixins/compatibility.less +22 -0
  374. package/es/style/mixins/iconfont.less +44 -0
  375. package/es/style/mixins/index.less +10 -0
  376. package/es/style/mixins/motion.less +35 -0
  377. package/es/style/mixins/operation-unit.less +18 -0
  378. package/es/style/mixins/reset.less +13 -0
  379. package/es/style/mixins/size.less +10 -0
  380. package/es/style/mixins/typography.less +49 -0
  381. package/es/style/themes/default.less +700 -0
  382. package/es/style/themes/index.less +1 -0
  383. package/es/style/v2-compatible-reset.js +1 -0
  384. package/es/style/v2-compatible-reset.js.map +1 -0
  385. package/es/style/v2-compatible-reset.less +51 -0
  386. package/es/switch/style/index.js +2 -0
  387. package/es/switch/style/index.js.map +1 -0
  388. package/es/switch/style/index.less +178 -0
  389. package/es/switch/switch.js +1 -1
  390. package/es/switch/switch.js.map +1 -1
  391. package/es/table/index.js +1 -1
  392. package/es/table/index.js.map +1 -1
  393. package/es/table/style/index.js +10 -0
  394. package/es/table/style/index.js.map +1 -0
  395. package/es/table/style/index.less +800 -0
  396. package/es/table/style/size.less +179 -0
  397. package/es/table/table.js +1 -3
  398. package/es/table/table.js.map +1 -1
  399. package/es/table-container/index.js +12 -0
  400. package/es/table-container/index.js.map +1 -0
  401. package/es/table-container/index.less +13 -0
  402. package/es/tabs/index.js +1 -1
  403. package/es/tabs/index.js.map +1 -1
  404. package/es/tabs/style/card-style.less +186 -0
  405. package/es/tabs/style/index.js +2 -0
  406. package/es/tabs/style/index.js.map +1 -0
  407. package/es/tabs/style/index.less +436 -0
  408. package/es/tabs/tabs.js +4 -2
  409. package/es/tabs/tabs.js.map +1 -1
  410. package/es/tabs-container/index.js +13 -0
  411. package/es/tabs-container/index.js.map +1 -0
  412. package/es/tabs-container/index.less +51 -0
  413. package/es/tag/color.less +43 -0
  414. package/es/tag/index.js +12 -3
  415. package/es/tag/index.js.map +1 -1
  416. package/es/tag/style/index.js +2 -0
  417. package/es/tag/style/index.js.map +1 -0
  418. package/es/tag/style/index.less +106 -0
  419. package/es/tag/tag.js +171 -0
  420. package/es/tag/tag.js.map +1 -0
  421. package/es/tag/tag.less +193 -0
  422. package/es/time-picker/index.js +1 -1
  423. package/es/time-picker/index.js.map +1 -1
  424. package/es/time-picker/style/index.js +2 -0
  425. package/es/time-picker/style/index.js.map +1 -0
  426. package/es/time-picker/style/index.less +247 -0
  427. package/es/timeline/index.js +1 -1
  428. package/es/timeline/index.js.map +1 -1
  429. package/es/timeline/style/index.js +2 -0
  430. package/es/timeline/style/index.js.map +1 -0
  431. package/es/timeline/style/index.less +167 -0
  432. package/es/tntd-action/index.js +7 -0
  433. package/es/tntd-action/index.js.map +1 -0
  434. package/es/tntd-cascader/AntdCascader/component/getIcons.js +7 -8
  435. package/es/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
  436. package/es/tntd-cascader/AntdCascader/index.js +4 -5
  437. package/es/tntd-cascader/AntdCascader/index.js.map +1 -1
  438. package/es/tntd-cascader/rc-cascader/OptionList/index.js +0 -1
  439. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +0 -1
  440. package/es/tntd-form/Form.js.map +1 -1
  441. package/es/tntd-form/FormItem/ItemHolder.js +1 -1
  442. package/es/tntd-form/FormItem/ItemHolder.js.map +1 -1
  443. package/es/tntd-form/FormItemInput.js +1 -1
  444. package/es/tntd-form/FormItemInput.js.map +1 -1
  445. package/es/tntd-form/FormItemLabel.js +1 -1
  446. package/es/tntd-form/FormItemLabel.js.map +1 -1
  447. package/es/tntd-form/context.js.map +1 -1
  448. package/es/tntd-form/style/index.js +1 -1
  449. package/es/tntd-form/style/index.js.map +1 -1
  450. package/es/tntd-form/style/index.less +1 -1
  451. package/es/tntd-form/style/rtl.less +3 -3
  452. package/es/tntd-layout/index.js +0 -1
  453. package/es/tntd-rc-select/_util/getIcons.js +7 -8
  454. package/es/tntd-rc-select/_util/getIcons.js.map +1 -1
  455. package/es/tntd-rc-select/style/index.less +844 -740
  456. package/es/tntd-select/index.js +0 -1
  457. package/es/tooltip/index.js +1 -1
  458. package/es/tooltip/index.js.map +1 -1
  459. package/es/tooltip/style/index.js +2 -0
  460. package/es/tooltip/style/index.js.map +1 -0
  461. package/es/tooltip/style/index.less +187 -0
  462. package/es/transfer/index.js +1 -1
  463. package/es/transfer/index.js.map +1 -1
  464. package/es/transfer/style/customize.less +62 -0
  465. package/es/transfer/style/index.js +7 -0
  466. package/es/transfer/style/index.js.map +1 -0
  467. package/es/transfer/style/index.less +191 -0
  468. package/es/tree/index.js +1 -1
  469. package/es/tree/index.js.map +1 -1
  470. package/es/tree/style/directory.less +95 -0
  471. package/es/tree/style/index.js +2 -0
  472. package/es/tree/style/index.js.map +1 -0
  473. package/es/tree/style/index.less +280 -0
  474. package/es/tree/style/mixin.less +29 -0
  475. package/es/tree-select/index.js +1 -1
  476. package/es/tree-select/index.js.map +1 -1
  477. package/es/tree-select/style/index.js +6 -0
  478. package/es/tree-select/style/index.js.map +1 -0
  479. package/es/tree-select/style/index.less +191 -0
  480. package/es/typography/index.js +1 -1
  481. package/es/typography/index.js.map +1 -1
  482. package/es/typography/style/index.js +5 -0
  483. package/es/typography/style/index.js.map +1 -0
  484. package/es/typography/style/index.less +204 -0
  485. package/es/upload/index.js +1 -1
  486. package/es/upload/index.js.map +1 -1
  487. package/es/upload/style/index.js +5 -0
  488. package/es/upload/style/index.js.map +1 -0
  489. package/es/upload/style/index.less +542 -0
  490. package/es/version/index.js +1 -1
  491. package/es/version/index.js.map +1 -1
  492. package/es/version/style/index.js +2 -0
  493. package/es/version/style/index.js.map +1 -0
  494. package/lib/_util/context.js +3 -6
  495. package/lib/_util/defaultRenderEmpty.d.ts +2 -2
  496. package/lib/_util/defaultRenderEmpty.d.ts.map +1 -1
  497. package/lib/_util/defaultRenderEmpty.js +4 -5
  498. package/lib/_util/hooks/useFlexGapSupport.js +7 -8
  499. package/lib/_util/hooks/useForceUpdate.js +5 -5
  500. package/lib/_util/motion.js +3 -6
  501. package/lib/_util/reactNode.js +4 -5
  502. package/lib/_util/responsiveObserve.js +6 -9
  503. package/lib/_util/styleChecker.js +3 -5
  504. package/lib/_util/type.js +3 -5
  505. package/lib/_util/warning.js +5 -6
  506. package/lib/actions/index.js +1 -2
  507. package/lib/affix/index.d.ts +1 -1
  508. package/lib/affix/index.d.ts.map +1 -1
  509. package/lib/affix/index.js +5 -6
  510. package/lib/affix/index.js.map +1 -1
  511. package/lib/affix/style/index.d.ts +3 -0
  512. package/lib/affix/style/index.d.ts.map +1 -0
  513. package/lib/affix/style/index.js +4 -0
  514. package/lib/affix/style/index.js.map +1 -0
  515. package/lib/affix/style/index.less +6 -0
  516. package/lib/alert/index.d.ts +1 -1
  517. package/lib/alert/index.d.ts.map +1 -1
  518. package/lib/alert/index.js +5 -6
  519. package/lib/alert/index.js.map +1 -1
  520. package/lib/alert/style/index.d.ts +3 -0
  521. package/lib/alert/style/index.d.ts.map +1 -0
  522. package/lib/alert/style/index.js +4 -0
  523. package/lib/alert/style/index.js.map +1 -0
  524. package/lib/alert/style/index.less +188 -0
  525. package/lib/anchor/index.d.ts +1 -1
  526. package/lib/anchor/index.d.ts.map +1 -1
  527. package/lib/anchor/index.js +5 -6
  528. package/lib/anchor/index.js.map +1 -1
  529. package/lib/anchor/style/index.d.ts +4 -0
  530. package/lib/anchor/style/index.d.ts.map +1 -0
  531. package/lib/anchor/style/index.js +5 -0
  532. package/lib/anchor/style/index.js.map +1 -0
  533. package/lib/anchor/style/index.less +82 -0
  534. package/lib/array-input/icon.d.ts +3 -2
  535. package/lib/array-input/icon.d.ts.map +1 -1
  536. package/lib/array-input/icon.js +3 -5
  537. package/lib/array-input/index.d.ts +2 -1
  538. package/lib/array-input/index.d.ts.map +1 -1
  539. package/lib/array-input/index.js +8 -10
  540. package/lib/auth-context/index.js +2 -3
  541. package/lib/auto-complete/index.d.ts +1 -1
  542. package/lib/auto-complete/index.d.ts.map +1 -1
  543. package/lib/auto-complete/index.js +5 -6
  544. package/lib/auto-complete/index.js.map +1 -1
  545. package/lib/auto-complete/style/index.d.ts +5 -0
  546. package/lib/auto-complete/style/index.d.ts.map +1 -0
  547. package/lib/auto-complete/style/index.js +6 -0
  548. package/lib/auto-complete/style/index.js.map +1 -0
  549. package/lib/auto-complete/style/index.less +92 -0
  550. package/lib/avatar/index.d.ts +1 -1
  551. package/lib/avatar/index.d.ts.map +1 -1
  552. package/lib/avatar/index.js +5 -6
  553. package/lib/avatar/index.js.map +1 -1
  554. package/lib/avatar/style/index.d.ts +3 -0
  555. package/lib/avatar/style/index.d.ts.map +1 -0
  556. package/lib/avatar/style/index.js +4 -0
  557. package/lib/avatar/style/index.js.map +1 -0
  558. package/lib/avatar/style/index.less +59 -0
  559. package/lib/back-top/index.d.ts +1 -1
  560. package/lib/back-top/index.d.ts.map +1 -1
  561. package/lib/back-top/index.js +5 -6
  562. package/lib/back-top/index.js.map +1 -1
  563. package/lib/back-top/style/index.d.ts +3 -0
  564. package/lib/back-top/style/index.d.ts.map +1 -0
  565. package/lib/back-top/style/index.js +4 -0
  566. package/lib/back-top/style/index.js.map +1 -0
  567. package/lib/back-top/style/index.less +42 -0
  568. package/lib/back-top/style/responsive.less +11 -0
  569. package/lib/badge/index.d.ts +1 -1
  570. package/lib/badge/index.d.ts.map +1 -1
  571. package/lib/badge/index.js +5 -6
  572. package/lib/badge/index.js.map +1 -1
  573. package/lib/badge/style/index.d.ts +3 -0
  574. package/lib/badge/style/index.d.ts.map +1 -0
  575. package/lib/badge/style/index.js +4 -0
  576. package/lib/badge/style/index.js.map +1 -0
  577. package/lib/badge/style/index.less +190 -0
  578. package/lib/breadcrumb/index.d.ts +1 -1
  579. package/lib/breadcrumb/index.d.ts.map +1 -1
  580. package/lib/breadcrumb/index.js +5 -6
  581. package/lib/breadcrumb/index.js.map +1 -1
  582. package/lib/breadcrumb/style/index.d.ts +5 -0
  583. package/lib/breadcrumb/style/index.d.ts.map +1 -0
  584. package/lib/breadcrumb/style/index.js +6 -0
  585. package/lib/breadcrumb/style/index.js.map +1 -0
  586. package/lib/breadcrumb/style/index.less +52 -0
  587. package/lib/button/button.js +6 -9
  588. package/lib/button/button.less +7 -0
  589. package/lib/button/index.d.ts +2 -1
  590. package/lib/button/index.d.ts.map +1 -1
  591. package/lib/button/index.js +7 -7
  592. package/lib/button/index.js.map +1 -1
  593. package/lib/button/style/index.d.ts +3 -0
  594. package/lib/button/style/index.d.ts.map +1 -0
  595. package/lib/button/style/index.js +4 -0
  596. package/lib/button/style/index.js.map +1 -0
  597. package/lib/button/style/index.less +224 -0
  598. package/lib/button/style/mixin.less +357 -0
  599. package/lib/calendar/index.d.ts +1 -1
  600. package/lib/calendar/index.d.ts.map +1 -1
  601. package/lib/calendar/index.js +5 -6
  602. package/lib/calendar/index.js.map +1 -1
  603. package/lib/calendar/style/index.d.ts +5 -0
  604. package/lib/calendar/style/index.d.ts.map +1 -0
  605. package/lib/calendar/style/index.js +6 -0
  606. package/lib/calendar/style/index.js.map +1 -0
  607. package/lib/calendar/style/index.less +278 -0
  608. package/lib/card/card.js +5 -8
  609. package/lib/card/index.d.ts +1 -1
  610. package/lib/card/index.d.ts.map +1 -1
  611. package/lib/card/index.js +2 -3
  612. package/lib/card/index.js.map +1 -1
  613. package/lib/card/style/index.d.ts +6 -0
  614. package/lib/card/style/index.d.ts.map +1 -0
  615. package/lib/card/style/index.js +7 -0
  616. package/lib/card/style/index.js.map +1 -0
  617. package/lib/card/style/index.less +263 -0
  618. package/lib/card/style/size.less +25 -0
  619. package/lib/carousel/index.d.ts +1 -1
  620. package/lib/carousel/index.d.ts.map +1 -1
  621. package/lib/carousel/index.js +5 -6
  622. package/lib/carousel/index.js.map +1 -1
  623. package/lib/carousel/style/index.d.ts +3 -0
  624. package/lib/carousel/style/index.d.ts.map +1 -0
  625. package/lib/carousel/style/index.js +4 -0
  626. package/lib/carousel/style/index.js.map +1 -0
  627. package/lib/carousel/style/index.less +238 -0
  628. package/lib/cascader/index.d.ts +1 -1
  629. package/lib/cascader/index.d.ts.map +1 -1
  630. package/lib/cascader/index.js +6 -8
  631. package/lib/cascader/index.js.map +1 -1
  632. package/lib/cascader/style/index.d.ts +5 -0
  633. package/lib/cascader/style/index.d.ts.map +1 -0
  634. package/lib/cascader/style/index.js +6 -0
  635. package/lib/cascader/style/index.js.map +1 -0
  636. package/lib/cascader/style/index.less +227 -0
  637. package/lib/check-card/group.js +9 -14
  638. package/lib/check-card/index.js +11 -16
  639. package/lib/check-card/index.js.map +1 -1
  640. package/lib/checkbox/checkbox-group.js +1 -2
  641. package/lib/checkbox/index.d.ts +1 -1
  642. package/lib/checkbox/index.d.ts.map +1 -1
  643. package/lib/checkbox/index.js +5 -6
  644. package/lib/checkbox/index.js.map +1 -1
  645. package/lib/checkbox/style/index.d.ts +3 -0
  646. package/lib/checkbox/style/index.d.ts.map +1 -0
  647. package/lib/checkbox/style/index.js +4 -0
  648. package/lib/checkbox/style/index.js.map +1 -0
  649. package/lib/checkbox/style/index.less +4 -0
  650. package/lib/checkbox/style/mixin.less +220 -0
  651. package/lib/col/index.d.ts +1 -1
  652. package/lib/col/index.d.ts.map +1 -1
  653. package/lib/col/index.js +5 -6
  654. package/lib/col/index.js.map +1 -1
  655. package/lib/col/style/index.d.ts +3 -0
  656. package/lib/col/style/index.d.ts.map +1 -0
  657. package/lib/col/style/index.js +4 -0
  658. package/lib/col/style/index.js.map +1 -0
  659. package/lib/collapse/collapse.less +3 -3
  660. package/lib/collapse/index.d.ts +1 -1
  661. package/lib/collapse/index.d.ts.map +1 -1
  662. package/lib/collapse/index.js +5 -6
  663. package/lib/collapse/index.js.map +1 -1
  664. package/lib/collapse/style/index.d.ts +3 -0
  665. package/lib/collapse/style/index.d.ts.map +1 -0
  666. package/lib/collapse/style/index.js +4 -0
  667. package/lib/collapse/style/index.js.map +1 -0
  668. package/lib/collapse/style/index.less +135 -0
  669. package/lib/color-picker/ColorPicker.d.ts +4 -2
  670. package/lib/color-picker/ColorPicker.d.ts.map +1 -1
  671. package/lib/color-picker/ColorPicker.js +13 -17
  672. package/lib/color-picker/ColorPicker.js.map +1 -1
  673. package/lib/color-picker/index.d.ts +2 -1
  674. package/lib/color-picker/index.d.ts.map +1 -1
  675. package/lib/color-picker/index.less +25 -8
  676. package/lib/columns/index.d.ts +3 -2
  677. package/lib/columns/index.d.ts.map +1 -1
  678. package/lib/columns/index.js +3 -7
  679. package/lib/comment/index.d.ts +1 -1
  680. package/lib/comment/index.d.ts.map +1 -1
  681. package/lib/comment/index.js +5 -6
  682. package/lib/comment/index.js.map +1 -1
  683. package/lib/comment/style/index.d.ts +3 -0
  684. package/lib/comment/style/index.d.ts.map +1 -0
  685. package/lib/comment/style/index.js +4 -0
  686. package/lib/comment/style/index.js.map +1 -0
  687. package/lib/comment/style/index.less +93 -0
  688. package/lib/config-provider/DisabledContext.js +5 -7
  689. package/lib/config-provider/SizeContext.js +5 -7
  690. package/lib/config-provider/index.d.ts +1 -1
  691. package/lib/config-provider/index.d.ts.map +1 -1
  692. package/lib/config-provider/index.js +5 -6
  693. package/lib/config-provider/index.js.map +1 -1
  694. package/lib/config-provider/style/index.d.ts +2 -0
  695. package/lib/config-provider/style/index.d.ts.map +1 -0
  696. package/lib/config-provider/style/index.js +3 -0
  697. package/lib/config-provider/style/index.js.map +1 -0
  698. package/lib/config-provider/style/index.less +2 -0
  699. package/lib/connect/index.js +5 -11
  700. package/lib/date-picker/index.d.ts +1 -1
  701. package/lib/date-picker/index.d.ts.map +1 -1
  702. package/lib/date-picker/index.js +6 -8
  703. package/lib/date-picker/index.js.map +1 -1
  704. package/lib/date-picker/style/Calendar.less +402 -0
  705. package/lib/date-picker/style/DecadePanel.less +81 -0
  706. package/lib/date-picker/style/MonthPanel.less +86 -0
  707. package/lib/date-picker/style/MonthPicker.less +11 -0
  708. package/lib/date-picker/style/Picker.less +114 -0
  709. package/lib/date-picker/style/RangePicker.less +248 -0
  710. package/lib/date-picker/style/TimePicker.less +151 -0
  711. package/lib/date-picker/style/WeekPicker.less +21 -0
  712. package/lib/date-picker/style/YearPanel.less +85 -0
  713. package/lib/date-picker/style/index.d.ts +6 -0
  714. package/lib/date-picker/style/index.d.ts.map +1 -0
  715. package/lib/date-picker/style/index.js +7 -0
  716. package/lib/date-picker/style/index.js.map +1 -0
  717. package/lib/date-picker/style/index.less +17 -0
  718. package/lib/descriptions/descriptions.d.ts +10 -4
  719. package/lib/descriptions/descriptions.d.ts.map +1 -1
  720. package/lib/descriptions/descriptions.js +41 -30
  721. package/lib/descriptions/descriptions.js.map +1 -1
  722. package/lib/descriptions/descriptions.less +104 -16
  723. package/lib/descriptions/index.d.ts +1 -1
  724. package/lib/descriptions/index.d.ts.map +1 -1
  725. package/lib/descriptions/index.js +2 -3
  726. package/lib/descriptions/index.js.map +1 -1
  727. package/lib/descriptions/style/index.d.ts +3 -0
  728. package/lib/descriptions/style/index.d.ts.map +1 -0
  729. package/lib/descriptions/style/index.js +4 -0
  730. package/lib/descriptions/style/index.js.map +1 -0
  731. package/lib/descriptions/style/index.less +144 -0
  732. package/lib/development-login/LoginModal.d.ts +2 -1
  733. package/lib/development-login/LoginModal.d.ts.map +1 -1
  734. package/lib/development-login/LoginModal.js +9 -10
  735. package/lib/development-login/index.d.ts +2 -1
  736. package/lib/development-login/index.d.ts.map +1 -1
  737. package/lib/development-login/index.js +9 -8
  738. package/lib/divider/index.d.ts +1 -1
  739. package/lib/divider/index.d.ts.map +1 -1
  740. package/lib/divider/index.js +5 -6
  741. package/lib/divider/index.js.map +1 -1
  742. package/lib/divider/style/index.d.ts +3 -0
  743. package/lib/divider/style/index.d.ts.map +1 -0
  744. package/lib/divider/style/index.js +4 -0
  745. package/lib/divider/style/index.js.map +1 -0
  746. package/lib/divider/style/index.less +109 -0
  747. package/lib/drawer/drawer.d.ts +25 -2
  748. package/lib/drawer/drawer.d.ts.map +1 -1
  749. package/lib/drawer/drawer.js +115 -22
  750. package/lib/drawer/drawer.js.map +1 -1
  751. package/lib/drawer/drawer.less +1 -1
  752. package/lib/drawer/index.d.ts +2 -2
  753. package/lib/drawer/index.d.ts.map +1 -1
  754. package/lib/drawer/index.js +7 -8
  755. package/lib/drawer/index.js.map +1 -1
  756. package/lib/drawer/index.less +157 -0
  757. package/lib/drawer/style/drawer.less +230 -0
  758. package/lib/drawer/style/index.d.ts +3 -0
  759. package/lib/drawer/style/index.d.ts.map +1 -0
  760. package/lib/drawer/style/index.js +4 -0
  761. package/lib/drawer/style/index.js.map +1 -0
  762. package/lib/drawer/style/index.less +3 -0
  763. package/lib/dropdown/index.d.ts +1 -1
  764. package/lib/dropdown/index.d.ts.map +1 -1
  765. package/lib/dropdown/index.js +5 -6
  766. package/lib/dropdown/index.js.map +1 -1
  767. package/lib/dropdown/style/index.d.ts +4 -0
  768. package/lib/dropdown/style/index.d.ts.map +1 -0
  769. package/lib/dropdown/style/index.js +5 -0
  770. package/lib/dropdown/style/index.js.map +1 -0
  771. package/lib/dropdown/style/index.less +283 -0
  772. package/lib/ellipsis/Svg/CopySVG.d.ts +2 -1
  773. package/lib/ellipsis/Svg/CopySVG.d.ts.map +1 -1
  774. package/lib/ellipsis/Svg/CopySVG.js +2 -3
  775. package/lib/ellipsis/Svg/TickSVG.d.ts +2 -1
  776. package/lib/ellipsis/Svg/TickSVG.d.ts.map +1 -1
  777. package/lib/ellipsis/Svg/TickSVG.js +2 -3
  778. package/lib/ellipsis/index.d.ts +2 -1
  779. package/lib/ellipsis/index.d.ts.map +1 -1
  780. package/lib/ellipsis/index.js +12 -9
  781. package/lib/empty/empty.d.ts +2 -2
  782. package/lib/empty/empty.d.ts.map +1 -1
  783. package/lib/empty/empty.js +8 -12
  784. package/lib/empty/empty.stories.js +2 -4
  785. package/lib/empty/index.d.ts +1 -1
  786. package/lib/empty/index.d.ts.map +1 -1
  787. package/lib/empty/index.js +2 -3
  788. package/lib/empty/index.js.map +1 -1
  789. package/lib/empty/style/index.d.ts +3 -0
  790. package/lib/empty/style/index.d.ts.map +1 -0
  791. package/lib/empty/style/index.js +4 -0
  792. package/lib/empty/style/index.js.map +1 -0
  793. package/lib/empty/style/index.less +52 -0
  794. package/lib/exception/exception.js +1 -2
  795. package/lib/exception/index.js +1 -2
  796. package/lib/form/form.js +10 -15
  797. package/lib/form/form.js.map +1 -1
  798. package/lib/form/index.d.ts +1 -1
  799. package/lib/form/index.d.ts.map +1 -1
  800. package/lib/form/index.js +2 -3
  801. package/lib/form/index.js.map +1 -1
  802. package/lib/form/style/index.d.ts +4 -0
  803. package/lib/form/style/index.d.ts.map +1 -0
  804. package/lib/form/style/index.js +5 -0
  805. package/lib/form/style/index.js.map +1 -0
  806. package/lib/form/style/index.less +653 -0
  807. package/lib/form/style/mixin.less +126 -0
  808. package/lib/grid/index.d.ts +3 -10
  809. package/lib/grid/index.d.ts.map +1 -1
  810. package/lib/grid/index.js +17 -24
  811. package/lib/grid/index.js.map +1 -1
  812. package/lib/grid/style/index.d.ts +1 -0
  813. package/lib/grid/style/index.d.ts.map +1 -1
  814. package/lib/grid/style/index.js +1 -0
  815. package/lib/grid/style/index.js.map +1 -1
  816. package/lib/grid/style/index.less +24 -26
  817. package/lib/grid/style/mixin.less +63 -19
  818. package/lib/grid-v4/RowContext.d.ts.map +1 -0
  819. package/lib/{grid → grid-v4}/RowContext.js +1 -2
  820. package/lib/grid-v4/RowContext.js.map +1 -0
  821. package/lib/grid-v4/col.d.ts.map +1 -0
  822. package/lib/{grid → grid-v4}/col.js +9 -14
  823. package/lib/grid-v4/col.js.map +1 -0
  824. package/lib/grid-v4/hooks/useBreakpoint.d.ts.map +1 -0
  825. package/lib/{grid → grid-v4}/hooks/useBreakpoint.js +1 -2
  826. package/lib/grid-v4/hooks/useBreakpoint.js.map +1 -0
  827. package/lib/grid-v4/index.d.ts +12 -0
  828. package/lib/grid-v4/index.d.ts.map +1 -0
  829. package/lib/grid-v4/index.js +30 -0
  830. package/lib/grid-v4/index.js.map +1 -0
  831. package/lib/grid-v4/row.d.ts.map +1 -0
  832. package/lib/{grid → grid-v4}/row.js +10 -14
  833. package/lib/grid-v4/row.js.map +1 -0
  834. package/lib/grid-v4/style/index.d.ts +2 -0
  835. package/lib/grid-v4/style/index.d.ts.map +1 -0
  836. package/lib/grid-v4/style/index.js +3 -0
  837. package/lib/grid-v4/style/index.js.map +1 -0
  838. package/lib/grid-v4/style/index.less +124 -0
  839. package/lib/grid-v4/style/mixin.less +57 -0
  840. package/lib/handle/index.d.ts +2 -1
  841. package/lib/handle/index.d.ts.map +1 -1
  842. package/lib/handle/index.js +6 -9
  843. package/lib/icon/IconFont.d.ts +10 -0
  844. package/lib/icon/IconFont.d.ts.map +1 -0
  845. package/lib/icon/IconFont.js +60 -0
  846. package/lib/icon/IconFont.js.map +1 -0
  847. package/lib/icon/components/Icon.d.ts +31 -0
  848. package/lib/icon/components/Icon.d.ts.map +1 -0
  849. package/lib/icon/components/Icon.js +143 -0
  850. package/lib/icon/components/Icon.js.map +1 -0
  851. package/lib/icon/components/index.d.ts +2 -0
  852. package/lib/icon/components/index.d.ts.map +1 -0
  853. package/lib/icon/components/index.js +13 -0
  854. package/lib/icon/components/index.js.map +1 -0
  855. package/lib/icon/components/utils.d.ts +22 -0
  856. package/lib/icon/components/utils.d.ts.map +1 -0
  857. package/lib/icon/components/utils.js +118 -0
  858. package/lib/icon/components/utils.js.map +1 -0
  859. package/lib/icon/index.d.ts +46 -3
  860. package/lib/icon/index.d.ts.map +1 -1
  861. package/lib/icon/index.js +120 -17
  862. package/lib/icon/index.js.map +1 -1
  863. package/lib/icon/style/index.d.ts +4 -0
  864. package/lib/icon/style/index.d.ts.map +1 -0
  865. package/lib/icon/style/index.js +5 -0
  866. package/lib/icon/style/index.js.map +1 -0
  867. package/lib/icon/style/index.less +4 -0
  868. package/lib/icon/style/style.less +6 -0
  869. package/lib/icon/twoTonePrimaryColor.d.ts +3 -0
  870. package/lib/icon/twoTonePrimaryColor.d.ts.map +1 -0
  871. package/lib/icon/twoTonePrimaryColor.js +18 -0
  872. package/lib/icon/twoTonePrimaryColor.js.map +1 -0
  873. package/lib/icon/utils.d.ts +13 -0
  874. package/lib/icon/utils.d.ts.map +1 -0
  875. package/lib/icon/utils.js +75 -0
  876. package/lib/icon/utils.js.map +1 -0
  877. package/lib/icon-list/index.js +1 -2
  878. package/lib/icon-old/index.d.ts +5 -0
  879. package/lib/icon-old/index.d.ts.map +1 -0
  880. package/lib/icon-old/index.js +24 -0
  881. package/lib/icon-old/index.js.map +1 -0
  882. package/lib/icon-old/style/index.d.ts +3 -0
  883. package/lib/icon-old/style/index.d.ts.map +1 -0
  884. package/lib/icon-old/style/index.js +4 -0
  885. package/lib/icon-old/style/index.js.map +1 -0
  886. package/lib/icon-old/style/index.less +4 -0
  887. package/lib/img/Contain.d.ts +2 -1
  888. package/lib/img/Contain.d.ts.map +1 -1
  889. package/lib/img/Contain.js +3 -6
  890. package/lib/img/Cover.d.ts +2 -1
  891. package/lib/img/Cover.d.ts.map +1 -1
  892. package/lib/img/Cover.js +8 -11
  893. package/lib/img/index.d.ts +2 -1
  894. package/lib/img/index.d.ts.map +1 -1
  895. package/lib/img/index.js +8 -11
  896. package/lib/index.d.ts +7 -2
  897. package/lib/index.d.ts.map +1 -1
  898. package/lib/index.js +38 -3
  899. package/lib/index.js.map +1 -1
  900. package/lib/input/index.d.ts +1 -1
  901. package/lib/input/index.d.ts.map +1 -1
  902. package/lib/input/index.js +2 -3
  903. package/lib/input/index.js.map +1 -1
  904. package/lib/input/input.js +8 -12
  905. package/lib/input/style/index.d.ts +4 -0
  906. package/lib/input/style/index.d.ts.map +1 -0
  907. package/lib/input/style/index.js +5 -0
  908. package/lib/input/style/index.js.map +1 -0
  909. package/lib/input/style/index.less +57 -0
  910. package/lib/input/style/mixin.less +448 -0
  911. package/lib/input/style/search-input.less +34 -0
  912. package/lib/input-number/index.d.ts +1 -1
  913. package/lib/input-number/index.d.ts.map +1 -1
  914. package/lib/input-number/index.js +5 -6
  915. package/lib/input-number/index.js.map +1 -1
  916. package/lib/input-number/style/index.d.ts +3 -0
  917. package/lib/input-number/style/index.d.ts.map +1 -0
  918. package/lib/input-number/style/index.js +4 -0
  919. package/lib/input-number/style/index.js.map +1 -0
  920. package/lib/input-number/style/index.less +179 -0
  921. package/lib/label/index.d.ts +2 -2
  922. package/lib/label/index.d.ts.map +1 -1
  923. package/lib/label/index.js +10 -17
  924. package/lib/layout/index.d.ts +1 -1
  925. package/lib/layout/index.d.ts.map +1 -1
  926. package/lib/layout/index.js +5 -6
  927. package/lib/layout/index.js.map +1 -1
  928. package/lib/layout/style/index.d.ts +3 -0
  929. package/lib/layout/style/index.d.ts.map +1 -0
  930. package/lib/layout/style/index.js +4 -0
  931. package/lib/layout/style/index.js.map +1 -0
  932. package/lib/layout/style/index.less +124 -0
  933. package/lib/layout/style/light.less +15 -0
  934. package/lib/list/index.d.ts +1 -1
  935. package/lib/list/index.d.ts.map +1 -1
  936. package/lib/list/index.js +5 -6
  937. package/lib/list/index.js.map +1 -1
  938. package/lib/list/style/bordered.less +41 -0
  939. package/lib/list/style/index.d.ts +7 -0
  940. package/lib/list/style/index.d.ts.map +1 -0
  941. package/lib/list/style/index.js +8 -0
  942. package/lib/list/style/index.js.map +1 -0
  943. package/lib/list/style/index.less +234 -0
  944. package/lib/list/style/responsive.less +40 -0
  945. package/lib/loading-button/index.d.ts +2 -1
  946. package/lib/loading-button/index.d.ts.map +1 -1
  947. package/lib/loading-button/index.js +8 -11
  948. package/lib/locale/default.d.ts +7 -0
  949. package/lib/locale/default.d.ts.map +1 -1
  950. package/lib/locale/default.js +1 -2
  951. package/lib/locale/en_US.d.ts +7 -0
  952. package/lib/locale/en_US.d.ts.map +1 -1
  953. package/lib/locale/en_US.js +9 -3
  954. package/lib/locale/en_US.js.map +1 -1
  955. package/lib/locale/zh_CN.d.ts +7 -0
  956. package/lib/locale/zh_CN.d.ts.map +1 -1
  957. package/lib/locale/zh_CN.js +9 -3
  958. package/lib/locale/zh_CN.js.map +1 -1
  959. package/lib/locale-provider/index.d.ts +1 -1
  960. package/lib/locale-provider/index.d.ts.map +1 -1
  961. package/lib/locale-provider/index.js +5 -6
  962. package/lib/locale-provider/index.js.map +1 -1
  963. package/lib/locale-provider/style/index.d.ts +2 -0
  964. package/lib/locale-provider/style/index.d.ts.map +1 -0
  965. package/lib/locale-provider/style/index.js +3 -0
  966. package/lib/locale-provider/style/index.js.map +1 -0
  967. package/lib/locale-provider/style/index.less +2 -0
  968. package/lib/mentions/index.d.ts +1 -1
  969. package/lib/mentions/index.d.ts.map +1 -1
  970. package/lib/mentions/index.js +5 -6
  971. package/lib/mentions/index.js.map +1 -1
  972. package/lib/mentions/style/index.d.ts +4 -0
  973. package/lib/mentions/style/index.d.ts.map +1 -0
  974. package/lib/mentions/style/index.js +5 -0
  975. package/lib/mentions/style/index.js.map +1 -0
  976. package/lib/mentions/style/index.less +164 -0
  977. package/lib/menu/index.d.ts +1 -1
  978. package/lib/menu/index.d.ts.map +1 -1
  979. package/lib/menu/index.js +5 -6
  980. package/lib/menu/index.js.map +1 -1
  981. package/lib/menu/style/dark.less +139 -0
  982. package/lib/menu/style/index.d.ts +4 -0
  983. package/lib/menu/style/index.d.ts.map +1 -0
  984. package/lib/menu/style/index.js +5 -0
  985. package/lib/menu/style/index.js.map +1 -0
  986. package/lib/menu/style/index.less +515 -0
  987. package/lib/message/index.d.ts +1 -1
  988. package/lib/message/index.d.ts.map +1 -1
  989. package/lib/message/index.js +5 -6
  990. package/lib/message/index.js.map +1 -1
  991. package/lib/message/style/index.d.ts +3 -0
  992. package/lib/message/style/index.d.ts.map +1 -0
  993. package/lib/message/style/index.js +4 -0
  994. package/lib/message/style/index.js.map +1 -0
  995. package/lib/message/style/index.less +75 -0
  996. package/lib/modal/index.d.ts +1 -1
  997. package/lib/modal/index.d.ts.map +1 -1
  998. package/lib/modal/index.js +2 -3
  999. package/lib/modal/index.js.map +1 -1
  1000. package/lib/modal/modal.d.ts +1 -1
  1001. package/lib/modal/modal.d.ts.map +1 -1
  1002. package/lib/modal/modal.js +56 -17
  1003. package/lib/modal/modal.js.map +1 -1
  1004. package/lib/modal/modal.less +13 -32
  1005. package/lib/modal/style/confirm.less +96 -0
  1006. package/lib/modal/style/index.d.ts +4 -0
  1007. package/lib/modal/style/index.d.ts.map +1 -0
  1008. package/lib/modal/style/index.js +5 -0
  1009. package/lib/modal/style/index.js.map +1 -0
  1010. package/lib/modal/style/index.less +4 -0
  1011. package/lib/modal/style/modal.less +169 -0
  1012. package/lib/notification/index.d.ts +1 -1
  1013. package/lib/notification/index.d.ts.map +1 -1
  1014. package/lib/notification/index.js +5 -6
  1015. package/lib/notification/index.js.map +1 -1
  1016. package/lib/notification/style/index.d.ts +3 -0
  1017. package/lib/notification/style/index.d.ts.map +1 -0
  1018. package/lib/notification/style/index.js +4 -0
  1019. package/lib/notification/style/index.js.map +1 -0
  1020. package/lib/notification/style/index.less +201 -0
  1021. package/lib/page/Box.d.ts +2 -1
  1022. package/lib/page/Box.d.ts.map +1 -1
  1023. package/lib/page/Box.js +2 -5
  1024. package/lib/page/index.d.ts +2 -1
  1025. package/lib/page/index.d.ts.map +1 -1
  1026. package/lib/page/index.js +7 -12
  1027. package/lib/page/utils.js +4 -7
  1028. package/lib/page-container/index.d.ts +4 -0
  1029. package/lib/page-container/index.d.ts.map +1 -0
  1030. package/lib/page-container/index.js +22 -0
  1031. package/lib/page-container/index.js.map +1 -0
  1032. package/lib/page-container/index.less +38 -0
  1033. package/lib/page-header/index.d.ts +1 -1
  1034. package/lib/page-header/index.d.ts.map +1 -1
  1035. package/lib/page-header/index.js +5 -6
  1036. package/lib/page-header/index.js.map +1 -1
  1037. package/lib/page-header/style/index.d.ts +4 -0
  1038. package/lib/page-header/style/index.d.ts.map +1 -0
  1039. package/lib/page-header/style/index.js +5 -0
  1040. package/lib/page-header/style/index.js.map +1 -0
  1041. package/lib/page-header/style/index.less +119 -0
  1042. package/lib/page-loading/index.d.ts +4 -0
  1043. package/lib/page-loading/index.d.ts.map +1 -0
  1044. package/lib/page-loading/index.js +34 -0
  1045. package/lib/page-loading/index.js.map +1 -0
  1046. package/lib/page-loading/index.less +38 -0
  1047. package/lib/page-loading/loading.gif +0 -0
  1048. package/lib/pagination/index.d.ts +1 -1
  1049. package/lib/pagination/index.d.ts.map +1 -1
  1050. package/lib/pagination/index.js +5 -6
  1051. package/lib/pagination/index.js.map +1 -1
  1052. package/lib/pagination/style/index.d.ts +4 -0
  1053. package/lib/pagination/style/index.d.ts.map +1 -0
  1054. package/lib/pagination/style/index.js +5 -0
  1055. package/lib/pagination/style/index.js.map +1 -0
  1056. package/lib/pagination/style/index.less +400 -0
  1057. package/lib/popconfirm/index.d.ts +1 -1
  1058. package/lib/popconfirm/index.d.ts.map +1 -1
  1059. package/lib/popconfirm/index.js +5 -6
  1060. package/lib/popconfirm/index.js.map +1 -1
  1061. package/lib/popconfirm/style/index.d.ts +4 -0
  1062. package/lib/popconfirm/style/index.d.ts.map +1 -0
  1063. package/lib/popconfirm/style/index.js +5 -0
  1064. package/lib/popconfirm/style/index.js.map +1 -0
  1065. package/lib/popover/index.d.ts +1 -1
  1066. package/lib/popover/index.d.ts.map +1 -1
  1067. package/lib/popover/index.js +5 -6
  1068. package/lib/popover/index.js.map +1 -1
  1069. package/lib/popover/style/index.d.ts +3 -0
  1070. package/lib/popover/style/index.d.ts.map +1 -0
  1071. package/lib/popover/style/index.js +4 -0
  1072. package/lib/popover/style/index.js.map +1 -0
  1073. package/lib/popover/style/index.less +206 -0
  1074. package/lib/prev-locale.js +6 -11
  1075. package/lib/preview-text/index.js +5 -7
  1076. package/lib/progress/index.d.ts +1 -1
  1077. package/lib/progress/index.d.ts.map +1 -1
  1078. package/lib/progress/index.js +5 -6
  1079. package/lib/progress/index.js.map +1 -1
  1080. package/lib/progress/style/index.d.ts +3 -0
  1081. package/lib/progress/style/index.d.ts.map +1 -0
  1082. package/lib/progress/style/index.js +4 -0
  1083. package/lib/progress/style/index.js.map +1 -0
  1084. package/lib/progress/style/index.less +182 -0
  1085. package/lib/query-form/Field/Checkbox.d.ts +2 -1
  1086. package/lib/query-form/Field/Checkbox.d.ts.map +1 -1
  1087. package/lib/query-form/Field/Checkbox.js +3 -6
  1088. package/lib/query-form/Field/Select.d.ts +2 -1
  1089. package/lib/query-form/Field/Select.d.ts.map +1 -1
  1090. package/lib/query-form/Field/Select.js +10 -13
  1091. package/lib/query-form/Field/SelectInput.d.ts +2 -1
  1092. package/lib/query-form/Field/SelectInput.d.ts.map +1 -1
  1093. package/lib/query-form/Field/SelectInput.js +10 -13
  1094. package/lib/query-form/Field/fieldsMap.js +4 -7
  1095. package/lib/query-form/Field/index.d.ts +1 -1
  1096. package/lib/query-form/Field/index.d.ts.map +1 -1
  1097. package/lib/query-form/Field/index.js +19 -24
  1098. package/lib/query-form/createActions.js +2 -3
  1099. package/lib/query-form/index.d.ts +1 -1
  1100. package/lib/query-form/index.d.ts.map +1 -1
  1101. package/lib/query-form/index.js +22 -25
  1102. package/lib/query-list-scene/List.d.ts +1 -1
  1103. package/lib/query-list-scene/List.d.ts.map +1 -1
  1104. package/lib/query-list-scene/List.js +24 -29
  1105. package/lib/query-list-scene/QueryForm.d.ts +1 -1
  1106. package/lib/query-list-scene/QueryForm.d.ts.map +1 -1
  1107. package/lib/query-list-scene/QueryForm.js +17 -22
  1108. package/lib/query-list-scene/QueryListScene.d.ts +1 -1
  1109. package/lib/query-list-scene/QueryListScene.d.ts.map +1 -1
  1110. package/lib/query-list-scene/QueryListScene.js +14 -18
  1111. package/lib/query-list-scene/Title.d.ts +2 -1
  1112. package/lib/query-list-scene/Title.d.ts.map +1 -1
  1113. package/lib/query-list-scene/Title.js +2 -3
  1114. package/lib/query-list-scene/Toolbar.d.ts +2 -1
  1115. package/lib/query-list-scene/Toolbar.d.ts.map +1 -1
  1116. package/lib/query-list-scene/Toolbar.js +6 -9
  1117. package/lib/query-list-scene/createActions.js +2 -3
  1118. package/lib/query-list-scene/index.js +4 -8
  1119. package/lib/radio/index.d.ts +1 -1
  1120. package/lib/radio/index.d.ts.map +1 -1
  1121. package/lib/radio/index.js +5 -6
  1122. package/lib/radio/index.js.map +1 -1
  1123. package/lib/radio/radio-group.js +1 -2
  1124. package/lib/radio/style/index.d.ts +3 -0
  1125. package/lib/radio/style/index.d.ts.map +1 -0
  1126. package/lib/radio/style/index.js +4 -0
  1127. package/lib/radio/style/index.js.map +1 -0
  1128. package/lib/radio/style/index.less +327 -0
  1129. package/lib/rate/index.d.ts +1 -1
  1130. package/lib/rate/index.d.ts.map +1 -1
  1131. package/lib/rate/index.js +5 -6
  1132. package/lib/rate/index.js.map +1 -1
  1133. package/lib/rate/style/index.d.ts +4 -0
  1134. package/lib/rate/style/index.d.ts.map +1 -0
  1135. package/lib/rate/style/index.js +5 -0
  1136. package/lib/rate/style/index.js.map +1 -0
  1137. package/lib/rate/style/index.less +85 -0
  1138. package/lib/render-empty/index.js +1 -2
  1139. package/lib/render-empty/render-empty.js +2 -3
  1140. package/lib/result/index.d.ts +1 -1
  1141. package/lib/result/index.d.ts.map +1 -1
  1142. package/lib/result/index.js +5 -6
  1143. package/lib/result/index.js.map +1 -1
  1144. package/lib/result/style/index.d.ts +3 -0
  1145. package/lib/result/style/index.d.ts.map +1 -0
  1146. package/lib/result/style/index.js +4 -0
  1147. package/lib/result/style/index.js.map +1 -0
  1148. package/lib/result/style/index.less +71 -0
  1149. package/lib/row/index.d.ts +1 -1
  1150. package/lib/row/index.d.ts.map +1 -1
  1151. package/lib/row/index.js +5 -6
  1152. package/lib/row/index.js.map +1 -1
  1153. package/lib/row/style/index.d.ts +3 -0
  1154. package/lib/row/style/index.d.ts.map +1 -0
  1155. package/lib/row/style/index.js +4 -0
  1156. package/lib/row/style/index.js.map +1 -0
  1157. package/lib/segmented/index.d.ts +1 -1
  1158. package/lib/segmented/index.d.ts.map +1 -1
  1159. package/lib/segmented/index.js +8 -12
  1160. package/lib/select/index.d.ts +1 -1
  1161. package/lib/select/index.d.ts.map +1 -1
  1162. package/lib/select/index.js +2 -3
  1163. package/lib/select/index.js.map +1 -1
  1164. package/lib/select/select.js +8 -12
  1165. package/lib/select/style/index.d.ts +4 -0
  1166. package/lib/select/style/index.d.ts.map +1 -0
  1167. package/lib/select/style/index.js +5 -0
  1168. package/lib/select/style/index.js.map +1 -0
  1169. package/lib/select/style/index.less +605 -0
  1170. package/lib/skeleton/index.d.ts +1 -1
  1171. package/lib/skeleton/index.d.ts.map +1 -1
  1172. package/lib/skeleton/index.js +5 -6
  1173. package/lib/skeleton/index.js.map +1 -1
  1174. package/lib/skeleton/style/index.d.ts +3 -0
  1175. package/lib/skeleton/style/index.d.ts.map +1 -0
  1176. package/lib/skeleton/style/index.js +4 -0
  1177. package/lib/skeleton/style/index.js.map +1 -0
  1178. package/lib/skeleton/style/index.less +130 -0
  1179. package/lib/slider/index.d.ts +1 -1
  1180. package/lib/slider/index.d.ts.map +1 -1
  1181. package/lib/slider/index.js +5 -6
  1182. package/lib/slider/index.js.map +1 -1
  1183. package/lib/slider/style/index.d.ts +4 -0
  1184. package/lib/slider/style/index.d.ts.map +1 -0
  1185. package/lib/slider/style/index.js +5 -0
  1186. package/lib/slider/style/index.js.map +1 -0
  1187. package/lib/slider/style/index.less +197 -0
  1188. package/lib/spin/index.d.ts +1 -1
  1189. package/lib/spin/index.d.ts.map +1 -1
  1190. package/lib/spin/index.js +5 -6
  1191. package/lib/spin/index.js.map +1 -1
  1192. package/lib/spin/style/index.d.ts +3 -0
  1193. package/lib/spin/style/index.d.ts.map +1 -0
  1194. package/lib/spin/style/index.js +4 -0
  1195. package/lib/spin/style/index.js.map +1 -0
  1196. package/lib/spin/style/index.less +214 -0
  1197. package/lib/statistic/index.d.ts +1 -1
  1198. package/lib/statistic/index.d.ts.map +1 -1
  1199. package/lib/statistic/index.js +5 -6
  1200. package/lib/statistic/index.js.map +1 -1
  1201. package/lib/statistic/style/index.d.ts +3 -0
  1202. package/lib/statistic/style/index.d.ts.map +1 -0
  1203. package/lib/statistic/style/index.js +4 -0
  1204. package/lib/statistic/style/index.js.map +1 -0
  1205. package/lib/statistic/style/index.less +40 -0
  1206. package/lib/steps/index.d.ts +2 -1
  1207. package/lib/steps/index.d.ts.map +1 -1
  1208. package/lib/steps/index.js +3 -3
  1209. package/lib/steps/index.js.map +1 -1
  1210. package/lib/steps/stepStyle/index.less +12 -0
  1211. package/lib/steps/stepStyle/nav.less +281 -0
  1212. package/lib/steps/stepStyle/small.less +5 -0
  1213. package/lib/steps/steps.d.ts +2 -2
  1214. package/lib/steps/steps.d.ts.map +1 -1
  1215. package/lib/steps/steps.js +9 -12
  1216. package/lib/steps/steps.js.map +1 -1
  1217. package/lib/steps/style/compatibility.less +50 -0
  1218. package/lib/steps/style/custom-icon.less +31 -0
  1219. package/lib/steps/style/index.d.ts +3 -0
  1220. package/lib/steps/style/index.d.ts.map +1 -0
  1221. package/lib/steps/style/index.js +4 -0
  1222. package/lib/steps/style/index.js.map +1 -0
  1223. package/lib/steps/style/index.less +241 -6
  1224. package/lib/steps/style/label-placement.less +38 -0
  1225. package/lib/steps/style/nav.less +96 -247
  1226. package/lib/steps/style/progress-dot.less +80 -0
  1227. package/lib/steps/style/small.less +43 -3
  1228. package/lib/steps/style/vertical.less +74 -0
  1229. package/lib/style/color/bezierEasing.less +110 -0
  1230. package/lib/style/color/colorPalette.less +75 -0
  1231. package/lib/style/color/colors.less +149 -0
  1232. package/lib/style/color/tinyColor.less +1184 -0
  1233. package/lib/style/core/base.less +510 -0
  1234. package/lib/style/core/iconfont.less +19 -0
  1235. package/lib/style/core/index.less +4 -0
  1236. package/lib/style/core/motion/fade.less +31 -0
  1237. package/lib/style/core/motion/move.less +120 -0
  1238. package/lib/style/core/motion/other.less +40 -0
  1239. package/lib/style/core/motion/slide.less +120 -0
  1240. package/lib/style/core/motion/swing.less +34 -0
  1241. package/lib/style/core/motion/zoom.less +162 -0
  1242. package/lib/style/core/motion.less +20 -0
  1243. package/lib/style/index.d.ts +2 -0
  1244. package/lib/style/index.d.ts.map +1 -0
  1245. package/lib/style/index.js +3 -0
  1246. package/lib/style/index.js.map +1 -0
  1247. package/lib/style/index.less +2 -0
  1248. package/lib/style/mixins/clearfix.less +13 -0
  1249. package/lib/style/mixins/compatibility.less +22 -0
  1250. package/lib/style/mixins/iconfont.less +44 -0
  1251. package/lib/style/mixins/index.less +10 -0
  1252. package/lib/style/mixins/motion.less +35 -0
  1253. package/lib/style/mixins/operation-unit.less +18 -0
  1254. package/lib/style/mixins/reset.less +13 -0
  1255. package/lib/style/mixins/size.less +10 -0
  1256. package/lib/style/mixins/typography.less +49 -0
  1257. package/lib/style/themes/default.less +700 -0
  1258. package/lib/style/themes/index.less +1 -0
  1259. package/lib/style/v2-compatible-reset.d.ts +2 -0
  1260. package/lib/style/v2-compatible-reset.d.ts.map +1 -0
  1261. package/lib/style/v2-compatible-reset.js +3 -0
  1262. package/lib/style/v2-compatible-reset.js.map +1 -0
  1263. package/lib/style/v2-compatible-reset.less +51 -0
  1264. package/lib/svg-components/illustration-403.d.ts +1 -1
  1265. package/lib/svg-components/illustration-403.js +4 -5
  1266. package/lib/svg-components/illustration-404.d.ts +1 -1
  1267. package/lib/svg-components/illustration-404.js +4 -5
  1268. package/lib/svg-components/illustration-500.d.ts +1 -1
  1269. package/lib/svg-components/illustration-500.js +4 -5
  1270. package/lib/svg-components/illustration-empty.d.ts +1 -1
  1271. package/lib/svg-components/illustration-empty.js +4 -5
  1272. package/lib/svg-components/illustration-failure.d.ts +1 -1
  1273. package/lib/svg-components/illustration-failure.js +4 -5
  1274. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  1275. package/lib/svg-components/illustration-no-access.js +4 -5
  1276. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  1277. package/lib/svg-components/illustration-no-chart.js +4 -5
  1278. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  1279. package/lib/svg-components/illustration-no-result.js +4 -5
  1280. package/lib/svg-components/illustration-offline.d.ts +1 -1
  1281. package/lib/svg-components/illustration-offline.js +4 -5
  1282. package/lib/svg-components/illustration-success.d.ts +1 -1
  1283. package/lib/svg-components/illustration-success.js +4 -5
  1284. package/lib/switch/index.js +4 -5
  1285. package/lib/switch/style/index.d.ts +3 -0
  1286. package/lib/switch/style/index.d.ts.map +1 -0
  1287. package/lib/switch/style/index.js +4 -0
  1288. package/lib/switch/style/index.js.map +1 -0
  1289. package/lib/switch/style/index.less +178 -0
  1290. package/lib/switch/switch.d.ts +1 -1
  1291. package/lib/switch/switch.d.ts.map +1 -1
  1292. package/lib/switch/switch.js +6 -8
  1293. package/lib/switch/switch.js.map +1 -1
  1294. package/lib/table/assets/image-loading-background.d.ts +1 -1
  1295. package/lib/table/assets/image-loading-background.js +4 -5
  1296. package/lib/table/assets/image-loading.d.ts +1 -1
  1297. package/lib/table/assets/image-loading.js +4 -5
  1298. package/lib/table/constants.js +1 -2
  1299. package/lib/table/context.js +1 -2
  1300. package/lib/table/hooks/use-column-setting.js +4 -5
  1301. package/lib/table/index.d.ts +1 -1
  1302. package/lib/table/index.d.ts.map +1 -1
  1303. package/lib/table/index.js +2 -3
  1304. package/lib/table/index.js.map +1 -1
  1305. package/lib/table/style/index.d.ts +9 -0
  1306. package/lib/table/style/index.d.ts.map +1 -0
  1307. package/lib/table/style/index.js +10 -0
  1308. package/lib/table/style/index.js.map +1 -0
  1309. package/lib/table/style/index.less +800 -0
  1310. package/lib/table/style/size.less +179 -0
  1311. package/lib/table/table.d.ts +2 -2
  1312. package/lib/table/table.d.ts.map +1 -1
  1313. package/lib/table/table.js +11 -17
  1314. package/lib/table/table.js.map +1 -1
  1315. package/lib/table/table.stories.js +5 -10
  1316. package/lib/table/total-shower.d.ts +2 -2
  1317. package/lib/table/total-shower.d.ts.map +1 -1
  1318. package/lib/table/total-shower.js +2 -3
  1319. package/lib/table-container/index.d.ts +3 -0
  1320. package/lib/table-container/index.d.ts.map +1 -0
  1321. package/lib/table-container/index.js +21 -0
  1322. package/lib/table-container/index.js.map +1 -0
  1323. package/lib/table-container/index.less +13 -0
  1324. package/lib/tabs/index.d.ts +1 -1
  1325. package/lib/tabs/index.d.ts.map +1 -1
  1326. package/lib/tabs/index.js +2 -3
  1327. package/lib/tabs/index.js.map +1 -1
  1328. package/lib/tabs/style/card-style.less +186 -0
  1329. package/lib/tabs/style/index.d.ts +3 -0
  1330. package/lib/tabs/style/index.d.ts.map +1 -0
  1331. package/lib/tabs/style/index.js +4 -0
  1332. package/lib/tabs/style/index.js.map +1 -0
  1333. package/lib/tabs/style/index.less +436 -0
  1334. package/lib/tabs/tabs.d.ts.map +1 -1
  1335. package/lib/tabs/tabs.js +8 -9
  1336. package/lib/tabs/tabs.js.map +1 -1
  1337. package/lib/tabs-container/index.d.ts +4 -0
  1338. package/lib/tabs-container/index.d.ts.map +1 -0
  1339. package/lib/tabs-container/index.js +22 -0
  1340. package/lib/tabs-container/index.js.map +1 -0
  1341. package/lib/tabs-container/index.less +51 -0
  1342. package/lib/tag/color.less +43 -0
  1343. package/lib/tag/index.d.ts +4 -3
  1344. package/lib/tag/index.d.ts.map +1 -1
  1345. package/lib/tag/index.js +15 -10
  1346. package/lib/tag/index.js.map +1 -1
  1347. package/lib/tag/style/index.d.ts +3 -0
  1348. package/lib/tag/style/index.d.ts.map +1 -0
  1349. package/lib/tag/style/index.js +4 -0
  1350. package/lib/tag/style/index.js.map +1 -0
  1351. package/lib/tag/style/index.less +106 -0
  1352. package/lib/tag/tag.d.ts +41 -0
  1353. package/lib/tag/tag.d.ts.map +1 -0
  1354. package/lib/tag/tag.js +183 -0
  1355. package/lib/tag/tag.js.map +1 -0
  1356. package/lib/tag/tag.less +193 -0
  1357. package/lib/time-picker/index.d.ts +1 -1
  1358. package/lib/time-picker/index.d.ts.map +1 -1
  1359. package/lib/time-picker/index.js +5 -6
  1360. package/lib/time-picker/index.js.map +1 -1
  1361. package/lib/time-picker/style/index.d.ts +3 -0
  1362. package/lib/time-picker/style/index.d.ts.map +1 -0
  1363. package/lib/time-picker/style/index.js +4 -0
  1364. package/lib/time-picker/style/index.js.map +1 -0
  1365. package/lib/time-picker/style/index.less +247 -0
  1366. package/lib/timeline/index.d.ts +1 -1
  1367. package/lib/timeline/index.d.ts.map +1 -1
  1368. package/lib/timeline/index.js +5 -6
  1369. package/lib/timeline/index.js.map +1 -1
  1370. package/lib/timeline/style/index.d.ts +3 -0
  1371. package/lib/timeline/style/index.d.ts.map +1 -0
  1372. package/lib/timeline/style/index.js +4 -0
  1373. package/lib/timeline/style/index.js.map +1 -0
  1374. package/lib/timeline/style/index.less +167 -0
  1375. package/lib/title/index.d.ts +1 -1
  1376. package/lib/title/index.js +3 -6
  1377. package/lib/tntd-action/index.d.ts +4 -0
  1378. package/lib/tntd-action/index.d.ts.map +1 -0
  1379. package/lib/tntd-action/index.js +12 -0
  1380. package/lib/tntd-action/index.js.map +1 -0
  1381. package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +5 -7
  1382. package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +4 -5
  1383. package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +4 -5
  1384. package/lib/tntd-cascader/AntdCascader/component/context.js +3 -6
  1385. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts +2 -2
  1386. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts.map +1 -1
  1387. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +4 -5
  1388. package/lib/tntd-cascader/AntdCascader/component/getIcons.d.ts +2 -2
  1389. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +4 -5
  1390. package/lib/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
  1391. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +9 -12
  1392. package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
  1393. package/lib/tntd-cascader/AntdCascader/config/utils.js +8 -12
  1394. package/lib/tntd-cascader/AntdCascader/config/warning.js +4 -5
  1395. package/lib/tntd-cascader/AntdCascader/index.d.ts.map +1 -1
  1396. package/lib/tntd-cascader/AntdCascader/index.js +14 -18
  1397. package/lib/tntd-cascader/AntdCascader/index.js.map +1 -1
  1398. package/lib/tntd-cascader/AntdCascader/interface.js +1 -2
  1399. package/lib/tntd-cascader/rc-cascader/Cascader.js +7 -10
  1400. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.d.ts +1 -1
  1401. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.d.ts.map +1 -1
  1402. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +6 -7
  1403. package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts +1 -1
  1404. package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts.map +1 -1
  1405. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +8 -10
  1406. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +14 -17
  1407. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +8 -10
  1408. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +11 -13
  1409. package/lib/tntd-cascader/rc-cascader/context.js +4 -5
  1410. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +6 -7
  1411. package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +5 -6
  1412. package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +5 -6
  1413. package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +3 -3
  1414. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
  1415. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +10 -13
  1416. package/lib/tntd-cascader/rc-cascader/index.js +1 -2
  1417. package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js +3 -6
  1418. package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js +2 -2
  1419. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +1 -2
  1420. package/lib/tntd-form/ErrorList.d.ts +1 -1
  1421. package/lib/tntd-form/ErrorList.d.ts.map +1 -1
  1422. package/lib/tntd-form/ErrorList.js +6 -6
  1423. package/lib/tntd-form/Form.d.ts +1 -1
  1424. package/lib/tntd-form/Form.d.ts.map +1 -1
  1425. package/lib/tntd-form/Form.js +15 -18
  1426. package/lib/tntd-form/Form.js.map +1 -1
  1427. package/lib/tntd-form/FormItem/ItemHolder.d.ts +1 -1
  1428. package/lib/tntd-form/FormItem/ItemHolder.d.ts.map +1 -1
  1429. package/lib/tntd-form/FormItem/ItemHolder.js +11 -14
  1430. package/lib/tntd-form/FormItem/ItemHolder.js.map +1 -1
  1431. package/lib/tntd-form/FormItem/index.js +14 -14
  1432. package/lib/tntd-form/FormItemInput.d.ts +1 -1
  1433. package/lib/tntd-form/FormItemInput.d.ts.map +1 -1
  1434. package/lib/tntd-form/FormItemInput.js +5 -6
  1435. package/lib/tntd-form/FormItemInput.js.map +1 -1
  1436. package/lib/tntd-form/FormItemLabel.d.ts +1 -1
  1437. package/lib/tntd-form/FormItemLabel.d.ts.map +1 -1
  1438. package/lib/tntd-form/FormItemLabel.js +9 -13
  1439. package/lib/tntd-form/FormItemLabel.js.map +1 -1
  1440. package/lib/tntd-form/FormList.js +5 -8
  1441. package/lib/tntd-form/context.d.ts +1 -1
  1442. package/lib/tntd-form/context.d.ts.map +1 -1
  1443. package/lib/tntd-form/context.js +14 -19
  1444. package/lib/tntd-form/context.js.map +1 -1
  1445. package/lib/tntd-form/hooks/useDebounce.js +5 -5
  1446. package/lib/tntd-form/hooks/useForm.js +5 -5
  1447. package/lib/tntd-form/hooks/useFormItemStatus.js +1 -2
  1448. package/lib/tntd-form/hooks/useFrameState.js +10 -9
  1449. package/lib/tntd-form/hooks/useItemRef.js +3 -3
  1450. package/lib/tntd-form/index.js +4 -5
  1451. package/lib/tntd-form/style/index.d.ts +1 -1
  1452. package/lib/tntd-form/style/index.d.ts.map +1 -1
  1453. package/lib/tntd-form/style/index.js +1 -1
  1454. package/lib/tntd-form/style/index.js.map +1 -1
  1455. package/lib/tntd-form/style/index.less +1 -1
  1456. package/lib/tntd-form/style/rtl.less +3 -3
  1457. package/lib/tntd-form/validateMessagesContext.js +1 -2
  1458. package/lib/tntd-icon/index.d.ts +2 -1
  1459. package/lib/tntd-icon/index.d.ts.map +1 -1
  1460. package/lib/tntd-icon/index.js +3 -6
  1461. package/lib/tntd-layout/ActionsContext.js +1 -2
  1462. package/lib/tntd-layout/AppList.js +7 -8
  1463. package/lib/tntd-layout/Application.d.ts +2 -1
  1464. package/lib/tntd-layout/Application.d.ts.map +1 -1
  1465. package/lib/tntd-layout/Application.js +7 -8
  1466. package/lib/tntd-layout/Avatar.d.ts +2 -1
  1467. package/lib/tntd-layout/Avatar.d.ts.map +1 -1
  1468. package/lib/tntd-layout/Avatar.js +5 -6
  1469. package/lib/tntd-layout/CompatibleLanguage.d.ts +2 -1
  1470. package/lib/tntd-layout/CompatibleLanguage.d.ts.map +1 -1
  1471. package/lib/tntd-layout/CompatibleLanguage.js +7 -8
  1472. package/lib/tntd-layout/EnterpriseLayout/Avatar.d.ts +2 -1
  1473. package/lib/tntd-layout/EnterpriseLayout/Avatar.d.ts.map +1 -1
  1474. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +5 -6
  1475. package/lib/tntd-layout/EnterpriseLayout/Language.js +7 -8
  1476. package/lib/tntd-layout/EnterpriseLayout/Theme.d.ts +2 -1
  1477. package/lib/tntd-layout/EnterpriseLayout/Theme.d.ts.map +1 -1
  1478. package/lib/tntd-layout/EnterpriseLayout/Theme.js +7 -8
  1479. package/lib/tntd-layout/EnterpriseLayout/index.js +2 -3
  1480. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.d.ts +2 -1
  1481. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.d.ts.map +1 -1
  1482. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +7 -8
  1483. package/lib/tntd-layout/GlobalNavigation/index.js +7 -8
  1484. package/lib/tntd-layout/Header.js +9 -6
  1485. package/lib/tntd-layout/HeaderActions.js +18 -21
  1486. package/lib/tntd-layout/HeaderNavs.js +8 -12
  1487. package/lib/tntd-layout/HeaderTabs.js +10 -14
  1488. package/lib/tntd-layout/Iconfont.d.ts +2 -1
  1489. package/lib/tntd-layout/Iconfont.d.ts.map +1 -1
  1490. package/lib/tntd-layout/Iconfont.js +2 -3
  1491. package/lib/tntd-layout/Language.js +7 -8
  1492. package/lib/tntd-layout/Layout.js +7 -8
  1493. package/lib/tntd-layout/Logo.js +9 -6
  1494. package/lib/tntd-layout/OrgAppList.js +7 -8
  1495. package/lib/tntd-layout/SideMenu.js +8 -11
  1496. package/lib/tntd-layout/Theme.d.ts +2 -1
  1497. package/lib/tntd-layout/Theme.d.ts.map +1 -1
  1498. package/lib/tntd-layout/Theme.js +7 -8
  1499. package/lib/tntd-layout/createActions.js +2 -3
  1500. package/lib/tntd-layout/images/index.js +4 -7
  1501. package/lib/tntd-layout/index.d.ts +3 -2
  1502. package/lib/tntd-layout/index.d.ts.map +1 -1
  1503. package/lib/tntd-layout/index.js +6 -11
  1504. package/lib/tntd-layout/paaslayout/CompactSideMenu.d.ts +2 -1
  1505. package/lib/tntd-layout/paaslayout/CompactSideMenu.d.ts.map +1 -1
  1506. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +7 -8
  1507. package/lib/tntd-layout/paaslayout/Header.d.ts +2 -1
  1508. package/lib/tntd-layout/paaslayout/Header.d.ts.map +1 -1
  1509. package/lib/tntd-layout/paaslayout/Header.js +9 -6
  1510. package/lib/tntd-layout/paaslayout/Logo.d.ts +2 -1
  1511. package/lib/tntd-layout/paaslayout/Logo.d.ts.map +1 -1
  1512. package/lib/tntd-layout/paaslayout/Logo.js +6 -3
  1513. package/lib/tntd-layout/paaslayout/SideMenu.d.ts +2 -1
  1514. package/lib/tntd-layout/paaslayout/SideMenu.d.ts.map +1 -1
  1515. package/lib/tntd-layout/paaslayout/SideMenu.js +7 -8
  1516. package/lib/tntd-layout/paaslayout/index.js +7 -8
  1517. package/lib/tntd-layout/storage.js +14 -27
  1518. package/lib/tntd-modal/index.d.ts +2 -1
  1519. package/lib/tntd-modal/index.d.ts.map +1 -1
  1520. package/lib/tntd-modal/index.js +11 -15
  1521. package/lib/tntd-rc-select/_util/DisabledContext.js +5 -7
  1522. package/lib/tntd-rc-select/_util/FormItemInputContext.js +4 -5
  1523. package/lib/tntd-rc-select/_util/PurePanel.d.ts +2 -2
  1524. package/lib/tntd-rc-select/_util/PurePanel.d.ts.map +1 -1
  1525. package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
  1526. package/lib/tntd-rc-select/_util/SizeContext.js +4 -5
  1527. package/lib/tntd-rc-select/_util/context.js +3 -6
  1528. package/lib/tntd-rc-select/_util/defaultRenderEmpty.d.ts +2 -2
  1529. package/lib/tntd-rc-select/_util/defaultRenderEmpty.d.ts.map +1 -1
  1530. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +4 -5
  1531. package/lib/tntd-rc-select/_util/getIcons.d.ts +2 -2
  1532. package/lib/tntd-rc-select/_util/getIcons.js +4 -5
  1533. package/lib/tntd-rc-select/_util/getIcons.js.map +1 -1
  1534. package/lib/tntd-rc-select/_util/interface.js +1 -2
  1535. package/lib/tntd-rc-select/_util/motion.js +3 -6
  1536. package/lib/tntd-rc-select/_util/type.js +3 -5
  1537. package/lib/tntd-rc-select/_util/useCompactItemContext.js +9 -12
  1538. package/lib/tntd-rc-select/_util/warning.js +4 -5
  1539. package/lib/tntd-rc-select/index.js +11 -14
  1540. package/lib/tntd-rc-select/style/index.less +844 -740
  1541. package/lib/tntd-select/DropDownWrap.js +16 -19
  1542. package/lib/tntd-select/index.d.ts +1 -1
  1543. package/lib/tntd-select/index.d.ts.map +1 -1
  1544. package/lib/tntd-select/index.js +44 -47
  1545. package/lib/tooltip/index.d.ts +1 -1
  1546. package/lib/tooltip/index.d.ts.map +1 -1
  1547. package/lib/tooltip/index.js +5 -6
  1548. package/lib/tooltip/index.js.map +1 -1
  1549. package/lib/tooltip/style/index.d.ts +3 -0
  1550. package/lib/tooltip/style/index.d.ts.map +1 -0
  1551. package/lib/tooltip/style/index.js +4 -0
  1552. package/lib/tooltip/style/index.js.map +1 -0
  1553. package/lib/tooltip/style/index.less +187 -0
  1554. package/lib/transfer/index.d.ts +1 -1
  1555. package/lib/transfer/index.d.ts.map +1 -1
  1556. package/lib/transfer/index.js +5 -6
  1557. package/lib/transfer/index.js.map +1 -1
  1558. package/lib/transfer/style/customize.less +62 -0
  1559. package/lib/transfer/style/index.d.ts +7 -0
  1560. package/lib/transfer/style/index.d.ts.map +1 -0
  1561. package/lib/transfer/style/index.js +8 -0
  1562. package/lib/transfer/style/index.js.map +1 -0
  1563. package/lib/transfer/style/index.less +191 -0
  1564. package/lib/tree/index.d.ts +1 -1
  1565. package/lib/tree/index.d.ts.map +1 -1
  1566. package/lib/tree/index.js +5 -6
  1567. package/lib/tree/index.js.map +1 -1
  1568. package/lib/tree/style/directory.less +95 -0
  1569. package/lib/tree/style/index.d.ts +3 -0
  1570. package/lib/tree/style/index.d.ts.map +1 -0
  1571. package/lib/tree/style/index.js +4 -0
  1572. package/lib/tree/style/index.js.map +1 -0
  1573. package/lib/tree/style/index.less +280 -0
  1574. package/lib/tree/style/mixin.less +29 -0
  1575. package/lib/tree-select/index.d.ts +1 -1
  1576. package/lib/tree-select/index.d.ts.map +1 -1
  1577. package/lib/tree-select/index.js +6 -8
  1578. package/lib/tree-select/index.js.map +1 -1
  1579. package/lib/tree-select/style/index.d.ts +5 -0
  1580. package/lib/tree-select/style/index.d.ts.map +1 -0
  1581. package/lib/tree-select/style/index.js +6 -0
  1582. package/lib/tree-select/style/index.js.map +1 -0
  1583. package/lib/tree-select/style/index.less +191 -0
  1584. package/lib/typography/index.d.ts +1 -1
  1585. package/lib/typography/index.d.ts.map +1 -1
  1586. package/lib/typography/index.js +5 -6
  1587. package/lib/typography/index.js.map +1 -1
  1588. package/lib/typography/style/index.d.ts +5 -0
  1589. package/lib/typography/style/index.d.ts.map +1 -0
  1590. package/lib/typography/style/index.js +6 -0
  1591. package/lib/typography/style/index.js.map +1 -0
  1592. package/lib/typography/style/index.less +204 -0
  1593. package/lib/upload/index.d.ts +1 -1
  1594. package/lib/upload/index.d.ts.map +1 -1
  1595. package/lib/upload/index.js +5 -6
  1596. package/lib/upload/index.js.map +1 -1
  1597. package/lib/upload/style/index.d.ts +5 -0
  1598. package/lib/upload/style/index.d.ts.map +1 -0
  1599. package/lib/upload/style/index.js +6 -0
  1600. package/lib/upload/style/index.js.map +1 -0
  1601. package/lib/upload/style/index.less +542 -0
  1602. package/lib/utils/checkAuth.js +2 -4
  1603. package/lib/utils/findMenuInfoByPath.js +2 -4
  1604. package/lib/utils/index.js +10 -18
  1605. package/lib/utils/lang.js +6 -11
  1606. package/lib/version/index.d.ts +1 -1
  1607. package/lib/version/index.d.ts.map +1 -1
  1608. package/lib/version/index.js +5 -6
  1609. package/lib/version/index.js.map +1 -1
  1610. package/lib/version/style/index.d.ts +2 -0
  1611. package/lib/version/style/index.d.ts.map +1 -0
  1612. package/lib/version/style/index.js +3 -0
  1613. package/lib/version/style/index.js.map +1 -0
  1614. package/lib/water-mark/index.js +7 -9
  1615. package/package.json +5 -3
  1616. package/themes/common/css2.x.css +154 -0
  1617. package/themes/common/css3.x.css +154 -0
  1618. package/themes/common/index.less +2 -0
  1619. package/themes/default/colors.less +12 -4
  1620. package/themes/default/colorsVar.less +160 -0
  1621. package/themes/default/lessToCssVar.less +127 -0
  1622. package/themes/default/lessVars2.x.less +33 -0
  1623. package/themes/default/lessVars3.x.less +35 -0
  1624. package/themes/default/variables.less +34 -24
  1625. package/themes/default/variablesVar.less +675 -0
  1626. package/themes/utils/colorPalette.less +11 -0
  1627. package/es/grid/RowContext.js.map +0 -1
  1628. package/es/grid/col.js.map +0 -1
  1629. package/es/grid/hooks/useBreakpoint.js.map +0 -1
  1630. package/es/grid/row.js.map +0 -1
  1631. package/lib/grid/RowContext.d.ts.map +0 -1
  1632. package/lib/grid/RowContext.js.map +0 -1
  1633. package/lib/grid/col.d.ts.map +0 -1
  1634. package/lib/grid/col.js.map +0 -1
  1635. package/lib/grid/hooks/useBreakpoint.d.ts.map +0 -1
  1636. package/lib/grid/hooks/useBreakpoint.js.map +0 -1
  1637. package/lib/grid/row.d.ts.map +0 -1
  1638. /package/es/{grid → grid-v4}/RowContext.js +0 -0
  1639. /package/es/{grid → grid-v4}/col.js +0 -0
  1640. /package/es/{grid → grid-v4}/hooks/useBreakpoint.js +0 -0
  1641. /package/es/{grid → grid-v4}/row.js +0 -0
  1642. /package/es/{grid → grid-v4}/style/rtl.less +0 -0
  1643. /package/lib/{grid → grid-v4}/RowContext.d.ts +0 -0
  1644. /package/lib/{grid → grid-v4}/col.d.ts +0 -0
  1645. /package/lib/{grid → grid-v4}/hooks/useBreakpoint.d.ts +0 -0
  1646. /package/lib/{grid → grid-v4}/row.d.ts +0 -0
  1647. /package/lib/{grid → grid-v4}/style/rtl.less +0 -0
@@ -0,0 +1,2 @@
1
+ export { default, IconProps, TwoToneColorPaletteSetter, TwoToneColorPalette } from './Icon';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icon/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _Icon["default"];
10
+ }
11
+ });
12
+ var _Icon = _interopRequireDefault(require("./Icon"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/icon/components/index.ts"],"names":[],"mappings":";;;;;;AAAA,+BAA2F;AAAlF,gHAAA,OAAO,OAAA","sourcesContent":["export { default, IconProps, TwoToneColorPaletteSetter, TwoToneColorPalette } from './Icon'\n"]}
@@ -0,0 +1,22 @@
1
+ import type { AbstractNode, IconDefinition } from '@tntd/icons/lib/types';
2
+ export declare function log(message: string): void;
3
+ export declare function isIconDefinition(target: any): target is IconDefinition;
4
+ export declare function normalizeAttrs(attrs?: Attrs): Attrs;
5
+ export interface Attrs {
6
+ [key: string]: string;
7
+ }
8
+ export declare class MiniMap<V> {
9
+ get size(): number;
10
+ private collection;
11
+ clear(): void;
12
+ delete(key: string): boolean;
13
+ get(key: string): V | undefined;
14
+ has(key: string): boolean;
15
+ set(key: string, value: V): this;
16
+ }
17
+ export declare function generate(node: AbstractNode, key: string, rootProps?: {
18
+ [key: string]: any;
19
+ } | false): any;
20
+ export declare function getSecondaryColor(primaryColor: string): string;
21
+ export declare function withSuffix(name: string, theme: 'fill' | 'outline' | 'twotone'): string;
22
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/icon/components/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAIzE,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,QAIlC;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,cAAc,CAOtE;AAED,wBAAgB,cAAc,CAAC,KAAK,GAAE,KAAU,GAAG,KAAK,CAavD;AAED,MAAM,WAAW,KAAK;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB;AAED,qBAAa,OAAO,CAAC,CAAC;IACpB,IAAI,IAAI,WAEP;IACD,OAAO,CAAC,UAAU,CAA2B;IAC7C,KAAK,IAAI,IAAI;IAGb,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAG5B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAG/B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAGzB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;CAIjC;AAED,wBAAgB,QAAQ,CACtB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,MAAM,EACX,SAAS,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,KAAK,GACzC,GAAG,CAqBL;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAG9D;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,UAW7E"}
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.MiniMap = void 0;
7
+ exports.generate = generate;
8
+ exports.getSecondaryColor = getSecondaryColor;
9
+ exports.isIconDefinition = isIconDefinition;
10
+ exports.log = log;
11
+ exports.normalizeAttrs = normalizeAttrs;
12
+ exports.withSuffix = withSuffix;
13
+ var _colors = require("@ant-design/colors");
14
+ var React = _interopRequireWildcard(require("react"));
15
+ 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); }
16
+ 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; }
17
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
19
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
21
+ 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); }
22
+ 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); }
23
+ function log(message) {
24
+ if (!(process && process.env && process.env.NODE_ENV === 'production')) {
25
+ console.error("[@ant-design/icons-react]: ".concat(message, "."));
26
+ }
27
+ }
28
+ function isIconDefinition(target) {
29
+ return _typeof(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (_typeof(target.icon) === 'object' || typeof target.icon === 'function');
30
+ }
31
+ function normalizeAttrs() {
32
+ var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
33
+ return Object.keys(attrs).reduce(function (acc, key) {
34
+ var val = attrs[key];
35
+ switch (key) {
36
+ case 'class':
37
+ acc.className = val;
38
+ delete acc["class"];
39
+ break;
40
+ default:
41
+ acc[key] = val;
42
+ }
43
+ return acc;
44
+ }, {});
45
+ }
46
+ var MiniMap = exports.MiniMap = /*#__PURE__*/function () {
47
+ function MiniMap() {
48
+ _classCallCheck(this, MiniMap);
49
+ Object.defineProperty(this, "collection", {
50
+ enumerable: true,
51
+ configurable: true,
52
+ writable: true,
53
+ value: {}
54
+ });
55
+ }
56
+ return _createClass(MiniMap, [{
57
+ key: "size",
58
+ get: function get() {
59
+ return Object.keys(this.collection).length;
60
+ }
61
+ }, {
62
+ key: "clear",
63
+ value: function clear() {
64
+ this.collection = {};
65
+ }
66
+ }, {
67
+ key: "delete",
68
+ value: function _delete(key) {
69
+ return delete this.collection[key];
70
+ }
71
+ }, {
72
+ key: "get",
73
+ value: function get(key) {
74
+ return this.collection[key];
75
+ }
76
+ }, {
77
+ key: "has",
78
+ value: function has(key) {
79
+ return Boolean(this.collection[key]);
80
+ }
81
+ }, {
82
+ key: "set",
83
+ value: function set(key, value) {
84
+ this.collection[key] = value;
85
+ return this;
86
+ }
87
+ }]);
88
+ }();
89
+ function generate(node, key, rootProps) {
90
+ if (!rootProps) {
91
+ return React.createElement(node.tag, Object.assign({
92
+ key: key
93
+ }, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {
94
+ return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
95
+ }));
96
+ }
97
+ return React.createElement(node.tag, Object.assign(Object.assign({
98
+ key: key
99
+ }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {
100
+ return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
101
+ }));
102
+ }
103
+ function getSecondaryColor(primaryColor) {
104
+ // choose the second color
105
+ return (0, _colors.generate)(primaryColor)[0];
106
+ }
107
+ function withSuffix(name, theme) {
108
+ switch (theme) {
109
+ case 'fill':
110
+ return "".concat(name, "-fill");
111
+ case 'outline':
112
+ return "".concat(name, "-o");
113
+ case 'twotone':
114
+ return "".concat(name, "-twotone");
115
+ default:
116
+ throw new TypeError("Unknown theme type: ".concat(theme, ", name: ").concat(name));
117
+ }
118
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/icon/components/utils.ts"],"names":[],"mappings":"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","sourcesContent":["// @ts-nocheck\nimport type { AbstractNode, IconDefinition } from '@tntd/icons/lib/types'\nimport { generate as generateColor } from '@ant-design/colors'\nimport * as React from 'react'\n\nexport function log(message: string) {\n if (!(process && process.env && process.env.NODE_ENV === 'production')) {\n console.error(`[@ant-design/icons-react]: ${message}.`)\n }\n}\n\nexport function isIconDefinition(target: any): target is IconDefinition {\n return (\n typeof target === 'object' &&\n typeof target.name === 'string' &&\n typeof target.theme === 'string' &&\n (typeof target.icon === 'object' || typeof target.icon === 'function')\n )\n}\n\nexport function normalizeAttrs(attrs: Attrs = {}): Attrs {\n return Object.keys(attrs).reduce((acc: Attrs, key) => {\n const val = attrs[key]\n switch (key) {\n case 'class':\n acc.className = val\n delete acc.class\n break\n default:\n acc[key] = val\n }\n return acc\n }, {})\n}\n\nexport interface Attrs {\n [key: string]: string\n}\n\nexport class MiniMap<V> {\n get size() {\n return Object.keys(this.collection).length\n }\n private collection: { [key: string]: V } = {}\n clear(): void {\n this.collection = {}\n }\n delete(key: string): boolean {\n return delete this.collection[key]\n }\n get(key: string): V | undefined {\n return this.collection[key]\n }\n has(key: string): boolean {\n return Boolean(this.collection[key])\n }\n set(key: string, value: V): this {\n this.collection[key] = value\n return this\n }\n}\n\nexport function generate(\n node: AbstractNode,\n key: string,\n rootProps?: { [key: string]: any } | false\n): any {\n if (!rootProps) {\n return React.createElement(\n node.tag,\n { key, ...normalizeAttrs(node.attrs) },\n (node.children || []).map((child: any, index: any) =>\n generate(child, `${key}-${node.tag}-${index}`)\n )\n )\n }\n return React.createElement(\n node.tag,\n {\n key,\n ...normalizeAttrs(node.attrs),\n ...rootProps,\n },\n (node.children || []).map((child: any, index: number) =>\n generate(child, `${key}-${node.tag}-${index}`)\n )\n )\n}\n\nexport function getSecondaryColor(primaryColor: string): string {\n // choose the second color\n return generateColor(primaryColor)[0]\n}\n\nexport function withSuffix(name: string, theme: 'fill' | 'outline' | 'twotone') {\n switch (theme) {\n case 'fill':\n return `${name}-fill`\n case 'outline':\n return `${name}-o`\n case 'twotone':\n return `${name}-twotone`\n default:\n throw new TypeError(`Unknown theme type: ${theme}, name: ${name}`)\n }\n}\n"]}
@@ -1,5 +1,48 @@
1
- import Icon from 'antd/lib/icon';
2
- import 'antd/lib/icon/style';
3
- export * from 'antd/lib/icon';
1
+ import * as React from 'react';
2
+ import createFromIconfontCN from './IconFont';
3
+ import { getTwoToneColor, setTwoToneColor } from './twoTonePrimaryColor';
4
+ import './style';
5
+ declare function unstable_ChangeThemeOfIconsDangerously(theme?: ThemeType): void;
6
+ declare function unstable_ChangeDefaultThemeOfIcons(theme: ThemeType): void;
7
+ export interface TransferLocale {
8
+ icon: string;
9
+ }
10
+ export interface CustomIconComponentProps {
11
+ width: string | number;
12
+ height: string | number;
13
+ fill: string;
14
+ viewBox?: string;
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ spin?: boolean;
18
+ rotate?: number;
19
+ ['aria-hidden']?: React.AriaAttributes['aria-hidden'];
20
+ }
21
+ export declare type ThemeType = 'filled' | 'outlined' | 'twoTone';
22
+ export interface IconProps {
23
+ tabIndex?: number;
24
+ type?: string;
25
+ className?: string;
26
+ theme?: ThemeType;
27
+ title?: string;
28
+ onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
29
+ onClick?: React.MouseEventHandler<HTMLElement>;
30
+ component?: React.ComponentType<CustomIconComponentProps | React.SVGProps<SVGSVGElement>>;
31
+ twoToneColor?: string;
32
+ viewBox?: string;
33
+ spin?: boolean;
34
+ rotate?: number;
35
+ style?: React.CSSProperties;
36
+ prefixCls?: string;
37
+ role?: string;
38
+ }
39
+ export interface IconComponent<P> extends React.SFC<P> {
40
+ createFromIconfontCN: typeof createFromIconfontCN;
41
+ getTwoToneColor: typeof getTwoToneColor;
42
+ setTwoToneColor: typeof setTwoToneColor;
43
+ unstable_ChangeThemeOfIconsDangerously?: typeof unstable_ChangeThemeOfIconsDangerously;
44
+ unstable_ChangeDefaultThemeOfIcons?: typeof unstable_ChangeDefaultThemeOfIcons;
45
+ }
46
+ declare const Icon: IconComponent<IconProps>;
4
47
  export default Icon;
5
48
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,cAAc,CAAA;AAE/B,OAAO,oBAAoB,CAAA;AAE3B,cAAc,cAAc,CAAA;AAE5B,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icon/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,oBAAoB,MAAM,YAAY,CAAA;AAU7C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACxE,OAAO,SAAS,CAAA;AAQhB,iBAAS,sCAAsC,CAAC,KAAK,CAAC,EAAE,SAAS,QAQhE;AAED,iBAAS,kCAAkC,CAAC,KAAK,EAAE,SAAS,QAQ3D;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,CAAC,aAAa,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAA;CACtD;AAED,oBAAY,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;AAEzD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAA;IACjD,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,wBAAwB,GAAG,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAA;IACzF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,aAAa,CAAC,CAAC,CAAE,SAAQ,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IACpD,oBAAoB,EAAE,OAAO,oBAAoB,CAAA;IACjD,eAAe,EAAE,OAAO,eAAe,CAAA;IACvC,eAAe,EAAE,OAAO,eAAe,CAAA;IACvC,sCAAsC,CAAC,EAAE,OAAO,sCAAsC,CAAA;IACtF,kCAAkC,CAAC,EAAE,OAAO,kCAAkC,CAAA;CAC/E;AAED,QAAA,MAAM,IAAI,EAAE,aAAa,CAAC,SAAS,CAoIlC,CAAA;AAMD,eAAe,IAAI,CAAA"}
package/lib/icon/index.js CHANGED
@@ -1,25 +1,128 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- var _exportNames = {};
8
7
  exports["default"] = void 0;
9
- var _icon = _interopRequireWildcard(require("antd/lib/icon"));
10
- Object.keys(_icon).forEach(function (key) {
11
- if (key === "default" || key === "__esModule") return;
12
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
13
- if (key in exports && exports[key] === _icon[key]) return;
14
- Object.defineProperty(exports, key, {
15
- enumerable: true,
16
- get: function get() {
17
- return _icon[key];
8
+ var React = _interopRequireWildcard(require("react"));
9
+ var _classnames = _interopRequireDefault(require("classnames"));
10
+ var allIcons = _interopRequireWildcard(require("@tntd/icons/lib/dist"));
11
+ var _components = _interopRequireDefault(require("./components"));
12
+ var _IconFont = _interopRequireDefault(require("./IconFont"));
13
+ var _utils = require("./utils");
14
+ var _warning = _interopRequireDefault(require("../_util/warning"));
15
+ var _LocaleReceiver = _interopRequireDefault(require("antd/lib/locale-provider/LocaleReceiver"));
16
+ var _twoTonePrimaryColor = require("./twoTonePrimaryColor");
17
+ require("./style");
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+ 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); }
20
+ 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; }
21
+ 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; }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
+ 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); }
24
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
25
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
26
+ 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); }
27
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
28
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
29
+ 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; }
30
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
31
+ var t = {};
32
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
33
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
35
+ }
36
+ return t;
37
+ };
38
+ /* eslint-disable camelcase */
39
+
40
+ // Initial setting
41
+ _components["default"].add.apply(_components["default"], _toConsumableArray(Object.keys(allIcons).map(function (key) {
42
+ return allIcons[key];
43
+ })));
44
+ (0, _twoTonePrimaryColor.setTwoToneColor)('#1890ff');
45
+ var defaultTheme = 'outlined';
46
+ var dangerousTheme;
47
+ function unstable_ChangeThemeOfIconsDangerously(theme) {
48
+ (0, _warning["default"])(false, 'Icon', "You are using the unstable method 'Icon.unstable_ChangeThemeOfAllIconsDangerously', " + "make sure that all the icons with theme '".concat(theme, "' display correctly."));
49
+ dangerousTheme = theme;
50
+ }
51
+ function unstable_ChangeDefaultThemeOfIcons(theme) {
52
+ (0, _warning["default"])(false, 'Icon', "You are using the unstable method 'Icon.unstable_ChangeDefaultThemeOfIcons', " + "make sure that all the icons with theme '".concat(theme, "' display correctly."));
53
+ defaultTheme = theme;
54
+ }
55
+ var Icon = function Icon(props) {
56
+ var className = props.className,
57
+ type = props.type,
58
+ Component = props.component,
59
+ viewBox = props.viewBox,
60
+ spin = props.spin,
61
+ rotate = props.rotate,
62
+ tabIndex = props.tabIndex,
63
+ onClick = props.onClick,
64
+ children = props.children,
65
+ theme = props.theme,
66
+ twoToneColor = props.twoToneColor,
67
+ restProps = __rest(props, ["className", "type", "component", "viewBox", "spin", "rotate", "tabIndex", "onClick", "children", "theme", "twoToneColor"]);
68
+ (0, _warning["default"])(Boolean(type || Component || children), 'Icon', 'Should have `type` prop or `component` prop or `children`.');
69
+ var classString = (0, _classnames["default"])('tntd-anticon', _defineProperty(_defineProperty({}, "anticon", true), "anticon-".concat(type), Boolean(type)), className);
70
+ var svgClassString = (0, _classnames["default"])(_defineProperty({}, "anticon-spin", !!spin || type === 'loading'));
71
+ var svgStyle = rotate ? {
72
+ msTransform: "rotate(".concat(rotate, "deg)"),
73
+ transform: "rotate(".concat(rotate, "deg)")
74
+ } : undefined;
75
+ var innerSvgProps = Object.assign(Object.assign({}, _utils.svgBaseProps), {
76
+ className: svgClassString,
77
+ style: svgStyle,
78
+ viewBox: viewBox
79
+ });
80
+ if (!viewBox) {
81
+ delete innerSvgProps.viewBox;
82
+ }
83
+ var renderInnerNode = function renderInnerNode() {
84
+ // component > children > type
85
+ if (Component) {
86
+ return React.createElement(Component, Object.assign({}, innerSvgProps), children);
87
+ }
88
+ if (children) {
89
+ (0, _warning["default"])(Boolean(viewBox) || React.Children.count(children) === 1 && React.isValidElement(children) && React.Children.only(children).type === 'use', 'Icon', 'Make sure that you provide correct `viewBox`' + ' prop (default `0 0 1024 1024`) to the icon.');
90
+ return React.createElement("svg", Object.assign({}, innerSvgProps, {
91
+ viewBox: viewBox
92
+ }), children);
18
93
  }
94
+ if (typeof type === 'string') {
95
+ var computedType = type;
96
+ if (theme) {
97
+ var themeInName = (0, _utils.getThemeFromTypeName)(type);
98
+ (0, _warning["default"])(!themeInName || theme === themeInName, 'Icon', "The icon name '".concat(type, "' already specify a theme '").concat(themeInName, "',") + " the 'theme' prop '".concat(theme, "' will be ignored."));
99
+ }
100
+ computedType = (0, _utils.withThemeSuffix)((0, _utils.removeTypeTheme)((0, _utils.alias)(computedType)), dangerousTheme || theme || defaultTheme);
101
+ return React.createElement(_components["default"], {
102
+ className: svgClassString,
103
+ type: computedType,
104
+ primaryColor: twoToneColor,
105
+ style: svgStyle
106
+ });
107
+ }
108
+ };
109
+ var iconTabIndex = tabIndex;
110
+ if (iconTabIndex === undefined && onClick) {
111
+ iconTabIndex = -1;
112
+ }
113
+ return React.createElement(_LocaleReceiver["default"], {
114
+ componentName: "Icon"
115
+ }, function (locale) {
116
+ return React.createElement("i", Object.assign({
117
+ "aria-label": type && "".concat(locale.icon, ": ").concat(type)
118
+ }, restProps, {
119
+ tabIndex: iconTabIndex,
120
+ onClick: onClick,
121
+ className: classString
122
+ }), renderInnerNode());
19
123
  });
20
- });
21
- require("antd/lib/icon/style");
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
- var _default = _icon["default"];
25
- exports["default"] = _default;
124
+ };
125
+ Icon.createFromIconfontCN = _IconFont["default"];
126
+ Icon.getTwoToneColor = _twoTonePrimaryColor.getTwoToneColor;
127
+ Icon.setTwoToneColor = _twoTonePrimaryColor.setTwoToneColor;
128
+ var _default = exports["default"] = Icon;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/icon/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,wDAA+B;AAE/B,8BAA2B;AAE3B,+CAA4B;AAE5B,kBAAe,cAAI,CAAA","sourcesContent":["import Icon from 'antd/lib/icon'\n\nimport 'antd/lib/icon/style'\n\nexport * from 'antd/lib/icon'\n\nexport default Icon\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/icon/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,6CAA8B;AAC9B,4DAAmC;AACnC,+DAAgD;AAChD,8DAAoC;AACpC,0DAA6C;AAC7C,mCAMgB;AAChB,+DAAsC;AACtC,4FAAmE;AACnE,+DAAwE;AACxE,mBAAgB;AAEhB,kBAAkB;AAClB,oBAAS,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAE,QAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AAC5E,IAAA,qCAAe,EAAC,SAAS,CAAC,CAAA;AAC1B,IAAI,YAAY,GAAc,UAAU,CAAA;AACxC,IAAI,cAAqC,CAAA;AAEzC,SAAS,sCAAsC,CAAC,KAAiB;IAC/D,IAAA,iBAAO,EACL,KAAK,EACL,MAAM,EACN,sFAAsF;QACpF,4CAA4C,KAAK,sBAAsB,CAC1E,CAAA;IACD,cAAc,GAAG,KAAK,CAAA;AACxB,CAAC;AAED,SAAS,kCAAkC,CAAC,KAAgB;IAC1D,IAAA,iBAAO,EACL,KAAK,EACL,MAAM,EACN,+EAA+E;QAC7E,4CAA4C,KAAK,sBAAsB,CAC1E,CAAA;IACD,YAAY,GAAG,KAAK,CAAA;AACtB,CAAC;AA8CD,MAAM,IAAI,GAA6B,CAAC,KAAK,EAAE,EAAE;IAC/C,MAAM;IACJ,2BAA2B;IAC3B,SAAS;IAET,8BAA8B;IAC9B,IAAI,EACJ,SAAS,EAAE,SAAS,EACpB,OAAO,EACP,IAAI,EACJ,MAAM,EAEN,QAAQ,EACR,OAAO;IAEP,WAAW;IACX,QAAQ;IAER,QAAQ;IACR,KAAK,EAAE,sBAAsB;IAC7B,YAAY,KAGV,KAAK,EADJ,SAAS,UACV,KAAK,EAtBH,2HAsBL,CAAQ,CAAA;IAET,IAAA,iBAAO,EACL,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,QAAQ,CAAC,EACtC,MAAM,EACN,4DAA4D,CAC7D,CAAA;IAED,MAAM,WAAW,GAAG,IAAA,oBAAU,EAC5B,cAAc,EACd;QACE,CAAC,SAAS,CAAC,EAAE,IAAI;QACjB,CAAC,WAAW,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC;KACnC,EACD,SAAS,CACV,CAAA;IAED,MAAM,cAAc,GAAG,IAAA,oBAAU,EAAC;QAChC,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,IAAI,IAAI,IAAI,KAAK,SAAS;KAC/C,CAAC,CAAA;IAEF,MAAM,QAAQ,GAAG,MAAM;QACrB,CAAC,CAAC;YACE,WAAW,EAAE,UAAU,MAAM,MAAM;YACnC,SAAS,EAAE,UAAU,MAAM,MAAM;SAClC;QACH,CAAC,CAAC,SAAS,CAAA;IAEb,MAAM,aAAa,mCACd,oBAAY,KACf,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,QAAQ,EACf,OAAO,GACR,CAAA;IAED,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,aAAa,CAAC,OAAO,CAAA;KAC7B;IAED,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,8BAA8B;QAC9B,IAAI,SAAS,EAAE;YACb,OAAO,oBAAC,SAAS,oBAAK,aAAa,GAAG,QAAQ,CAAa,CAAA;SAC5D;QAED,IAAI,QAAQ,EAAE;YACZ,IAAA,iBAAO,EACL,OAAO,CAAC,OAAO,CAAC;gBACd,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;oBACnC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;oBAC9B,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,EACjD,MAAM,EACN,8CAA8C;gBAC5C,8CAA8C,CACjD,CAAA;YACD,OAAO,CACL,6CAAS,aAAa,IAAE,OAAO,EAAE,OAAO,KACrC,QAAQ,CACL,CACP,CAAA;SACF;QAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,YAAY,GAAG,IAAI,CAAA;YACvB,IAAI,KAAK,EAAE;gBACT,MAAM,WAAW,GAAG,IAAA,4BAAoB,EAAC,IAAI,CAAC,CAAA;gBAC9C,IAAA,iBAAO,EACL,CAAC,WAAW,IAAI,KAAK,KAAK,WAAW,EACrC,MAAM,EACN,kBAAkB,IAAI,8BAA8B,WAAW,IAAI;oBACjE,sBAAsB,KAAK,oBAAoB,CAClD,CAAA;aACF;YACD,YAAY,GAAG,IAAA,uBAAe,EAC5B,IAAA,uBAAe,EAAC,IAAA,aAAK,EAAC,YAAY,CAAC,CAAC,EACpC,cAAc,IAAI,KAAK,IAAI,YAAY,CACxC,CAAA;YAED,OAAO,CACL,oBAAC,oBAAS,IACR,SAAS,EAAE,cAAc,EACzB,IAAI,EAAE,YAAY,EAClB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,QAAQ,GACf,CACH,CAAA;SACF;IACH,CAAC,CAAA;IAED,IAAI,YAAY,GAAG,QAAQ,CAAA;IAC3B,IAAI,YAAY,KAAK,SAAS,IAAI,OAAO,EAAE;QACzC,YAAY,GAAG,CAAC,CAAC,CAAA;KAClB;IAED,OAAO,CACL,oBAAC,wBAAc,IAAC,aAAa,EAAC,MAAM,IACjC,CAAC,MAAM,EAAE,EAAE,CAAC,CACX,uDACc,IAAI,IAAI,GAAI,MAAiC,CAAC,IAAI,KAAK,IAAI,EAAE,IACrE,SAAS,IACb,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,WAAW,KAErB,eAAe,EAAE,CAChB,CACL,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,IAAI,CAAC,oBAAoB,GAAG,kBAAoB,CAAA;AAChD,IAAI,CAAC,eAAe,GAAG,qCAAe,CAAA;AACtC,IAAI,CAAC,eAAe,GAAG,qCAAe,CAAA;AAEtC,kBAAe,IAAI,CAAA","sourcesContent":["/* eslint-disable camelcase */\nimport * as React from 'react'\nimport classNames from 'classnames'\nimport * as allIcons from '@tntd/icons/lib/dist'\nimport ReactIcon from './components'\nimport createFromIconfontCN from './IconFont'\nimport {\n svgBaseProps,\n withThemeSuffix,\n removeTypeTheme,\n getThemeFromTypeName,\n alias,\n} from './utils'\nimport warning from '../_util/warning'\nimport LocaleReceiver from 'antd/lib/locale-provider/LocaleReceiver'\nimport { getTwoToneColor, setTwoToneColor } from './twoTonePrimaryColor'\nimport './style'\n\n// Initial setting\nReactIcon.add(...Object.keys(allIcons).map((key) => (allIcons as any)[key]))\nsetTwoToneColor('#1890ff')\nlet defaultTheme: ThemeType = 'outlined'\nlet dangerousTheme: ThemeType | undefined\n\nfunction unstable_ChangeThemeOfIconsDangerously(theme?: ThemeType) {\n warning(\n false,\n 'Icon',\n `You are using the unstable method 'Icon.unstable_ChangeThemeOfAllIconsDangerously', ` +\n `make sure that all the icons with theme '${theme}' display correctly.`\n )\n dangerousTheme = theme\n}\n\nfunction unstable_ChangeDefaultThemeOfIcons(theme: ThemeType) {\n warning(\n false,\n 'Icon',\n `You are using the unstable method 'Icon.unstable_ChangeDefaultThemeOfIcons', ` +\n `make sure that all the icons with theme '${theme}' display correctly.`\n )\n defaultTheme = theme\n}\n\nexport interface TransferLocale {\n icon: string\n}\n\nexport interface CustomIconComponentProps {\n width: string | number\n height: string | number\n fill: string\n viewBox?: string\n className?: string\n style?: React.CSSProperties\n spin?: boolean\n rotate?: number\n ['aria-hidden']?: React.AriaAttributes['aria-hidden']\n}\n\nexport type ThemeType = 'filled' | 'outlined' | 'twoTone'\n\nexport interface IconProps {\n tabIndex?: number\n type?: string\n className?: string\n theme?: ThemeType\n title?: string\n onKeyUp?: React.KeyboardEventHandler<HTMLElement>\n onClick?: React.MouseEventHandler<HTMLElement>\n component?: React.ComponentType<CustomIconComponentProps | React.SVGProps<SVGSVGElement>>\n twoToneColor?: string\n viewBox?: string\n spin?: boolean\n rotate?: number\n style?: React.CSSProperties\n prefixCls?: string\n role?: string\n}\n\nexport interface IconComponent<P> extends React.SFC<P> {\n createFromIconfontCN: typeof createFromIconfontCN\n getTwoToneColor: typeof getTwoToneColor\n setTwoToneColor: typeof setTwoToneColor\n unstable_ChangeThemeOfIconsDangerously?: typeof unstable_ChangeThemeOfIconsDangerously\n unstable_ChangeDefaultThemeOfIcons?: typeof unstable_ChangeDefaultThemeOfIcons\n}\n\nconst Icon: IconComponent<IconProps> = (props) => {\n const {\n // affect outter <i>...</i>\n className,\n\n // affect inner <svg>...</svg>\n type,\n component: Component,\n viewBox,\n spin,\n rotate,\n\n tabIndex,\n onClick,\n\n // children\n children,\n\n // other\n theme, // default to outlined\n twoToneColor,\n\n ...restProps\n } = props\n\n warning(\n Boolean(type || Component || children),\n 'Icon',\n 'Should have `type` prop or `component` prop or `children`.'\n )\n\n const classString = classNames(\n 'tntd-anticon',\n {\n [`anticon`]: true,\n [`anticon-${type}`]: Boolean(type),\n },\n className\n )\n\n const svgClassString = classNames({\n [`anticon-spin`]: !!spin || type === 'loading',\n })\n\n const svgStyle = rotate\n ? {\n msTransform: `rotate(${rotate}deg)`,\n transform: `rotate(${rotate}deg)`,\n }\n : undefined\n\n const innerSvgProps: CustomIconComponentProps = {\n ...svgBaseProps,\n className: svgClassString,\n style: svgStyle,\n viewBox,\n }\n\n if (!viewBox) {\n delete innerSvgProps.viewBox\n }\n\n const renderInnerNode = () => {\n // component > children > type\n if (Component) {\n return <Component {...innerSvgProps}>{children}</Component>\n }\n\n if (children) {\n warning(\n Boolean(viewBox) ||\n (React.Children.count(children) === 1 &&\n React.isValidElement(children) &&\n React.Children.only(children).type === 'use'),\n 'Icon',\n 'Make sure that you provide correct `viewBox`' +\n ' prop (default `0 0 1024 1024`) to the icon.'\n )\n return (\n <svg {...innerSvgProps} viewBox={viewBox}>\n {children}\n </svg>\n )\n }\n\n if (typeof type === 'string') {\n let computedType = type\n if (theme) {\n const themeInName = getThemeFromTypeName(type)\n warning(\n !themeInName || theme === themeInName,\n 'Icon',\n `The icon name '${type}' already specify a theme '${themeInName}',` +\n ` the 'theme' prop '${theme}' will be ignored.`\n )\n }\n computedType = withThemeSuffix(\n removeTypeTheme(alias(computedType)),\n dangerousTheme || theme || defaultTheme\n )\n\n return (\n <ReactIcon\n className={svgClassString}\n type={computedType}\n primaryColor={twoToneColor}\n style={svgStyle}\n />\n )\n }\n }\n\n let iconTabIndex = tabIndex\n if (iconTabIndex === undefined && onClick) {\n iconTabIndex = -1\n }\n\n return (\n <LocaleReceiver componentName=\"Icon\">\n {(locale) => (\n <i\n aria-label={type && `${(locale as Record<'icon', object>).icon}: ${type}`}\n {...restProps}\n tabIndex={iconTabIndex}\n onClick={onClick}\n className={classString}\n >\n {renderInnerNode()}\n </i>\n )}\n </LocaleReceiver>\n )\n}\n\nIcon.createFromIconfontCN = createFromIconfontCN\nIcon.getTwoToneColor = getTwoToneColor\nIcon.setTwoToneColor = setTwoToneColor\n\nexport default Icon\n"]}
@@ -0,0 +1,4 @@
1
+ import '../../style/index.less';
2
+ import './index.less';
3
+ import './style.less';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icon/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,cAAc,CAAA;AACrB,OAAO,cAAc,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style/index.less");
4
+ require("./index.less");
5
+ require("./style.less");
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/icon/style/index.tsx"],"names":[],"mappings":";;AAAA,kCAA+B;AAC/B,wBAAqB;AACrB,wBAAqB","sourcesContent":["import '../../style/index.less'\nimport './index.less'\nimport './style.less'\n"]}
@@ -0,0 +1,4 @@
1
+ @import '../../style/themes/index';
2
+ @import '../../style/mixins/index';
3
+
4
+ @icon-prefix-cls: ~'@{ant-prefix}-icon';
@@ -0,0 +1,6 @@
1
+ @import '../../style/themes/index';
2
+
3
+ .tntd-anticon {
4
+ font-size: @font-size-lg;
5
+ vertical-align: -0.1875em;
6
+ }
@@ -0,0 +1,3 @@
1
+ export declare function setTwoToneColor(primaryColor: string): void;
2
+ export declare function getTwoToneColor(): string;
3
+ //# sourceMappingURL=twoTonePrimaryColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twoTonePrimaryColor.d.ts","sourceRoot":"","sources":["../../src/icon/twoTonePrimaryColor.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAI1D;AAED,wBAAgB,eAAe,IAAI,MAAM,CAGxC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getTwoToneColor = getTwoToneColor;
7
+ exports.setTwoToneColor = setTwoToneColor;
8
+ var _components = _interopRequireDefault(require("./components"));
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ function setTwoToneColor(primaryColor) {
11
+ return _components["default"].setTwoToneColors({
12
+ primaryColor: primaryColor
13
+ });
14
+ }
15
+ function getTwoToneColor() {
16
+ var colors = _components["default"].getTwoToneColors();
17
+ return colors.primaryColor;
18
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twoTonePrimaryColor.js","sourceRoot":"","sources":["../../src/icon/twoTonePrimaryColor.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAoC;AAEpC,SAAgB,eAAe,CAAC,YAAoB;IAClD,OAAO,oBAAS,CAAC,gBAAgB,CAAC;QAChC,YAAY;KACb,CAAC,CAAA;AACJ,CAAC;AAJD,0CAIC;AAED,SAAgB,eAAe;IAC7B,MAAM,MAAM,GAAG,oBAAS,CAAC,gBAAgB,EAAE,CAAA;IAC3C,OAAO,MAAM,CAAC,YAAY,CAAA;AAC5B,CAAC;AAHD,0CAGC","sourcesContent":["import ReactIcon from './components'\n\nexport function setTwoToneColor(primaryColor: string): void {\n return ReactIcon.setTwoToneColors({\n primaryColor,\n })\n}\n\nexport function getTwoToneColor(): string {\n const colors = ReactIcon.getTwoToneColors()\n return colors.primaryColor\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import type { ThemeType } from './index';
2
+ export declare const svgBaseProps: {
3
+ width: string;
4
+ height: string;
5
+ fill: string;
6
+ 'aria-hidden': boolean;
7
+ focusable: string;
8
+ };
9
+ export declare function getThemeFromTypeName(type: string): ThemeType | null;
10
+ export declare function removeTypeTheme(type: string): string;
11
+ export declare function withThemeSuffix(type: string, theme: ThemeType): string;
12
+ export declare function alias(type: string): string;
13
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/icon/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAKxC,eAAO,MAAM,YAAY;;;;;;CAMxB,CAAA;AAMD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAUnE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,UAE3C;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,UAY7D;AAGD,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,UA0BjC"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.alias = alias;
7
+ exports.getThemeFromTypeName = getThemeFromTypeName;
8
+ exports.removeTypeTheme = removeTypeTheme;
9
+ exports.svgBaseProps = void 0;
10
+ exports.withThemeSuffix = withThemeSuffix;
11
+ var _warning = _interopRequireDefault(require("../_util/warning"));
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+ // These props make sure that the SVG behaviours like general text.
14
+ // Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
15
+ var svgBaseProps = exports.svgBaseProps = {
16
+ width: '1em',
17
+ height: '1em',
18
+ fill: 'currentColor',
19
+ 'aria-hidden': true,
20
+ focusable: 'false'
21
+ };
22
+ var fillTester = /-fill$/;
23
+ var outlineTester = /-o$/;
24
+ var twoToneTester = /-twotone$/;
25
+ function getThemeFromTypeName(type) {
26
+ var result = null;
27
+ if (fillTester.test(type)) {
28
+ result = 'filled';
29
+ } else if (outlineTester.test(type)) {
30
+ result = 'outlined';
31
+ } else if (twoToneTester.test(type)) {
32
+ result = 'twoTone';
33
+ }
34
+ return result;
35
+ }
36
+ function removeTypeTheme(type) {
37
+ return type.replace(fillTester, '').replace(outlineTester, '').replace(twoToneTester, '');
38
+ }
39
+ function withThemeSuffix(type, theme) {
40
+ var result = type;
41
+ if (theme === 'filled') {
42
+ result += '-fill';
43
+ } else if (theme === 'outlined') {
44
+ result += '-o';
45
+ } else if (theme === 'twoTone') {
46
+ result += '-twotone';
47
+ } else {
48
+ (0, _warning["default"])(false, 'Icon', "This icon '".concat(type, "' has unknown theme '").concat(theme, "'"));
49
+ }
50
+ return result;
51
+ }
52
+ // For alias or compatibility
53
+ function alias(type) {
54
+ var newType = type;
55
+ switch (type) {
56
+ case 'cross':
57
+ newType = 'close';
58
+ break;
59
+ // https://github.com/ant-design/ant-design/issues/13007
60
+ case 'interation':
61
+ newType = 'interaction';
62
+ break;
63
+ // https://github.com/ant-design/ant-design/issues/16810
64
+ case 'canlendar':
65
+ newType = 'calendar';
66
+ break;
67
+ // https://github.com/ant-design/ant-design/issues/17448
68
+ case 'colum-height':
69
+ newType = 'column-height';
70
+ break;
71
+ default:
72
+ }
73
+ (0, _warning["default"])(newType === type, 'Icon', "Icon '".concat(type, "' was a typo and is now deprecated, please use '").concat(newType, "' instead."));
74
+ return newType;
75
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/icon/utils.ts"],"names":[],"mappings":";;;;;;AACA,+DAAsC;AAEtC,mEAAmE;AACnE,0GAA0G;AAC7F,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,cAAc;IACpB,aAAa,EAAE,IAAI;IACnB,SAAS,EAAE,OAAO;CACnB,CAAA;AAED,MAAM,UAAU,GAAG,QAAQ,CAAA;AAC3B,MAAM,aAAa,GAAG,KAAK,CAAA;AAC3B,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,IAAI,MAAM,GAAqB,IAAI,CAAA;IACnC,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QACzB,MAAM,GAAG,QAAQ,CAAA;KAClB;SAAM,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QACnC,MAAM,GAAG,UAAU,CAAA;KACpB;SAAM,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QACnC,MAAM,GAAG,SAAS,CAAA;KACnB;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAVD,oDAUC;AAED,SAAgB,eAAe,CAAC,IAAY;IAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAA;AAC3F,CAAC;AAFD,0CAEC;AAED,SAAgB,eAAe,CAAC,IAAY,EAAE,KAAgB;IAC5D,IAAI,MAAM,GAAG,IAAI,CAAA;IACjB,IAAI,KAAK,KAAK,QAAQ,EAAE;QACtB,MAAM,IAAI,OAAO,CAAA;KAClB;SAAM,IAAI,KAAK,KAAK,UAAU,EAAE;QAC/B,MAAM,IAAI,IAAI,CAAA;KACf;SAAM,IAAI,KAAK,KAAK,SAAS,EAAE;QAC9B,MAAM,IAAI,UAAU,CAAA;KACrB;SAAM;QACL,IAAA,iBAAO,EAAC,KAAK,EAAE,MAAM,EAAE,cAAc,IAAI,wBAAwB,KAAK,GAAG,CAAC,CAAA;KAC3E;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAZD,0CAYC;AAED,6BAA6B;AAC7B,SAAgB,KAAK,CAAC,IAAY;IAChC,IAAI,OAAO,GAAG,IAAI,CAAA;IAClB,QAAQ,IAAI,EAAE;QACZ,KAAK,OAAO;YACV,OAAO,GAAG,OAAO,CAAA;YACjB,MAAK;QACP,wDAAwD;QACxD,KAAK,YAAY;YACf,OAAO,GAAG,aAAa,CAAA;YACvB,MAAK;QACP,wDAAwD;QACxD,KAAK,WAAW;YACd,OAAO,GAAG,UAAU,CAAA;YACpB,MAAK;QACP,wDAAwD;QACxD,KAAK,cAAc;YACjB,OAAO,GAAG,eAAe,CAAA;YACzB,MAAK;QACP,QAAQ;KACT;IACD,IAAA,iBAAO,EACL,OAAO,KAAK,IAAI,EAChB,MAAM,EACN,SAAS,IAAI,mDAAmD,OAAO,YAAY,CACpF,CAAA;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AA1BD,sBA0BC","sourcesContent":["import type { ThemeType } from './index'\nimport warning from '../_util/warning'\n\n// These props make sure that the SVG behaviours like general text.\n// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4\nexport const svgBaseProps = {\n width: '1em',\n height: '1em',\n fill: 'currentColor',\n 'aria-hidden': true,\n focusable: 'false',\n}\n\nconst fillTester = /-fill$/\nconst outlineTester = /-o$/\nconst twoToneTester = /-twotone$/\n\nexport function getThemeFromTypeName(type: string): ThemeType | null {\n let result: ThemeType | null = null\n if (fillTester.test(type)) {\n result = 'filled'\n } else if (outlineTester.test(type)) {\n result = 'outlined'\n } else if (twoToneTester.test(type)) {\n result = 'twoTone'\n }\n return result\n}\n\nexport function removeTypeTheme(type: string) {\n return type.replace(fillTester, '').replace(outlineTester, '').replace(twoToneTester, '')\n}\n\nexport function withThemeSuffix(type: string, theme: ThemeType) {\n let result = type\n if (theme === 'filled') {\n result += '-fill'\n } else if (theme === 'outlined') {\n result += '-o'\n } else if (theme === 'twoTone') {\n result += '-twotone'\n } else {\n warning(false, 'Icon', `This icon '${type}' has unknown theme '${theme}'`)\n }\n return result\n}\n\n// For alias or compatibility\nexport function alias(type: string) {\n let newType = type\n switch (type) {\n case 'cross':\n newType = 'close'\n break\n // https://github.com/ant-design/ant-design/issues/13007\n case 'interation':\n newType = 'interaction'\n break\n // https://github.com/ant-design/ant-design/issues/16810\n case 'canlendar':\n newType = 'calendar'\n break\n // https://github.com/ant-design/ant-design/issues/17448\n case 'colum-height':\n newType = 'column-height'\n break\n default:\n }\n warning(\n newType === type,\n 'Icon',\n `Icon '${type}' was a typo and is now deprecated, please use '${newType}' instead.`\n )\n return newType\n}\n"]}
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
- var _default = ['system', 'entry', 'permission', 'graph', 'guanjia', 'case', 'celve1', 'shoucang', 'deal-type', 'pm', 'shoukuan', 'zhibiao', 'puzzle', 'user-group', 'yuce', 'jianmo', 'zhuanzhang', 'yunwei', 'baozhang', 'jizhang', 'tongji', 'pingfen', 'limit', 'spider', 'loan', 'access', 'role', 'org', 'celve', 'book', 'tag', 'shixufenxipeizhi', 'all-cases', 'xianeguanli', 'api', 'network', 'analysis', 'calendar', 'backup', 'all', 'attachment', 'chart-line', 'branches', 'chart-area', 'clock', 'check', 'charging-setting', 'chart-pie-alt', 'dashboard', 'datebase', 'check-reply', 'datacenter', 'connection', 'download', 'date-set', 'event', 'event-wait', 'fieldanalysis', 'exchange', 'knowledge', 'key', 'log', 'list', 'menu', 'index', 'project', 'monitorin', 'pointmap', 'ranking', 'model', 'plan', 'task', 'wait', 'upload', 'question-list', 'read', 'setting', 'reply', 'jinjianguanli', 'change-theme', 'application', 'flag-en', 'flag-cn', 'down', 'up', 'workflow', 'sync', 'folder', 'database', 'circle', 'edit', 'edit-color', 'box', 'layer', 'box-color', 'home-color', 'record', 'monitor', 'time-color', 'user', 'function-color', 'record-color', 'warning-color', 'layer-color', 'template', 'template-color', 'monitor-color', 'search', 'user-color', 'function', 'warning', 'search-color', 'home', 'time', 'application', 'plus', 'minus'];
8
- exports["default"] = _default;
7
+ var _default = exports["default"] = ['system', 'entry', 'permission', 'graph', 'guanjia', 'case', 'celve1', 'shoucang', 'deal-type', 'pm', 'shoukuan', 'zhibiao', 'puzzle', 'user-group', 'yuce', 'jianmo', 'zhuanzhang', 'yunwei', 'baozhang', 'jizhang', 'tongji', 'pingfen', 'limit', 'spider', 'loan', 'access', 'role', 'org', 'celve', 'book', 'tag', 'shixufenxipeizhi', 'all-cases', 'xianeguanli', 'api', 'network', 'analysis', 'calendar', 'backup', 'all', 'attachment', 'chart-line', 'branches', 'chart-area', 'clock', 'check', 'charging-setting', 'chart-pie-alt', 'dashboard', 'datebase', 'check-reply', 'datacenter', 'connection', 'download', 'date-set', 'event', 'event-wait', 'fieldanalysis', 'exchange', 'knowledge', 'key', 'log', 'list', 'menu', 'index', 'project', 'monitorin', 'pointmap', 'ranking', 'model', 'plan', 'task', 'wait', 'upload', 'question-list', 'read', 'setting', 'reply', 'jinjianguanli', 'change-theme', 'application', 'flag-en', 'flag-cn', 'down', 'up', 'workflow', 'sync', 'folder', 'database', 'circle', 'edit', 'edit-color', 'box', 'layer', 'box-color', 'home-color', 'record', 'monitor', 'time-color', 'user', 'function-color', 'record-color', 'warning-color', 'layer-color', 'template', 'template-color', 'monitor-color', 'search', 'user-color', 'function', 'warning', 'search-color', 'home', 'time', 'application', 'plus', 'minus'];
@@ -0,0 +1,5 @@
1
+ import Icon from 'antd/lib/icon';
2
+ import './style';
3
+ export * from 'antd/lib/icon';
4
+ export default Icon;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icon-old/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,cAAc,CAAA;AAE/B,OAAO,SAAS,CAAA;AAEhB,cAAc,cAAc,CAAA;AAE5B,eAAe,IAAI,CAAA"}