tntd 2.8.0-beta.3 → 3.0.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (531) hide show
  1. package/es/alert/alert.js +70 -0
  2. package/es/alert/alert.js.map +1 -0
  3. package/es/alert/alert.less +128 -0
  4. package/es/alert/index.js +1 -1
  5. package/es/alert/index.js.map +1 -1
  6. package/es/alert/style/index.less +1 -0
  7. package/es/button/button.js +30 -3
  8. package/es/button/button.js.map +1 -1
  9. package/es/button/button.less +72 -0
  10. package/es/button/index.js +1 -0
  11. package/es/button/index.js.map +1 -1
  12. package/es/checkbox/check.png +0 -0
  13. package/es/checkbox/checkbox.js +48 -0
  14. package/es/checkbox/checkbox.js.map +1 -0
  15. package/es/checkbox/checkbox.less +69 -0
  16. package/es/checkbox/index.js +3 -7
  17. package/es/checkbox/index.js.map +1 -1
  18. package/es/color-picker/index.less +4 -1
  19. package/es/date-picker/DatePicker.js +101 -0
  20. package/es/date-picker/DatePicker.js.map +1 -0
  21. package/es/date-picker/index.js +6 -12
  22. package/es/date-picker/index.js.map +1 -1
  23. package/es/date-picker/index.less +294 -0
  24. package/es/date-picker/style/RangePicker.less +3 -3
  25. package/es/descriptions/descriptions.js +64 -21
  26. package/es/descriptions/descriptions.js.map +1 -1
  27. package/es/descriptions/descriptions.less +57 -60
  28. package/es/descriptions/index.js +2 -2
  29. package/es/descriptions/index.js.map +1 -1
  30. package/es/drawer/drawer.js +98 -13
  31. package/es/drawer/drawer.js.map +1 -1
  32. package/es/drawer/index.js +1 -1
  33. package/es/drawer/index.js.map +1 -1
  34. package/es/drawer/index.less +154 -0
  35. package/es/drawer/style/drawer.less +18 -3
  36. package/es/drawer/style/index.js +2 -1
  37. package/es/drawer/style/index.js.map +1 -1
  38. package/es/form/form.js +3 -0
  39. package/es/form/form.js.map +1 -1
  40. package/es/form/form.less +36 -0
  41. package/es/icon/index.js +2 -0
  42. package/es/icon/index.js.map +1 -1
  43. package/es/icon/style/style.less +4 -0
  44. package/es/input/index.js +1 -1
  45. package/es/input/index.js.map +1 -1
  46. package/es/input/input.js +21 -30
  47. package/es/input/input.js.map +1 -1
  48. package/es/input/input.less +123 -20
  49. package/es/input-number/index.js +4 -5
  50. package/es/input-number/index.js.map +1 -1
  51. package/es/input-number/inputNumber.js +29 -0
  52. package/es/input-number/inputNumber.js.map +1 -0
  53. package/es/input-number/inputNumber.less +12 -0
  54. package/es/locale/en_US.js +12 -1
  55. package/es/locale/en_US.js.map +1 -1
  56. package/es/locale/zh_CN.js +12 -1
  57. package/es/locale/zh_CN.js.map +1 -1
  58. package/es/message/message.less +2 -1
  59. package/es/modal/index.js +2 -3
  60. package/es/modal/index.js.map +1 -1
  61. package/es/modal/index.less +36 -0
  62. package/es/modal/modal.js +104 -17
  63. package/es/modal/modal.js.map +1 -1
  64. package/es/modal/style/index.js +2 -1
  65. package/es/modal/style/index.js.map +1 -1
  66. package/es/notification/assets/index.js +2 -0
  67. package/es/notification/assets/index.js.map +1 -0
  68. package/es/notification/assets/svg-error-tip.js +145 -0
  69. package/es/notification/assets/svg-error-tip.js.map +1 -0
  70. package/es/notification/assets/svg-success-tip.js +162 -0
  71. package/es/notification/assets/svg-success-tip.js.map +1 -0
  72. package/es/notification/index.js +1 -1
  73. package/es/notification/index.js.map +1 -1
  74. package/es/notification/notification.js +80 -0
  75. package/es/notification/notification.js.map +1 -0
  76. package/es/notification/notification.less +59 -0
  77. package/es/notification/style/index.less +2 -0
  78. package/es/popconfirm/index.js +2 -2
  79. package/es/popconfirm/index.js.map +1 -1
  80. package/es/popconfirm/index.less +26 -0
  81. package/es/popconfirm/popconfirm.js +40 -0
  82. package/es/popconfirm/popconfirm.js.map +1 -0
  83. package/es/popconfirm/style/index.js +2 -1
  84. package/es/popconfirm/style/index.js.map +1 -1
  85. package/es/popover/index.js +2 -2
  86. package/es/popover/index.js.map +1 -1
  87. package/es/popover/index.less +51 -0
  88. package/es/popover/popover.js +33 -0
  89. package/es/popover/popover.js.map +1 -0
  90. package/es/popover/style/index.js +1 -0
  91. package/es/popover/style/index.js.map +1 -1
  92. package/es/preview-text/index.js.map +1 -1
  93. package/es/progress/index.js +2 -2
  94. package/es/progress/index.js.map +1 -1
  95. package/es/progress/progress.js +132 -0
  96. package/es/progress/progress.js.map +1 -0
  97. package/es/progress/progress.less +82 -0
  98. package/es/query-form/Field/Composition/FieldPopover.js +284 -0
  99. package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
  100. package/es/query-form/Field/Composition/FieldPopover.less +35 -0
  101. package/es/query-form/Field/Composition/Select.js +108 -0
  102. package/es/query-form/Field/Composition/Select.js.map +1 -0
  103. package/es/query-form/Field/Composition/index.js +282 -0
  104. package/es/query-form/Field/Composition/index.js.map +1 -0
  105. package/es/query-form/Field/Composition/index.less +106 -0
  106. package/es/query-form/Field/Composition/utils.js +19 -0
  107. package/es/query-form/Field/Composition/utils.js.map +1 -0
  108. package/es/query-form/index.js +109 -125
  109. package/es/query-form/index.js.map +1 -1
  110. package/es/query-form/index.less +12 -9
  111. package/es/query-list-scene/index.less +4 -4
  112. package/es/radio/index.js +3 -5
  113. package/es/radio/index.js.map +1 -1
  114. package/es/radio/radio.js +57 -0
  115. package/es/radio/radio.js.map +1 -0
  116. package/es/radio/radio.less +43 -0
  117. package/es/segmented/index.less +126 -112
  118. package/es/select/index.js +1 -1
  119. package/es/select/index.js.map +1 -1
  120. package/es/select/select.js +5 -6
  121. package/es/select/select.js.map +1 -1
  122. package/es/select/select.less +83 -9
  123. package/es/steps/assets/background_left.svg +12 -0
  124. package/es/steps/assets/background_right.svg +12 -0
  125. package/es/steps/assets/horizontal_line.svg +3 -0
  126. package/es/steps/assets/vertical_line.svg +3 -0
  127. package/es/steps/index.js +9 -2
  128. package/es/steps/index.js.map +1 -1
  129. package/es/steps/stepStyle/icon.less +51 -0
  130. package/es/steps/stepStyle/index.less +173 -8
  131. package/es/steps/stepStyle/nav.less +51 -259
  132. package/es/steps/stepStyle/progress-dot.less +10 -0
  133. package/es/steps/stepStyle/variables.less +8 -0
  134. package/es/steps/stepStyle/vertical.less +41 -0
  135. package/es/steps/steps.js +53 -27
  136. package/es/steps/steps.js.map +1 -1
  137. package/es/steps/style/index.js +8 -0
  138. package/es/steps/style/index.js.map +1 -1
  139. package/es/style/themes/default.less +3 -2
  140. package/es/switch/index.less +46 -0
  141. package/es/switch/style/index.js +2 -1
  142. package/es/switch/style/index.js.map +1 -1
  143. package/es/switch/switch.js +40 -2
  144. package/es/switch/switch.js.map +1 -1
  145. package/es/table/style/index.less +51 -7
  146. package/es/table/style/size.less +5 -5
  147. package/es/table/table.js +37 -6
  148. package/es/table/table.js.map +1 -1
  149. package/es/table/table.less +33 -5
  150. package/es/tabs/index.js +1 -0
  151. package/es/tabs/index.js.map +1 -1
  152. package/es/tabs/style/index.js.map +1 -1
  153. package/es/tabs/style/index.less +1 -0
  154. package/es/tabs/tabs.js +22 -4
  155. package/es/tabs/tabs.js.map +1 -1
  156. package/es/tabs/tabs.less +114 -0
  157. package/es/tag/color.less +43 -0
  158. package/es/tag/index.js +11 -2
  159. package/es/tag/index.js.map +1 -1
  160. package/es/tag/tag.js +171 -0
  161. package/es/tag/tag.js.map +1 -0
  162. package/es/tag/tag.less +192 -0
  163. package/es/time-picker/TimePicker.js +36 -0
  164. package/es/time-picker/TimePicker.js.map +1 -0
  165. package/es/time-picker/index.js +2 -2
  166. package/es/time-picker/index.js.map +1 -1
  167. package/es/time-picker/index.less +38 -0
  168. package/es/tntd-action/Action.js +66 -0
  169. package/es/tntd-action/Action.js.map +1 -0
  170. package/es/tntd-action/index.js +64 -6
  171. package/es/tntd-action/index.js.map +1 -1
  172. package/es/tntd-action/index.less +36 -0
  173. package/es/tntd-cascader/AntdCascader/index.less +28 -27
  174. package/es/tooltip/index.js +2 -2
  175. package/es/tooltip/index.js.map +1 -1
  176. package/es/tooltip/index.less +24 -0
  177. package/es/tooltip/style/index.js +2 -1
  178. package/es/tooltip/style/index.js.map +1 -1
  179. package/es/tooltip/tooltip.js +32 -0
  180. package/es/tooltip/tooltip.js.map +1 -0
  181. package/es/utils/lang.js +8 -2
  182. package/es/utils/lang.js.map +1 -1
  183. package/lib/alert/alert.d.ts +12 -0
  184. package/lib/alert/alert.d.ts.map +1 -0
  185. package/lib/alert/alert.js +92 -0
  186. package/lib/alert/alert.js.map +1 -0
  187. package/lib/alert/alert.less +128 -0
  188. package/lib/alert/index.d.ts +1 -1
  189. package/lib/alert/index.d.ts.map +1 -1
  190. package/lib/alert/index.js +7 -8
  191. package/lib/alert/index.js.map +1 -1
  192. package/lib/alert/style/index.less +1 -0
  193. package/lib/button/button.d.ts +9 -4
  194. package/lib/button/button.d.ts.map +1 -1
  195. package/lib/button/button.js +27 -3
  196. package/lib/button/button.js.map +1 -1
  197. package/lib/button/button.less +72 -0
  198. package/lib/button/index.d.ts +1 -0
  199. package/lib/button/index.d.ts.map +1 -1
  200. package/lib/button/index.js +6 -5
  201. package/lib/button/index.js.map +1 -1
  202. package/lib/checkbox/check.png +0 -0
  203. package/lib/checkbox/checkbox.d.ts +16 -0
  204. package/lib/checkbox/checkbox.d.ts.map +1 -0
  205. package/lib/checkbox/checkbox.js +65 -0
  206. package/lib/checkbox/checkbox.js.map +1 -0
  207. package/lib/checkbox/checkbox.less +69 -0
  208. package/lib/checkbox/index.d.ts +3 -3
  209. package/lib/checkbox/index.d.ts.map +1 -1
  210. package/lib/checkbox/index.js +2 -17
  211. package/lib/checkbox/index.js.map +1 -1
  212. package/lib/color-picker/index.less +4 -1
  213. package/lib/date-picker/DatePicker.d.ts +21 -0
  214. package/lib/date-picker/DatePicker.d.ts.map +1 -0
  215. package/lib/date-picker/DatePicker.js +128 -0
  216. package/lib/date-picker/DatePicker.js.map +1 -0
  217. package/lib/date-picker/index.d.ts +2 -6
  218. package/lib/date-picker/index.d.ts.map +1 -1
  219. package/lib/date-picker/index.js +6 -37
  220. package/lib/date-picker/index.js.map +1 -1
  221. package/lib/date-picker/index.less +294 -0
  222. package/lib/date-picker/style/RangePicker.less +3 -3
  223. package/lib/descriptions/descriptions.d.ts +11 -6
  224. package/lib/descriptions/descriptions.d.ts.map +1 -1
  225. package/lib/descriptions/descriptions.js +68 -26
  226. package/lib/descriptions/descriptions.js.map +1 -1
  227. package/lib/descriptions/descriptions.less +57 -60
  228. package/lib/descriptions/index.d.ts +1 -1
  229. package/lib/descriptions/index.d.ts.map +1 -1
  230. package/lib/descriptions/index.js +7 -7
  231. package/lib/descriptions/index.js.map +1 -1
  232. package/lib/drawer/drawer.d.ts +22 -2
  233. package/lib/drawer/drawer.d.ts.map +1 -1
  234. package/lib/drawer/drawer.js +104 -13
  235. package/lib/drawer/drawer.js.map +1 -1
  236. package/lib/drawer/index.d.ts +1 -1
  237. package/lib/drawer/index.d.ts.map +1 -1
  238. package/lib/drawer/index.js +5 -5
  239. package/lib/drawer/index.js.map +1 -1
  240. package/lib/drawer/index.less +154 -0
  241. package/lib/drawer/style/drawer.less +18 -3
  242. package/lib/drawer/style/index.d.ts +1 -0
  243. package/lib/drawer/style/index.d.ts.map +1 -1
  244. package/lib/drawer/style/index.js +2 -1
  245. package/lib/drawer/style/index.js.map +1 -1
  246. package/lib/form/form.d.ts +1 -0
  247. package/lib/form/form.d.ts.map +1 -1
  248. package/lib/form/form.js +4 -0
  249. package/lib/form/form.js.map +1 -1
  250. package/lib/form/form.less +36 -0
  251. package/lib/icon/index.d.ts +1 -0
  252. package/lib/icon/index.d.ts.map +1 -1
  253. package/lib/icon/index.js +2 -1
  254. package/lib/icon/index.js.map +1 -1
  255. package/lib/icon/style/style.less +4 -0
  256. package/lib/input/index.d.ts +1 -1
  257. package/lib/input/index.d.ts.map +1 -1
  258. package/lib/input/index.js +7 -7
  259. package/lib/input/index.js.map +1 -1
  260. package/lib/input/input.d.ts +5 -5
  261. package/lib/input/input.d.ts.map +1 -1
  262. package/lib/input/input.js +11 -20
  263. package/lib/input/input.js.map +1 -1
  264. package/lib/input/input.less +123 -20
  265. package/lib/input-number/index.d.ts +4 -8
  266. package/lib/input-number/index.d.ts.map +1 -1
  267. package/lib/input-number/index.js +3 -5
  268. package/lib/input-number/index.js.map +1 -1
  269. package/lib/input-number/inputNumber.d.ts +10 -0
  270. package/lib/input-number/inputNumber.d.ts.map +1 -0
  271. package/lib/input-number/inputNumber.js +48 -0
  272. package/lib/input-number/inputNumber.js.map +1 -0
  273. package/lib/input-number/inputNumber.less +12 -0
  274. package/lib/locale/default.d.ts +11 -0
  275. package/lib/locale/default.d.ts.map +1 -1
  276. package/lib/locale/en_US.d.ts +11 -0
  277. package/lib/locale/en_US.d.ts.map +1 -1
  278. package/lib/locale/en_US.js +12 -1
  279. package/lib/locale/en_US.js.map +1 -1
  280. package/lib/locale/zh_CN.d.ts +11 -0
  281. package/lib/locale/zh_CN.d.ts.map +1 -1
  282. package/lib/locale/zh_CN.js +12 -1
  283. package/lib/locale/zh_CN.js.map +1 -1
  284. package/lib/message/message.less +2 -1
  285. package/lib/modal/index.d.ts +0 -1
  286. package/lib/modal/index.d.ts.map +1 -1
  287. package/lib/modal/index.js +2 -3
  288. package/lib/modal/index.js.map +1 -1
  289. package/lib/modal/index.less +36 -0
  290. package/lib/modal/modal.d.ts.map +1 -1
  291. package/lib/modal/modal.js +91 -16
  292. package/lib/modal/modal.js.map +1 -1
  293. package/lib/modal/style/index.d.ts +1 -0
  294. package/lib/modal/style/index.d.ts.map +1 -1
  295. package/lib/modal/style/index.js +2 -1
  296. package/lib/modal/style/index.js.map +1 -1
  297. package/lib/notification/assets/index.d.ts +3 -0
  298. package/lib/notification/assets/index.d.ts.map +1 -0
  299. package/lib/notification/assets/index.js +20 -0
  300. package/lib/notification/assets/index.js.map +1 -0
  301. package/lib/notification/assets/svg-error-tip.d.ts +4 -0
  302. package/lib/notification/assets/svg-error-tip.d.ts.map +1 -0
  303. package/lib/notification/assets/svg-error-tip.js +154 -0
  304. package/lib/notification/assets/svg-error-tip.js.map +1 -0
  305. package/lib/notification/assets/svg-success-tip.d.ts +4 -0
  306. package/lib/notification/assets/svg-success-tip.d.ts.map +1 -0
  307. package/lib/notification/assets/svg-success-tip.js +171 -0
  308. package/lib/notification/assets/svg-success-tip.js.map +1 -0
  309. package/lib/notification/index.d.ts +1 -1
  310. package/lib/notification/index.d.ts.map +1 -1
  311. package/lib/notification/index.js +7 -8
  312. package/lib/notification/index.js.map +1 -1
  313. package/lib/notification/notification.d.ts +9 -0
  314. package/lib/notification/notification.d.ts.map +1 -0
  315. package/lib/notification/notification.js +105 -0
  316. package/lib/notification/notification.js.map +1 -0
  317. package/lib/notification/notification.less +59 -0
  318. package/lib/notification/style/index.less +2 -0
  319. package/lib/popconfirm/index.d.ts +2 -2
  320. package/lib/popconfirm/index.d.ts.map +1 -1
  321. package/lib/popconfirm/index.js +1 -1
  322. package/lib/popconfirm/index.js.map +1 -1
  323. package/lib/popconfirm/index.less +26 -0
  324. package/lib/popconfirm/popconfirm.d.ts +6 -0
  325. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  326. package/lib/popconfirm/popconfirm.js +58 -0
  327. package/lib/popconfirm/popconfirm.js.map +1 -0
  328. package/lib/popconfirm/style/index.d.ts +1 -0
  329. package/lib/popconfirm/style/index.d.ts.map +1 -1
  330. package/lib/popconfirm/style/index.js +2 -1
  331. package/lib/popconfirm/style/index.js.map +1 -1
  332. package/lib/popover/index.d.ts +2 -2
  333. package/lib/popover/index.d.ts.map +1 -1
  334. package/lib/popover/index.js +2 -2
  335. package/lib/popover/index.js.map +1 -1
  336. package/lib/popover/index.less +51 -0
  337. package/lib/popover/popover.d.ts +13 -0
  338. package/lib/popover/popover.d.ts.map +1 -0
  339. package/lib/popover/popover.js +53 -0
  340. package/lib/popover/popover.js.map +1 -0
  341. package/lib/popover/style/index.d.ts +1 -0
  342. package/lib/popover/style/index.d.ts.map +1 -1
  343. package/lib/popover/style/index.js +2 -1
  344. package/lib/popover/style/index.js.map +1 -1
  345. package/lib/preview-text/index.d.ts +1 -1
  346. package/lib/preview-text/index.d.ts.map +1 -1
  347. package/lib/preview-text/index.js.map +1 -1
  348. package/lib/progress/index.d.ts +2 -2
  349. package/lib/progress/index.d.ts.map +1 -1
  350. package/lib/progress/index.js +1 -1
  351. package/lib/progress/index.js.map +1 -1
  352. package/lib/progress/progress.d.ts +12 -0
  353. package/lib/progress/progress.d.ts.map +1 -0
  354. package/lib/progress/progress.js +148 -0
  355. package/lib/progress/progress.js.map +1 -0
  356. package/lib/progress/progress.less +82 -0
  357. package/lib/query-form/Field/Composition/FieldPopover.d.ts +17 -0
  358. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
  359. package/lib/query-form/Field/Composition/FieldPopover.js +319 -0
  360. package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
  361. package/lib/query-form/Field/Composition/FieldPopover.less +35 -0
  362. package/lib/query-form/Field/Composition/Select.d.ts +4 -0
  363. package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
  364. package/lib/query-form/Field/Composition/Select.js +132 -0
  365. package/lib/query-form/Field/Composition/Select.js.map +1 -0
  366. package/lib/query-form/Field/Composition/index.d.ts +14 -0
  367. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  368. package/lib/query-form/Field/Composition/index.js +337 -0
  369. package/lib/query-form/Field/Composition/index.js.map +1 -0
  370. package/lib/query-form/Field/Composition/index.less +106 -0
  371. package/lib/query-form/Field/Composition/utils.d.ts +6 -0
  372. package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
  373. package/lib/query-form/Field/Composition/utils.js +27 -0
  374. package/lib/query-form/Field/Composition/utils.js.map +1 -0
  375. package/lib/query-form/index.d.ts +4 -7
  376. package/lib/query-form/index.d.ts.map +1 -1
  377. package/lib/query-form/index.js +137 -149
  378. package/lib/query-form/index.js.map +1 -1
  379. package/lib/query-form/index.less +12 -9
  380. package/lib/query-list-scene/index.less +4 -4
  381. package/lib/radio/index.d.ts +3 -2
  382. package/lib/radio/index.d.ts.map +1 -1
  383. package/lib/radio/index.js +2 -5
  384. package/lib/radio/index.js.map +1 -1
  385. package/lib/radio/radio.d.ts +17 -0
  386. package/lib/radio/radio.d.ts.map +1 -0
  387. package/lib/radio/radio.js +75 -0
  388. package/lib/radio/radio.js.map +1 -0
  389. package/lib/radio/radio.less +43 -0
  390. package/lib/segmented/index.d.ts +1 -1
  391. package/lib/segmented/index.less +126 -112
  392. package/lib/select/index.d.ts +1 -1
  393. package/lib/select/index.d.ts.map +1 -1
  394. package/lib/select/index.js +6 -6
  395. package/lib/select/index.js.map +1 -1
  396. package/lib/select/select.d.ts +1 -1
  397. package/lib/select/select.d.ts.map +1 -1
  398. package/lib/select/select.js +3 -4
  399. package/lib/select/select.js.map +1 -1
  400. package/lib/select/select.less +83 -9
  401. package/lib/steps/assets/background_left.svg +12 -0
  402. package/lib/steps/assets/background_right.svg +12 -0
  403. package/lib/steps/assets/horizontal_line.svg +3 -0
  404. package/lib/steps/assets/vertical_line.svg +3 -0
  405. package/lib/steps/index.d.ts +1 -2
  406. package/lib/steps/index.d.ts.map +1 -1
  407. package/lib/steps/index.js +9 -2
  408. package/lib/steps/index.js.map +1 -1
  409. package/lib/steps/stepStyle/icon.less +51 -0
  410. package/lib/steps/stepStyle/index.less +173 -8
  411. package/lib/steps/stepStyle/nav.less +51 -259
  412. package/lib/steps/stepStyle/progress-dot.less +10 -0
  413. package/lib/steps/stepStyle/variables.less +8 -0
  414. package/lib/steps/stepStyle/vertical.less +41 -0
  415. package/lib/steps/steps.d.ts +10 -2
  416. package/lib/steps/steps.d.ts.map +1 -1
  417. package/lib/steps/steps.js +50 -22
  418. package/lib/steps/steps.js.map +1 -1
  419. package/lib/steps/style/index.d.ts.map +1 -1
  420. package/lib/steps/style/index.js.map +1 -1
  421. package/lib/style/themes/default.less +3 -2
  422. package/lib/svg-components/illustration-403.d.ts +1 -1
  423. package/lib/svg-components/illustration-404.d.ts +1 -1
  424. package/lib/svg-components/illustration-500.d.ts +1 -1
  425. package/lib/svg-components/illustration-empty.d.ts +1 -1
  426. package/lib/svg-components/illustration-failure.d.ts +1 -1
  427. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  428. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  429. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  430. package/lib/svg-components/illustration-offline.d.ts +1 -1
  431. package/lib/svg-components/illustration-success.d.ts +1 -1
  432. package/lib/switch/index.less +46 -0
  433. package/lib/switch/style/index.d.ts +1 -0
  434. package/lib/switch/style/index.d.ts.map +1 -1
  435. package/lib/switch/style/index.js +2 -1
  436. package/lib/switch/style/index.js.map +1 -1
  437. package/lib/switch/switch.d.ts +8 -0
  438. package/lib/switch/switch.d.ts.map +1 -1
  439. package/lib/switch/switch.js +40 -5
  440. package/lib/switch/switch.js.map +1 -1
  441. package/lib/table/assets/image-loading-background.d.ts +1 -1
  442. package/lib/table/assets/image-loading.d.ts +1 -1
  443. package/lib/table/style/index.less +51 -7
  444. package/lib/table/style/size.less +5 -5
  445. package/lib/table/table.d.ts +2 -1
  446. package/lib/table/table.d.ts.map +1 -1
  447. package/lib/table/table.js +35 -4
  448. package/lib/table/table.js.map +1 -1
  449. package/lib/table/table.less +33 -5
  450. package/lib/tabs/index.d.ts +1 -0
  451. package/lib/tabs/index.d.ts.map +1 -1
  452. package/lib/tabs/index.js +6 -5
  453. package/lib/tabs/index.js.map +1 -1
  454. package/lib/tabs/style/index.js.map +1 -1
  455. package/lib/tabs/style/index.less +1 -0
  456. package/lib/tabs/tabs.d.ts +3 -2
  457. package/lib/tabs/tabs.d.ts.map +1 -1
  458. package/lib/tabs/tabs.js +24 -3
  459. package/lib/tabs/tabs.js.map +1 -1
  460. package/lib/tabs/tabs.less +114 -0
  461. package/lib/tag/color.less +43 -0
  462. package/lib/tag/index.d.ts +3 -2
  463. package/lib/tag/index.d.ts.map +1 -1
  464. package/lib/tag/index.js +15 -9
  465. package/lib/tag/index.js.map +1 -1
  466. package/lib/tag/tag.d.ts +41 -0
  467. package/lib/tag/tag.d.ts.map +1 -0
  468. package/lib/tag/tag.js +183 -0
  469. package/lib/tag/tag.js.map +1 -0
  470. package/lib/tag/tag.less +192 -0
  471. package/lib/time-picker/TimePicker.d.ts +9 -0
  472. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  473. package/lib/time-picker/TimePicker.js +55 -0
  474. package/lib/time-picker/TimePicker.js.map +1 -0
  475. package/lib/time-picker/index.d.ts +7 -6
  476. package/lib/time-picker/index.d.ts.map +1 -1
  477. package/lib/time-picker/index.js +4 -17
  478. package/lib/time-picker/index.js.map +1 -1
  479. package/lib/time-picker/index.less +38 -0
  480. package/lib/tntd-action/Action.d.ts +6 -0
  481. package/lib/tntd-action/Action.d.ts.map +1 -0
  482. package/lib/tntd-action/Action.js +86 -0
  483. package/lib/tntd-action/Action.js.map +1 -0
  484. package/lib/tntd-action/index.d.ts +4 -2
  485. package/lib/tntd-action/index.d.ts.map +1 -1
  486. package/lib/tntd-action/index.js +76 -5
  487. package/lib/tntd-action/index.js.map +1 -1
  488. package/lib/tntd-action/index.less +36 -0
  489. package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
  490. package/lib/tntd-cascader/AntdCascader/index.less +28 -27
  491. package/lib/tntd-rc-select/_util/PurePanel.d.ts +1 -1
  492. package/lib/tooltip/index.d.ts +2 -2
  493. package/lib/tooltip/index.d.ts.map +1 -1
  494. package/lib/tooltip/index.js +2 -2
  495. package/lib/tooltip/index.js.map +1 -1
  496. package/lib/tooltip/index.less +24 -0
  497. package/lib/tooltip/style/index.d.ts +1 -0
  498. package/lib/tooltip/style/index.d.ts.map +1 -1
  499. package/lib/tooltip/style/index.js +2 -1
  500. package/lib/tooltip/style/index.js.map +1 -1
  501. package/lib/tooltip/tooltip.d.ts +8 -0
  502. package/lib/tooltip/tooltip.d.ts.map +1 -0
  503. package/lib/tooltip/tooltip.js +51 -0
  504. package/lib/tooltip/tooltip.js.map +1 -0
  505. package/lib/utils/lang.d.ts.map +1 -1
  506. package/lib/utils/lang.js +8 -2
  507. package/lib/utils/lang.js.map +1 -1
  508. package/package.json +3 -2
  509. package/themes/common/index.less +29 -27
  510. package/themes/default/colors.less +1 -1
  511. package/themes/default/lessVars2.x.less +2 -1
  512. package/themes/default/lessVars3.x.less +1 -0
  513. package/themes/default/variables.less +60 -36
  514. package/es/checkbox/checkbox-group.js +0 -5
  515. package/es/checkbox/checkbox-group.js.map +0 -1
  516. package/es/drawer/drawer.less +0 -20
  517. package/es/modal/modal.less +0 -18
  518. package/es/radio/radio-group.js +0 -5
  519. package/es/radio/radio-group.js.map +0 -1
  520. package/es/steps/stepStyle/small.less +0 -5
  521. package/lib/checkbox/checkbox-group.d.ts +0 -8
  522. package/lib/checkbox/checkbox-group.d.ts.map +0 -1
  523. package/lib/checkbox/checkbox-group.js +0 -12
  524. package/lib/checkbox/checkbox-group.js.map +0 -1
  525. package/lib/drawer/drawer.less +0 -20
  526. package/lib/modal/modal.less +0 -18
  527. package/lib/radio/radio-group.d.ts +0 -8
  528. package/lib/radio/radio-group.d.ts.map +0 -1
  529. package/lib/radio/radio-group.js +0 -12
  530. package/lib/radio/radio-group.js.map +0 -1
  531. package/lib/steps/stepStyle/small.less +0 -5
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../src/date-picker/DatePicker.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,IAAI,MAAM,SAAS,CAAA;AAO1B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAChD,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,+BAA+B,CAAA;AAC7C,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,cAAc,CAAA;AAE/D,MAAM,CAAC,MAAM,aAAa,GAEtB,CAAC,KAAK,EAAE,EAAE;IACZ,sCAAsC;IACtC,MAA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,SAAS,EAAE,SAAS,EAAE,UAAU,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAlE,oCAA0D,CAAQ,CAAA;IACxE,MAAM,WAAW,GAAG,oBAAC,IAAI,IAAC,IAAI,EAAC,YAAY,GAAG,CAAA;IAE9C,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;QAC7C,OAAO,CACL,oBAAC,UAAU,kBACT,UAAU,EAAE,UAAU,IAAI,WAAW,EACrC,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,IACrD,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAEvB,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,SAAS,EAAE,UAAU,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAlE,oCAA0D,CAAQ,CAAA;IACxE,MAAM,WAAW,GAAG,oBAAC,IAAI,IAAC,IAAI,EAAC,YAAY,GAAG,CAAA;IAE9C,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;QAC7C,OAAO,CACL,oBAAC,WAAW,kBACV,UAAU,EAAE,UAAU,IAAI,WAAW,EACrC,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,IACrD,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA","sourcesContent":["import React, { useState } from 'react'\nimport Icon from '../icon'\nimport type {\n DatePickerProps as AntdDatePickerProps,\n MonthPickerProps as AntMonthPickerProps,\n RangePickerProps as AntRangePickerProps,\n WeekPickerProps as AntWeekPickerProps,\n} from 'antd/es/date-picker/interface'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport AntdDatePicker from 'antd/es/date-picker'\nimport classNames from 'classnames'\nexport * from 'antd/es/date-picker'\nexport * from 'antd/es/date-picker/interface'\nconst { MonthPicker, WeekPicker, RangePicker } = AntdDatePicker\n\nexport const TntDatePicker: React.FC<\n AntdDatePickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n //theme样式类型 outline | fill 默认 outline\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <AntdDatePicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport const TntMonthPicker: React.FC<\n AntMonthPickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <MonthPicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport const TntWeekPicker: React.FC<\n AntWeekPickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <WeekPicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport const TntRangePicker: React.FC<\n AntRangePickerProps & { theme?: string; readonly?: boolean }\n> = (props) => {\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"calendar-3\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('date-picker')\n return (\n <RangePicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n"]}
@@ -1,18 +1,12 @@
1
- import AntdDatePicker from 'antd/es/date-picker';
2
1
  import { connectReadonlyComponent } from '../connect';
3
2
  import { PreviewText } from '../preview-text';
4
3
  import './style';
5
- export * from 'antd/es/date-picker';
6
- export * from 'antd/es/date-picker/interface';
7
- export const DatePicker = connectReadonlyComponent(AntdDatePicker, PreviewText.DatePicker);
8
- const {
9
- MonthPicker,
10
- WeekPicker,
11
- RangePicker
12
- } = AntdDatePicker;
4
+ import './index.less';
5
+ import { TntDatePicker, TntMonthPicker, TntWeekPicker, TntRangePicker } from './DatePicker';
6
+ export const DatePicker = connectReadonlyComponent(TntDatePicker, PreviewText.DatePicker);
13
7
  Object.assign(DatePicker, {
14
- MonthPicker: connectReadonlyComponent(MonthPicker, PreviewText.MonthPicker),
15
- RangePicker: connectReadonlyComponent(RangePicker, PreviewText.DatePicker),
16
- WeekPicker: connectReadonlyComponent(WeekPicker, PreviewText.WeekPicker)
8
+ MonthPicker: connectReadonlyComponent(TntMonthPicker, PreviewText.MonthPicker),
9
+ RangePicker: connectReadonlyComponent(TntRangePicker, PreviewText.DatePicker),
10
+ WeekPicker: connectReadonlyComponent(TntWeekPicker, PreviewText.WeekPicker)
17
11
  });
18
12
  export default DatePicker;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/date-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAKhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,SAAS,CAAA;AAEhB,cAAc,qBAAqB,CAAA;AAEnC,cAAc,+BAA+B,CAAA;AAM7C,MAAM,CAAC,MAAM,UAAU,GAAG,wBAAwB,CAChD,cAAc,EACd,WAAW,CAAC,UAAU,CACW,CAAA;AAEnC,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,cAAc,CAAA;AAE/D,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;IACxB,WAAW,EAAE,wBAAwB,CAAC,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC;IAC3E,WAAW,EAAE,wBAAwB,CAAC,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC;IAC1E,UAAU,EAAE,wBAAwB,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC;CACzE,CAAC,CAAA;AAEF,eAAe,UAAU,CAAA","sourcesContent":["import AntdDatePicker from 'antd/es/date-picker'\nimport type {\n DatePickerProps as AntdDatePickerProps,\n DatePickerDecorator,\n} from 'antd/es/date-picker/interface'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\nimport './style'\n\nexport * from 'antd/es/date-picker'\n\nexport * from 'antd/es/date-picker/interface'\n\nexport type DatePickerProps = AntdDatePickerProps & {\n readonly?: boolean\n}\n\nexport const DatePicker = connectReadonlyComponent(\n AntdDatePicker,\n PreviewText.DatePicker\n) as unknown as DatePickerDecorator\n\nconst { MonthPicker, WeekPicker, RangePicker } = AntdDatePicker\n\nObject.assign(DatePicker, {\n MonthPicker: connectReadonlyComponent(MonthPicker, PreviewText.MonthPicker),\n RangePicker: connectReadonlyComponent(RangePicker, PreviewText.DatePicker),\n WeekPicker: connectReadonlyComponent(WeekPicker, PreviewText.WeekPicker),\n})\n\nexport default DatePicker\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/date-picker/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,SAAS,CAAA;AAChB,OAAO,cAAc,CAAA;AACrB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE3F,MAAM,CAAC,MAAM,UAAU,GAAG,wBAAwB,CAChD,aAAa,EACb,WAAW,CAAC,UAAU,CACW,CAAA;AAEnC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;IACxB,WAAW,EAAE,wBAAwB,CAAC,cAAc,EAAE,WAAW,CAAC,WAAW,CAAC;IAC9E,WAAW,EAAE,wBAAwB,CAAC,cAAc,EAAE,WAAW,CAAC,UAAU,CAAC;IAC7E,UAAU,EAAE,wBAAwB,CAAC,aAAa,EAAE,WAAW,CAAC,UAAU,CAAC;CAC5E,CAAC,CAAA;AAEF,eAAe,UAAU,CAAA","sourcesContent":["import type { DatePickerDecorator } from 'antd/es/date-picker/interface'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\nimport './style'\nimport './index.less'\nimport { TntDatePicker, TntMonthPicker, TntWeekPicker, TntRangePicker } from './DatePicker'\n\nexport const DatePicker = connectReadonlyComponent(\n TntDatePicker,\n PreviewText.DatePicker\n) as unknown as DatePickerDecorator\n\nObject.assign(DatePicker, {\n MonthPicker: connectReadonlyComponent(TntMonthPicker, PreviewText.MonthPicker),\n RangePicker: connectReadonlyComponent(TntRangePicker, PreviewText.DatePicker),\n WeekPicker: connectReadonlyComponent(TntWeekPicker, PreviewText.WeekPicker),\n})\n\nexport default DatePicker\n"]}
@@ -0,0 +1,294 @@
1
+ @import '../style/themes/index';
2
+
3
+ @datepicker-prefix-cls: ~'@{ant-prefix}-date-picker';
4
+ @calendar-prefix-cls: ~'@{ant-prefix}-calendar';
5
+ @calendar-timepicker-prefix-cls: ~'@{ant-prefix}-calendar-time-picker';
6
+
7
+ .@{calendar-prefix-cls}-picker-container{
8
+ .@{calendar-prefix-cls}{
9
+ margin-top: 42px;
10
+ .@{calendar-prefix-cls}-input-wrap{
11
+ display: none;
12
+ }
13
+ }
14
+ .@{calendar-prefix-cls}-range{
15
+ margin-top: 42px;
16
+ .@{calendar-prefix-cls}-input-wrap,.@{calendar-prefix-cls}-range-middle{
17
+ display: none;
18
+ }
19
+ .@{calendar-prefix-cls}-decade-panel,.@{calendar-prefix-cls}-year-panel,.@{calendar-prefix-cls}-month-panel{
20
+ top: 0
21
+ }
22
+ }
23
+ .@{calendar-prefix-cls}-month-calendar,.@{calendar-prefix-cls}-week-number{
24
+ margin-top: 42px;
25
+ }
26
+ //.@{calendar-prefix-cls}-today .@{calendar-prefix-cls}-date{
27
+ // background-color: @white;
28
+ //}
29
+ .@{calendar-prefix-cls}:not(.@{calendar-prefix-cls}-range){
30
+ .@{calendar-prefix-cls}-selected-date .@{calendar-prefix-cls}-date{
31
+ background-color: @blue-6;
32
+ color: @white;
33
+ }
34
+ }
35
+
36
+ }
37
+ //Picker
38
+ .@{calendar-prefix-cls}-picker{
39
+ input,.@{calendar-prefix-cls}-picker-input{
40
+ border-color: @border-color-secondary;
41
+ color: @text-color;
42
+ &:focus{
43
+ border-color: @blue-5;
44
+ }
45
+ }
46
+ &:has(input:not([value=''])),&:hover {
47
+ .@{calendar-prefix-cls}-picker-icon{
48
+ color: @text-color-secondary;
49
+ }
50
+ }
51
+ &:has(input[disabled]){
52
+ .@{calendar-prefix-cls}-picker-icon{
53
+ color: @disabled-color;
54
+ }
55
+ }
56
+ .@{calendar-prefix-cls}-picker-icon{
57
+ width: auto;
58
+ height: @font-size-lg;
59
+ font-size: @font-size-lg;
60
+ }
61
+ .@{calendar-prefix-cls}-picker-clear{
62
+ color: tint(@bg-color-spotilight, 50%);
63
+ }
64
+ }
65
+ .@{datepicker-prefix-cls}{
66
+ &-fill{
67
+ .@{calendar-prefix-cls}-picker{
68
+ &-input {
69
+ &.@{ant-prefix}-input {
70
+ background-color: @fill-color-quaternary;
71
+ border-color: @fill-color-quaternary;
72
+ &-disabled {
73
+ border: none;
74
+ pointer-events: none;
75
+ background: @disabled-bg;
76
+ }
77
+ &:focus{
78
+ background-color: @white;
79
+ border-color: @blue-5;
80
+ }
81
+ }
82
+ &:not([value='']):hover {
83
+ background-color: @white;
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+
90
+ //Calender
91
+ .@{calendar-prefix-cls}{
92
+ &-footer {
93
+ &-extra {
94
+ .@{ant-prefix}-tag{
95
+ color: @text-color;
96
+ border: none;
97
+ background-color: @white;
98
+ &:hover{
99
+ color: @blue-6;
100
+ }
101
+ }
102
+ }
103
+ }
104
+
105
+ thead tr{
106
+ border-bottom: none;
107
+ }
108
+ table th{
109
+ background-color: @white;
110
+ }
111
+ }
112
+
113
+ //RangePicker
114
+ .@{calendar-prefix-cls}-range{
115
+ .@{calendar-prefix-cls}-in-range-cell,
116
+ .@{calendar-prefix-cls}-selected-start-date,
117
+ .@{calendar-prefix-cls}-selected-end-date {
118
+ position: relative;
119
+ border-radius: 0;
120
+ > div {
121
+ position: relative;
122
+ z-index: 1;
123
+ }
124
+ &::before {
125
+ position: absolute;
126
+ top: 3px;
127
+ right: 0;
128
+ bottom: 3px;
129
+ left: 0;
130
+ display: block;
131
+ background: @item-active-bg;
132
+ border: 0;
133
+ border-radius: 0;
134
+ content: '';
135
+ }
136
+ }
137
+ .@{calendar-prefix-cls}-selected-start-date{
138
+ &::before{
139
+ border-radius: @border-radius-base 0 0 @border-radius-base;
140
+ }
141
+ &::after {
142
+ position: absolute;
143
+ bottom: -2px;
144
+ left: 16px;
145
+ display: block;
146
+ background: @blue-6;
147
+ border: 0;
148
+ border-radius: 50%;
149
+ width: 4px;
150
+ height: 4px;
151
+ content: '';
152
+ }
153
+ }
154
+ //ant-calendar-last-day-of-month
155
+ //ant-calendar-last-month-cell ant-calendar-last-day-of-month
156
+ .@{calendar-prefix-cls}-selected-end-date{
157
+ &::before{
158
+ border-radius: 0 @border-radius-base @border-radius-base 0;
159
+ }
160
+ }
161
+ .@{calendar-prefix-cls}-selected-start-date.@{calendar-prefix-cls}-selected-end-date{
162
+ &::before{
163
+ border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
164
+ }
165
+ }
166
+ tr .@{calendar-prefix-cls}-in-range-cell:first-child{
167
+ &::before{
168
+ border-radius: @border-radius-base 0 0 @border-radius-base;
169
+ }
170
+ }
171
+ tr .@{calendar-prefix-cls}-selected-end-date:first-child,
172
+ tr .@{calendar-prefix-cls}-selected-start-date:last-child{
173
+ &::before{
174
+ border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
175
+ }
176
+ }
177
+ tr .@{calendar-prefix-cls}-in-range-cell:last-child{
178
+ &::before{
179
+ border-radius: 0 @border-radius-base @border-radius-base 0;
180
+ }
181
+ }
182
+ .@{calendar-prefix-cls}-cell{
183
+ height: 38px;
184
+ }
185
+ }
186
+
187
+ //MonthPanel
188
+ .@{calendar-prefix-cls}-month-panel-month {
189
+ border-radius: @border-radius-base;
190
+ }
191
+
192
+ //WeekPicker
193
+ .@{calendar-prefix-cls}-week-number {
194
+ &-cell {
195
+ opacity: 1;
196
+ font-weight: normal;
197
+ color: @text-color-tertiary !important;
198
+ }
199
+ .@{calendar-prefix-cls}-body tr {
200
+ cursor: pointer;
201
+ transition: all 0.3s;
202
+ background: @white;
203
+ .@{calendar-prefix-cls}-date{
204
+ width: auto;
205
+ border-radius: 0;
206
+ font-weight: 500;
207
+ }
208
+ &:hover {
209
+ background: @white;
210
+ td:nth-child(2){
211
+ .@{calendar-prefix-cls}-date{
212
+ border-radius: @border-radius-base 0 0 @border-radius-base;
213
+ }
214
+ }
215
+ td:last-child{
216
+ .@{calendar-prefix-cls}-date{
217
+ border-radius: 0 @border-radius-base @border-radius-base 0;
218
+ }
219
+ }
220
+ .@{calendar-prefix-cls}-cell{
221
+ &::before{
222
+ top: 8px;
223
+ bottom: 8px;
224
+ }
225
+ .@{calendar-prefix-cls}-date{
226
+ background: @background-color-base;
227
+ &:hover{
228
+ background: @background-color-base;
229
+ }
230
+ }
231
+ .@{calendar-prefix-cls}-selected-day{
232
+ background: @background-color-base;
233
+ }
234
+ }
235
+ .@{calendar-prefix-cls}-week-number-cell{
236
+ background: @white;
237
+ }
238
+ }
239
+ .@{calendar-prefix-cls}-selected-day .@{calendar-prefix-cls}-date,
240
+ .@{calendar-prefix-cls}-selected-day:hover .@{calendar-prefix-cls}-date {
241
+ color: @text-color;
242
+ background: transparent;
243
+ }
244
+ &.@{calendar-prefix-cls}-active-week {
245
+ background: transparent;
246
+ td:nth-child(2){
247
+ .@{calendar-prefix-cls}-selected-day,.@{calendar-prefix-cls}-date{
248
+ border-radius: @border-radius-base 0 0 @border-radius-base;
249
+ }
250
+ }
251
+ td:last-child{
252
+ .@{calendar-prefix-cls}-selected-day,.@{calendar-prefix-cls}-date{
253
+ border-radius: 0 @border-radius-base @border-radius-base 0;
254
+ }
255
+ }
256
+ .@{calendar-prefix-cls}-cell{
257
+ font-weight: bold;
258
+ //background: @primary-color;
259
+ .@{calendar-prefix-cls}-date{
260
+ color: @text-color-inverse;
261
+ background: @primary-color;
262
+ &:hover{
263
+ color: @text-color-inverse;
264
+ background: @primary-color;
265
+ }
266
+ }
267
+ .@{calendar-prefix-cls}-selected-day{
268
+ background: @primary-color;
269
+ }
270
+ }
271
+ }
272
+ .@{calendar-prefix-cls}-today .@{calendar-prefix-cls}-date{
273
+ //color: @text-color;
274
+ //font-weight: normal;
275
+ border-color: transparent;
276
+ }
277
+ }
278
+ .@{calendar-prefix-cls}-cell{
279
+ height: 38px;
280
+ position: relative;
281
+ &::before {
282
+ position: absolute;
283
+ top: 3px;
284
+ right: 0;
285
+ bottom: 3px;
286
+ left: 0;
287
+ display: block;
288
+ border: 0;
289
+ border-radius: 0;
290
+ content: '';
291
+ }
292
+ }
293
+ }
294
+
@@ -85,9 +85,9 @@
85
85
  }
86
86
 
87
87
  .@{calendar-prefix-cls}-today
88
- :not(.@{calendar-prefix-cls}-disabled-cell)
89
- :not(.@{calendar-prefix-cls}-last-month-cell)
90
- :not(.@{calendar-prefix-cls}-next-month-btn-day) {
88
+ :not(.@{calendar-prefix-cls}-disabled-cell)
89
+ :not(.@{calendar-prefix-cls}-last-month-cell)
90
+ :not(.@{calendar-prefix-cls}-next-month-btn-day) {
91
91
  .@{calendar-prefix-cls}-date {
92
92
  color: @primary-color;
93
93
  background: @primary-2;
@@ -10,60 +10,103 @@ var __rest = this && this.__rest || function (s, e) {
10
10
  * @Author: 周泽飞 zefei.zhou@tongdun.net
11
11
  * @Date: 2023-05-05 15:48:09
12
12
  * @LastEditors: 周泽飞 zefei.zhou@tongdun.net
13
- * @LastEditTime: 2024-01-18 15:27:45
13
+ * @LastEditTime: 2024-03-04 16:49:24
14
14
  * @FilePath: /tntd/packages/tntd/src/descriptions/descriptions.tsx
15
15
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
16
16
  */
17
17
  import React, { forwardRef } from 'react';
18
- import 'antd/es/locale-provider/LocaleReceiver';
19
18
  import classNames from 'classnames';
20
19
  import { ConfigConsumer } from 'antd/es/config-provider';
21
20
  import { default as AntdDescriptions } from 'antd/es/descriptions';
22
21
  import Ellipsis from '../ellipsis';
22
+ import { doUpperTitle } from '../utils';
23
+ import { getLanguage } from '../prev-locale';
23
24
  export * from 'antd/es/descriptions';
24
25
  export const Descriptions = forwardRef((_a, ref) => {
25
26
  var {
26
27
  className,
27
- tdType,
28
- theme,
28
+ tdType = true,
29
+ titleWeight,
30
+ titleType,
29
31
  colon,
30
- children
32
+ children,
33
+ undoUpper = false,
34
+ upperCaseIgnore = [],
35
+ title
31
36
  } = _a,
32
- rest = __rest(_a, ["className", "tdType", "theme", "colon", "children"]);
33
- return React.createElement(ConfigConsumer, null, () => {
37
+ rest = __rest(_a, ["className", "tdType", "titleWeight", "titleType", "colon", "children", "undoUpper", "upperCaseIgnore", "title"]);
38
+ return React.createElement(ConfigConsumer, null, ({
39
+ getPrefixCls
40
+ }) => {
41
+ const prefixCls = getPrefixCls('descriptions');
34
42
  const {
35
43
  layout,
36
44
  ellipsis,
45
+ ellipsisLine = 1,
46
+ hideTooltip = false,
37
47
  bordered
38
48
  } = rest || {};
39
49
  // 非垂直 且 同盾
40
50
  const tdDescriptions = layout !== 'vertical' && tdType;
51
+ const tntPrefixCls = 'tnt-descriptions';
41
52
  return React.createElement(AntdDescriptions, Object.assign({
42
- className: classNames(`theme-${theme || (bordered ? 'line' : 'block')}`, {
43
- 'tntd-descriptions-no-border': !bordered
53
+ className: classNames(`${prefixCls}-${getLanguage()}`, {
54
+ [tntPrefixCls]: tdDescriptions
55
+ }, `${tntPrefixCls}-title-theme${titleType ? '-' + titleType : ''}`, {
56
+ [tntPrefixCls + '-title-weight']: titleWeight
44
57
  }, {
45
- 'tntd-descriptions': tdDescriptions
46
- }, {
47
- 'tntd-descriptions-ellipsis': ellipsis
48
- }, className)
58
+ [tntPrefixCls + '-ellipsis']: ellipsis
59
+ }, className),
60
+ title: undoUpper ? title : doUpperTitle(title, upperCaseIgnore)
49
61
  }, rest, {
50
- colon: tdDescriptions && !bordered ? false : colon
51
- }), tdDescriptions && !bordered ? React.Children.map(children, child => {
62
+ colon: tdDescriptions ? false : colon,
63
+ ref: ref
64
+ }), tdDescriptions && !bordered && !hideTooltip && React.Children.map(children, child => {
52
65
  if (React.isValidElement(child)) {
53
66
  const childProps = child.props || {};
54
67
  const {
55
68
  label,
56
- children
69
+ labelPrefix,
70
+ children: childContext
57
71
  } = childProps;
58
72
  return React.createElement("div", null, React.createElement(Ellipsis, {
59
- className: "tntd-description-item",
73
+ lines: ellipsisLine,
74
+ className: "tnt-descriptions-item",
60
75
  prefix: React.createElement("div", {
61
- className: "tntd-description-label-title"
62
- }, label),
63
- title: child
76
+ className: "tnt-descriptions-label-title"
77
+ }, React.createElement(Ellipsis, {
78
+ prefix: labelPrefix ? React.createElement("span", {
79
+ className: "tnt-descriptions-label-tag"
80
+ }, labelPrefix) : null,
81
+ lines: ellipsisLine,
82
+ title: label
83
+ })),
84
+ title: childContext
85
+ }));
86
+ }
87
+ }), tdDescriptions && bordered && ellipsis && !hideTooltip && React.Children.map(children, child => {
88
+ if (React.isValidElement(child)) {
89
+ const childProps = child.props || {};
90
+ const {
91
+ label,
92
+ labelPrefix,
93
+ children: childContext
94
+ } = childProps;
95
+ return React.cloneElement(child, Object.assign(Object.assign({}, child.props), {
96
+ label: React.createElement(Ellipsis, {
97
+ prefix: labelPrefix ? React.createElement("span", {
98
+ className: "tnt-descriptions-label-tag"
99
+ }, labelPrefix) : null,
100
+ lines: ellipsisLine,
101
+ title: label
102
+ }),
103
+ children: React.createElement(Ellipsis, {
104
+ lines: ellipsisLine,
105
+ title: childContext
106
+ })
64
107
  }));
65
108
  }
66
- }) : children);
109
+ }), (!tdDescriptions || bordered && !ellipsis || hideTooltip) && children);
67
110
  });
68
111
  });
69
112
  Descriptions.Item = AntdDescriptions.Item;
@@ -1 +1 @@
1
- {"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../src/descriptions/descriptions.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAA2B,wCAAwC,CAAA;AAGnE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAElE,OAAO,QAAQ,MAAM,aAAa,CAAA;AAElC,cAAc,sBAAsB,CAAA;AAoBpC,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAGpC,CAAC,EAAsD,EAAE,GAAG,EAAE,EAAE;QAA/D,EAAE,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,CACK,CACpB,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAA0B,CAAA;AAE3B,YAAY,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-05-05 15:48:09\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2024-01-18 15:27:45\n * @FilePath: /tntd/packages/tntd/src/descriptions/descriptions.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver'\nimport type { DescriptionsProps as AntdDescriptionsProps } from 'antd/es/descriptions'\nimport type { DescriptionsItemProps as AntdDescriptionsItemProps } from 'antd/es/descriptions'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport { default as AntdDescriptions } from 'antd/es/descriptions'\n\nimport Ellipsis from '../ellipsis'\n\nexport * from 'antd/es/descriptions'\n\nexport interface DescriptionsProps extends AntdDescriptionsProps {\n tdType: boolean\n ellipsis: boolean\n theme: string\n}\n\nexport interface DescriptionsItemProps extends AntdDescriptionsItemProps {\n tdType: boolean\n theme: string\n}\n\ninterface DescriptionsComponent\n extends React.ForwardRefExoticComponent<\n DescriptionsProps & React.RefAttributes<AntdDescriptions>\n > {\n Item: typeof AntdDescriptions.Item\n}\n\nexport const Descriptions = forwardRef<\n AntdDescriptions,\n DescriptionsProps & { capitalize?: boolean }\n>(({ className, tdType, theme, colon, children, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n const { layout, ellipsis, bordered } = rest || {}\n // 非垂直 且 同盾\n const tdDescriptions = layout !== 'vertical' && tdType\n return (\n <AntdDescriptions\n className={classNames(\n `theme-${theme || (bordered ? 'line' : 'block')}`,\n {\n 'tntd-descriptions-no-border': !bordered,\n },\n {\n 'tntd-descriptions': tdDescriptions,\n },\n {\n 'tntd-descriptions-ellipsis': ellipsis,\n },\n className\n )}\n {...rest}\n colon={tdDescriptions && !bordered ? false : colon}\n >\n {/* 非边框的同盾内置样式 */}\n {tdDescriptions && !bordered\n ? React.Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n const childProps = (child.props || {}) as any\n const { label, children } = childProps\n return (\n <div>\n <Ellipsis\n className=\"tntd-description-item\"\n prefix={<div className=\"tntd-description-label-title\">{label}</div>}\n title={child}\n />\n </div>\n )\n }\n })\n : children}\n </AntdDescriptions>\n )\n }}\n </ConfigConsumer>\n )\n}) as DescriptionsComponent\n\nDescriptions.Item = AntdDescriptions.Item\n"]}
1
+ {"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../src/descriptions/descriptions.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAElE,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,cAAc,sBAAsB,CAAA;AAyBpC,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAIpC,CACE,EAWC,EACD,GAAG,EACH,EAAE;QAbF,EACE,SAAS,EACT,MAAM,GAAG,IAAI,EACb,WAAW,EACX,SAAS,EACT,KAAK,EACL,QAAQ,EACR,SAAS,GAAG,KAAK,EACjB,eAAe,GAAG,EAAE,EACpB,KAAK,OAEN,EADI,IAAI,cAVT,iHAWC,CADQ;IAIT,OAAO,CACL,oBAAC,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YAGH,CAAC,CAAC,cAAc,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,IAAI,WAAW,CAAC,IAAI,QAAQ,CACvD,CACpB,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACuB,CAAA;AAE1B,YAAY,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-05-05 15:48:09\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2024-03-04 16:49:24\n * @FilePath: /tntd/packages/tntd/src/descriptions/descriptions.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type { DescriptionsProps as AntdDescriptionsProps } from 'antd/es/descriptions'\nimport type { DescriptionsItemProps as AntdDescriptionsItemProps } from 'antd/es/descriptions'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport { default as AntdDescriptions } from 'antd/es/descriptions'\n\nimport Ellipsis from '../ellipsis'\nimport { doUpperTitle } from '../utils'\nimport { getLanguage } from '../prev-locale'\n\nexport * from 'antd/es/descriptions'\n\nexport interface DescriptionsProps extends AntdDescriptionsProps {\n tdType?: boolean\n ellipsis?: boolean\n ellipsisLine?: number\n hideTooltip?: boolean\n undoUpper?: boolean\n upperCaseIgnore?: Array<string>\n titleType?: string\n titleWeight?: boolean\n}\n\nexport interface DescriptionsItemProps extends AntdDescriptionsItemProps {\n labelPrefix?: React.ReactNode\n}\n\ndeclare const DescriptionsItem: React.FC<DescriptionsItemProps>\ninterface DescriptionsComponent\n extends React.ForwardRefExoticComponent<\n DescriptionsProps & React.RefAttributes<AntdDescriptions>\n > {\n Item: typeof DescriptionsItem\n}\n\nexport const Descriptions = forwardRef<\n AntdDescriptions,\n DescriptionsProps & { capitalize?: boolean }\n>(\n (\n {\n className,\n tdType = true,\n titleWeight,\n titleType,\n colon,\n children,\n undoUpper = false,\n upperCaseIgnore = [],\n title,\n ...rest\n },\n ref\n ) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('descriptions')\n const { layout, ellipsis, ellipsisLine = 1, hideTooltip = false, bordered } = rest || {}\n // 非垂直 且 同盾\n const tdDescriptions = layout !== 'vertical' && tdType\n\n const tntPrefixCls = 'tnt-descriptions'\n\n return (\n <AntdDescriptions\n className={classNames(\n `${prefixCls}-${getLanguage()}`,\n {\n [tntPrefixCls]: tdDescriptions,\n },\n `${tntPrefixCls}-title-theme${titleType ? '-' + titleType : ''}`,\n {\n [tntPrefixCls + '-title-weight']: titleWeight,\n },\n {\n [tntPrefixCls + '-ellipsis']: ellipsis,\n },\n className\n )}\n title={undoUpper ? title : doUpperTitle(title, upperCaseIgnore)} // 默认转大写\n {...rest}\n colon={tdDescriptions ? false : colon}\n ref={ref}\n >\n {/*同盾描述框 非边框 开启默认tooltip */}\n {tdDescriptions &&\n !bordered &&\n !hideTooltip &&\n React.Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n const childProps = (child.props || {}) as any\n const { label, labelPrefix, children: childContext } = childProps\n return (\n <div>\n <Ellipsis\n lines={ellipsisLine}\n className=\"tnt-descriptions-item\"\n prefix={\n <div className=\"tnt-descriptions-label-title\">\n <Ellipsis\n prefix={\n labelPrefix ? (\n <span className=\"tnt-descriptions-label-tag\">\n {labelPrefix}\n </span>\n ) : null\n }\n lines={ellipsisLine}\n title={label}\n />\n </div>\n }\n title={childContext}\n />\n </div>\n )\n }\n })}\n\n {/*同盾描述框 有边框 不换行 开启默认tooltip */}\n {tdDescriptions &&\n bordered &&\n ellipsis &&\n !hideTooltip &&\n React.Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n const childProps = (child.props || {}) as any\n const { label, labelPrefix, children: childContext } = childProps\n return React.cloneElement(child, {\n ...child.props,\n label: (\n <Ellipsis\n prefix={\n labelPrefix ? (\n <span className=\"tnt-descriptions-label-tag\">{labelPrefix}</span>\n ) : null\n }\n lines={ellipsisLine}\n title={label}\n />\n ),\n children: <Ellipsis lines={ellipsisLine} title={childContext} />,\n })\n }\n })}\n\n {/* 非同盾模式下 或者 带边框但换行 或者 不开启默认tooltip 走默认逻辑 */}\n {(!tdDescriptions || (bordered && !ellipsis) || hideTooltip) && children}\n </AntdDescriptions>\n )\n }}\n </ConfigConsumer>\n )\n }\n) as DescriptionsComponent\n\nDescriptions.Item = AntdDescriptions.Item\n"]}