tntd 3.0.27 → 3.0.28

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 (659) hide show
  1. package/es/alert/index.js +1 -1
  2. package/es/alert/index.js.map +1 -1
  3. package/es/alert/style/index.less +0 -1
  4. package/es/array-input/index.js +12 -14
  5. package/es/array-input/index.js.map +1 -1
  6. package/es/button/button.js +3 -30
  7. package/es/button/button.js.map +1 -1
  8. package/es/button/button.less +2 -72
  9. package/es/cascader/index.js +6 -3
  10. package/es/cascader/index.js.map +1 -1
  11. package/es/checkbox/index.js +7 -3
  12. package/es/checkbox/index.js.map +1 -1
  13. package/es/date-picker/index.js +12 -6
  14. package/es/date-picker/index.js.map +1 -1
  15. package/es/date-picker/style/Calendar.less +1 -1
  16. package/es/descriptions/descriptions.less +0 -1
  17. package/es/descriptions/index.js +2 -2
  18. package/es/descriptions/index.js.map +1 -1
  19. package/es/drawer/drawer.js +5 -5
  20. package/es/drawer/drawer.js.map +1 -1
  21. package/es/drawer/index.less +1 -15
  22. package/es/drawer/style/drawer.less +3 -18
  23. package/es/drawer/style/index.js +1 -2
  24. package/es/drawer/style/index.js.map +1 -1
  25. package/es/form/style/index.less +0 -6
  26. package/es/handle/index.js +6 -9
  27. package/es/handle/index.js.map +1 -1
  28. package/es/handle/index.less +0 -16
  29. package/es/input/index.js +1 -1
  30. package/es/input/index.js.map +1 -1
  31. package/es/input/input.js +30 -21
  32. package/es/input/input.js.map +1 -1
  33. package/es/input/input.less +20 -123
  34. package/es/input-number/index.js +29 -4
  35. package/es/input-number/index.js.map +1 -1
  36. package/es/locale/en_US.js +5 -9
  37. package/es/locale/en_US.js.map +1 -1
  38. package/es/locale/zh_CN.js +3 -7
  39. package/es/locale/zh_CN.js.map +1 -1
  40. package/es/message/message.less +1 -2
  41. package/es/modal/index.js +3 -2
  42. package/es/modal/index.js.map +1 -1
  43. package/es/modal/modal.js +16 -103
  44. package/es/modal/modal.js.map +1 -1
  45. package/es/modal/style/index.js +1 -2
  46. package/es/modal/style/index.js.map +1 -1
  47. package/es/modal/style/modal.less +3 -15
  48. package/es/notification/notification.less +2 -27
  49. package/es/notification/style/index.less +0 -1
  50. package/es/page-container/index.js +1 -1
  51. package/es/page-container/index.js.map +1 -1
  52. package/es/page-container/index.less +2 -3
  53. package/es/page-loading/index.js +1 -1
  54. package/es/page-loading/index.js.map +1 -1
  55. package/es/popconfirm/index.js +2 -2
  56. package/es/popconfirm/index.js.map +1 -1
  57. package/es/popconfirm/style/index.js +1 -2
  58. package/es/popconfirm/style/index.js.map +1 -1
  59. package/es/popover/index.js +2 -2
  60. package/es/popover/index.js.map +1 -1
  61. package/es/popover/style/index.js +0 -1
  62. package/es/popover/style/index.js.map +1 -1
  63. package/es/preview-text/index.js.map +1 -1
  64. package/es/progress/index.js +2 -2
  65. package/es/progress/index.js.map +1 -1
  66. package/es/query-list-scene/List.js +1 -3
  67. package/es/query-list-scene/List.js.map +1 -1
  68. package/es/query-list-scene/QueryForm.js +3 -1
  69. package/es/query-list-scene/QueryForm.js.map +1 -1
  70. package/es/query-list-scene/index.less +7 -7
  71. package/es/radio/index.js +5 -3
  72. package/es/radio/index.js.map +1 -1
  73. package/es/segmented/index.less +112 -126
  74. package/es/select/index.js +1 -1
  75. package/es/select/index.js.map +1 -1
  76. package/es/select/select.js +6 -5
  77. package/es/select/select.js.map +1 -1
  78. package/es/select/select.less +9 -83
  79. package/es/select/style/index.less +4 -4
  80. package/es/spin/index.js +2 -3
  81. package/es/spin/index.js.map +1 -1
  82. package/es/steps/index.js +2 -9
  83. package/es/steps/index.js.map +1 -1
  84. package/es/steps/stepStyle/index.less +8 -173
  85. package/es/steps/stepStyle/nav.less +259 -51
  86. package/es/steps/steps.js +27 -53
  87. package/es/steps/steps.js.map +1 -1
  88. package/es/steps/style/index.js +0 -8
  89. package/es/steps/style/index.js.map +1 -1
  90. package/es/style/themes/default.less +5 -6
  91. package/es/switch/style/index.js +1 -2
  92. package/es/switch/style/index.js.map +1 -1
  93. package/es/switch/switch.js +2 -40
  94. package/es/switch/switch.js.map +1 -1
  95. package/es/table/hooks/use-expand-fixed.js.map +1 -1
  96. package/es/table/resizableTable/index.less +18 -0
  97. package/es/table/style/index.less +21 -19
  98. package/es/table/style/size.less +12 -11
  99. package/es/table/table.js +39 -65
  100. package/es/table/table.js.map +1 -1
  101. package/es/table/table.less +6 -31
  102. package/es/table/table.stories.js +3 -3
  103. package/es/table/table.stories.js.map +1 -1
  104. package/es/table-container/index.js +2 -5
  105. package/es/table-container/index.js.map +1 -1
  106. package/es/table-container/index.less +1 -4
  107. package/es/tabs/index.js +0 -1
  108. package/es/tabs/index.js.map +1 -1
  109. package/es/tabs/style/index.js.map +1 -1
  110. package/es/tabs/style/index.less +0 -1
  111. package/es/tabs/tabs.js +3 -27
  112. package/es/tabs/tabs.js.map +1 -1
  113. package/es/tabs-container/index.js +1 -1
  114. package/es/tabs-container/index.js.map +1 -1
  115. package/es/tag/tag.less +3 -4
  116. package/es/time-picker/index.js +2 -2
  117. package/es/time-picker/index.js.map +1 -1
  118. package/es/title/index.less +45 -47
  119. package/es/tntd-action/index.js +6 -69
  120. package/es/tntd-action/index.js.map +1 -1
  121. package/es/tntd-cascader/AntdCascader/index.less +29 -35
  122. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +1 -1
  123. package/es/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
  124. package/es/tntd-select/index.js +4 -3
  125. package/es/tntd-select/index.js.map +1 -1
  126. package/es/tntd-virtual-tree/index.less +1 -2
  127. package/es/tntd-virtual-tree-select/index.less +14 -1
  128. package/es/tooltip/index.less +5 -4
  129. package/es/tooltip/style/index.js +1 -2
  130. package/es/tooltip/style/index.js.map +1 -1
  131. package/es/upload/index.js +191 -3
  132. package/es/upload/index.js.map +1 -1
  133. package/es/upload/style/index.less +1 -1
  134. package/es/utils/lang.js +2 -8
  135. package/es/utils/lang.js.map +1 -1
  136. package/lib/_util/context.js +1 -1
  137. package/lib/_util/defaultRenderEmpty.js +1 -1
  138. package/lib/_util/hooks/useFlexGapSupport.js +4 -4
  139. package/lib/_util/hooks/useForceUpdate.js +4 -4
  140. package/lib/_util/responsiveObserve.js +1 -1
  141. package/lib/_util/styleChecker.js +1 -1
  142. package/lib/actions/index.js +1 -1
  143. package/lib/alert/index.d.ts +1 -1
  144. package/lib/alert/index.d.ts.map +1 -1
  145. package/lib/alert/index.js +8 -7
  146. package/lib/alert/index.js.map +1 -1
  147. package/lib/alert/style/index.less +0 -1
  148. package/lib/array-input/index.d.ts.map +1 -1
  149. package/lib/array-input/index.js +23 -26
  150. package/lib/array-input/index.js.map +1 -1
  151. package/lib/button/button.d.ts +4 -9
  152. package/lib/button/button.d.ts.map +1 -1
  153. package/lib/button/button.js +4 -28
  154. package/lib/button/button.js.map +1 -1
  155. package/lib/button/button.less +2 -72
  156. package/lib/cascader/index.d.ts +7 -3
  157. package/lib/cascader/index.d.ts.map +1 -1
  158. package/lib/cascader/index.js +10 -5
  159. package/lib/cascader/index.js.map +1 -1
  160. package/lib/check-card/group.js +8 -8
  161. package/lib/check-card/index.js +6 -6
  162. package/lib/checkbox/checkbox-group.js +1 -1
  163. package/lib/checkbox/index.d.ts +3 -3
  164. package/lib/checkbox/index.d.ts.map +1 -1
  165. package/lib/checkbox/index.js +17 -2
  166. package/lib/checkbox/index.js.map +1 -1
  167. package/lib/color-picker/ColorPicker.js +6 -6
  168. package/lib/color-picker/index.js +1 -1
  169. package/lib/columns/index.js +1 -1
  170. package/lib/config-provider/config-provider.js +1 -1
  171. package/lib/date-picker/index.d.ts +6 -2
  172. package/lib/date-picker/index.d.ts.map +1 -1
  173. package/lib/date-picker/index.js +37 -6
  174. package/lib/date-picker/index.js.map +1 -1
  175. package/lib/date-picker/style/Calendar.less +1 -1
  176. package/lib/descriptions/descriptions.js +5 -5
  177. package/lib/descriptions/descriptions.less +0 -1
  178. package/lib/descriptions/index.d.ts +1 -1
  179. package/lib/descriptions/index.d.ts.map +1 -1
  180. package/lib/descriptions/index.js +7 -7
  181. package/lib/descriptions/index.js.map +1 -1
  182. package/lib/development-login/LoginModal.js +6 -6
  183. package/lib/development-login/index.js +4 -4
  184. package/lib/drawer/drawer.d.ts +3 -3
  185. package/lib/drawer/drawer.d.ts.map +1 -1
  186. package/lib/drawer/drawer.js +7 -7
  187. package/lib/drawer/drawer.js.map +1 -1
  188. package/lib/drawer/index.less +1 -15
  189. package/lib/drawer/style/drawer.less +3 -18
  190. package/lib/drawer/style/index.d.ts +0 -1
  191. package/lib/drawer/style/index.d.ts.map +1 -1
  192. package/lib/drawer/style/index.js +1 -2
  193. package/lib/drawer/style/index.js.map +1 -1
  194. package/lib/ellipsis/Svg/CopySVG.js +1 -1
  195. package/lib/ellipsis/Svg/TickSVG.js +1 -1
  196. package/lib/ellipsis/index.js +5 -5
  197. package/lib/empty/empty.js +2 -2
  198. package/lib/empty/empty.stories.js +2 -2
  199. package/lib/exception/exception.js +1 -1
  200. package/lib/form/form.js +2 -2
  201. package/lib/form/style/index.less +0 -6
  202. package/lib/grid-v4/col.js +2 -2
  203. package/lib/grid-v4/hooks/useBreakpoint.js +1 -1
  204. package/lib/grid-v4/index.js +1 -1
  205. package/lib/grid-v4/row.js +6 -6
  206. package/lib/handle/index.d.ts.map +1 -1
  207. package/lib/handle/index.js +11 -16
  208. package/lib/handle/index.js.map +1 -1
  209. package/lib/handle/index.less +0 -16
  210. package/lib/handle-icon/index.js +11 -11
  211. package/lib/icon/IconFont.js +1 -1
  212. package/lib/icon/components/Icon.js +9 -9
  213. package/lib/icon/components/index.js +1 -1
  214. package/lib/icon/components/utils.js +3 -3
  215. package/lib/icon/index.js +7 -7
  216. package/lib/icon/twoTonePrimaryColor.js +1 -1
  217. package/lib/icon/utils.js +1 -1
  218. package/lib/img/Contain.js +1 -1
  219. package/lib/img/Cover.js +5 -5
  220. package/lib/img/index.js +5 -5
  221. package/lib/index.js +1 -1
  222. package/lib/input/index.d.ts +1 -1
  223. package/lib/input/index.d.ts.map +1 -1
  224. package/lib/input/index.js +7 -7
  225. package/lib/input/index.js.map +1 -1
  226. package/lib/input/input.d.ts +5 -5
  227. package/lib/input/input.d.ts.map +1 -1
  228. package/lib/input/input.js +22 -13
  229. package/lib/input/input.js.map +1 -1
  230. package/lib/input/input.less +20 -123
  231. package/lib/input-number/index.d.ts +10 -4
  232. package/lib/input-number/index.d.ts.map +1 -1
  233. package/lib/input-number/index.js +32 -5
  234. package/lib/input-number/index.js.map +1 -1
  235. package/lib/label/index.js +2 -2
  236. package/lib/loading-button/index.js +5 -5
  237. package/lib/locale/default.d.ts +3 -7
  238. package/lib/locale/default.d.ts.map +1 -1
  239. package/lib/locale/default.js +1 -1
  240. package/lib/locale/en_US.d.ts +3 -7
  241. package/lib/locale/en_US.d.ts.map +1 -1
  242. package/lib/locale/en_US.js +6 -10
  243. package/lib/locale/en_US.js.map +1 -1
  244. package/lib/locale/zh_CN.d.ts +3 -7
  245. package/lib/locale/zh_CN.d.ts.map +1 -1
  246. package/lib/locale/zh_CN.js +4 -8
  247. package/lib/locale/zh_CN.js.map +1 -1
  248. package/lib/message/message.less +1 -2
  249. package/lib/modal/index.d.ts +1 -0
  250. package/lib/modal/index.d.ts.map +1 -1
  251. package/lib/modal/index.js +3 -2
  252. package/lib/modal/index.js.map +1 -1
  253. package/lib/modal/modal.d.ts.map +1 -1
  254. package/lib/modal/modal.js +16 -91
  255. package/lib/modal/modal.js.map +1 -1
  256. package/lib/modal/style/index.d.ts +0 -1
  257. package/lib/modal/style/index.d.ts.map +1 -1
  258. package/lib/modal/style/index.js +1 -2
  259. package/lib/modal/style/index.js.map +1 -1
  260. package/lib/modal/style/modal.less +3 -15
  261. package/lib/notification/assets/index.js +1 -1
  262. package/lib/notification/assets/svg-error-tip.d.ts +1 -1
  263. package/lib/notification/assets/svg-success-tip.d.ts +1 -1
  264. package/lib/notification/index.js +1 -1
  265. package/lib/notification/notification.js +1 -1
  266. package/lib/notification/notification.less +2 -27
  267. package/lib/notification/style/index.less +0 -1
  268. package/lib/page/Box.js +1 -1
  269. package/lib/page/index.js +7 -7
  270. package/lib/page-container/index.js +2 -2
  271. package/lib/page-container/index.js.map +1 -1
  272. package/lib/page-container/index.less +2 -3
  273. package/lib/page-loading/index.js +2 -2
  274. package/lib/page-loading/index.js.map +1 -1
  275. package/lib/popconfirm/index.d.ts +2 -2
  276. package/lib/popconfirm/index.d.ts.map +1 -1
  277. package/lib/popconfirm/index.js +1 -1
  278. package/lib/popconfirm/index.js.map +1 -1
  279. package/lib/popconfirm/style/index.d.ts +0 -1
  280. package/lib/popconfirm/style/index.d.ts.map +1 -1
  281. package/lib/popconfirm/style/index.js +1 -2
  282. package/lib/popconfirm/style/index.js.map +1 -1
  283. package/lib/popover/index.d.ts +2 -2
  284. package/lib/popover/index.d.ts.map +1 -1
  285. package/lib/popover/index.js +2 -2
  286. package/lib/popover/index.js.map +1 -1
  287. package/lib/popover/style/index.d.ts +0 -1
  288. package/lib/popover/style/index.d.ts.map +1 -1
  289. package/lib/popover/style/index.js +1 -2
  290. package/lib/popover/style/index.js.map +1 -1
  291. package/lib/preview-text/index.d.ts +1 -1
  292. package/lib/preview-text/index.d.ts.map +1 -1
  293. package/lib/preview-text/index.js +7 -7
  294. package/lib/preview-text/index.js.map +1 -1
  295. package/lib/progress/index.d.ts +2 -2
  296. package/lib/progress/index.d.ts.map +1 -1
  297. package/lib/progress/index.js +1 -1
  298. package/lib/progress/index.js.map +1 -1
  299. package/lib/query-form/Field/Checkbox.js +1 -1
  300. package/lib/query-form/Field/Select.js +6 -6
  301. package/lib/query-form/Field/SelectInput.js +6 -6
  302. package/lib/query-form/Field/fieldsMap.js +1 -1
  303. package/lib/query-form/Field/index.js +10 -10
  304. package/lib/query-form/createActions.js +1 -1
  305. package/lib/query-form/index.js +10 -10
  306. package/lib/query-form/useForm.js +1 -1
  307. package/lib/query-list-scene/List.d.ts.map +1 -1
  308. package/lib/query-list-scene/List.js +14 -16
  309. package/lib/query-list-scene/List.js.map +1 -1
  310. package/lib/query-list-scene/QueryForm.js +12 -11
  311. package/lib/query-list-scene/QueryForm.js.map +1 -1
  312. package/lib/query-list-scene/QueryListScene.js +10 -10
  313. package/lib/query-list-scene/Title.js +1 -1
  314. package/lib/query-list-scene/Toolbar.js +2 -2
  315. package/lib/query-list-scene/createActions.js +1 -1
  316. package/lib/query-list-scene/index.js +1 -1
  317. package/lib/query-list-scene/index.less +7 -7
  318. package/lib/query-list-scene/useActions.js +1 -1
  319. package/lib/radio/index.d.ts +2 -3
  320. package/lib/radio/index.d.ts.map +1 -1
  321. package/lib/radio/index.js +5 -2
  322. package/lib/radio/index.js.map +1 -1
  323. package/lib/radio/radio-group.js +1 -1
  324. package/lib/render-empty/render-empty.js +1 -1
  325. package/lib/segmented/index.d.ts +1 -1
  326. package/lib/segmented/index.js +2 -2
  327. package/lib/segmented/index.less +112 -126
  328. package/lib/select/index.d.ts +1 -1
  329. package/lib/select/index.d.ts.map +1 -1
  330. package/lib/select/index.js +6 -6
  331. package/lib/select/index.js.map +1 -1
  332. package/lib/select/select.d.ts +1 -1
  333. package/lib/select/select.d.ts.map +1 -1
  334. package/lib/select/select.js +6 -5
  335. package/lib/select/select.js.map +1 -1
  336. package/lib/select/select.less +9 -83
  337. package/lib/select/style/index.less +4 -4
  338. package/lib/spin/index.d.ts +2 -3
  339. package/lib/spin/index.d.ts.map +1 -1
  340. package/lib/spin/index.js +6 -4
  341. package/lib/spin/index.js.map +1 -1
  342. package/lib/steps/index.d.ts +2 -1
  343. package/lib/steps/index.d.ts.map +1 -1
  344. package/lib/steps/index.js +2 -9
  345. package/lib/steps/index.js.map +1 -1
  346. package/lib/steps/stepStyle/index.less +8 -173
  347. package/lib/steps/stepStyle/nav.less +259 -51
  348. package/lib/steps/steps.d.ts +2 -10
  349. package/lib/steps/steps.d.ts.map +1 -1
  350. package/lib/steps/steps.js +24 -52
  351. package/lib/steps/steps.js.map +1 -1
  352. package/lib/steps/style/index.d.ts.map +1 -1
  353. package/lib/steps/style/index.js.map +1 -1
  354. package/lib/style/themes/default.less +5 -6
  355. package/lib/svg-components/illustration-403.d.ts +1 -1
  356. package/lib/svg-components/illustration-404.d.ts +1 -1
  357. package/lib/svg-components/illustration-500.d.ts +1 -1
  358. package/lib/svg-components/illustration-empty.d.ts +1 -1
  359. package/lib/svg-components/illustration-failure.d.ts +1 -1
  360. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  361. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  362. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  363. package/lib/svg-components/illustration-offline.d.ts +1 -1
  364. package/lib/svg-components/illustration-success.d.ts +1 -1
  365. package/lib/svg-components/index.js +1 -1
  366. package/lib/switch/style/index.d.ts +0 -1
  367. package/lib/switch/style/index.d.ts.map +1 -1
  368. package/lib/switch/style/index.js +1 -2
  369. package/lib/switch/style/index.js.map +1 -1
  370. package/lib/switch/switch.d.ts +0 -8
  371. package/lib/switch/switch.d.ts.map +1 -1
  372. package/lib/switch/switch.js +5 -40
  373. package/lib/switch/switch.js.map +1 -1
  374. package/lib/table/assets/image-loading-background.d.ts +1 -1
  375. package/lib/table/assets/image-loading.d.ts +1 -1
  376. package/lib/table/hooks/use-column-setting.js +4 -4
  377. package/lib/table/hooks/use-expand-fixed.js +6 -6
  378. package/lib/table/hooks/use-expand-fixed.js.map +1 -1
  379. package/lib/table/resizableTable/index.js +6 -6
  380. package/lib/table/resizableTable/index.less +18 -0
  381. package/lib/table/style/index.less +21 -19
  382. package/lib/table/style/size.less +12 -11
  383. package/lib/table/table-hoc.js +1 -1
  384. package/lib/table/table.d.ts +1 -2
  385. package/lib/table/table.d.ts.map +1 -1
  386. package/lib/table/table.js +41 -61
  387. package/lib/table/table.js.map +1 -1
  388. package/lib/table/table.less +6 -31
  389. package/lib/table/table.stories.js +5 -5
  390. package/lib/table/table.stories.js.map +1 -1
  391. package/lib/table/total-shower.js +1 -1
  392. package/lib/table/utils.js +1 -1
  393. package/lib/table-container/index.d.ts.map +1 -1
  394. package/lib/table-container/index.js +3 -7
  395. package/lib/table-container/index.js.map +1 -1
  396. package/lib/table-container/index.less +1 -4
  397. package/lib/tabs/index.d.ts +0 -1
  398. package/lib/tabs/index.d.ts.map +1 -1
  399. package/lib/tabs/index.js +5 -6
  400. package/lib/tabs/index.js.map +1 -1
  401. package/lib/tabs/style/index.js.map +1 -1
  402. package/lib/tabs/style/index.less +0 -1
  403. package/lib/tabs/tabs.d.ts +2 -3
  404. package/lib/tabs/tabs.d.ts.map +1 -1
  405. package/lib/tabs/tabs.js +3 -30
  406. package/lib/tabs/tabs.js.map +1 -1
  407. package/lib/tabs-container/index.js +2 -2
  408. package/lib/tabs-container/index.js.map +1 -1
  409. package/lib/tag/tag.js +2 -2
  410. package/lib/tag/tag.less +3 -4
  411. package/lib/time-picker/index.d.ts +6 -7
  412. package/lib/time-picker/index.d.ts.map +1 -1
  413. package/lib/time-picker/index.js +17 -4
  414. package/lib/time-picker/index.js.map +1 -1
  415. package/lib/title/index.js +1 -1
  416. package/lib/title/index.less +45 -47
  417. package/lib/tntd-action/index.d.ts +2 -4
  418. package/lib/tntd-action/index.d.ts.map +1 -1
  419. package/lib/tntd-action/index.js +5 -79
  420. package/lib/tntd-action/index.js.map +1 -1
  421. package/lib/tntd-cascader/AntdCascader/component/context.js +1 -1
  422. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  423. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  424. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  425. package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
  426. package/lib/tntd-cascader/AntdCascader/config/utils.js +2 -2
  427. package/lib/tntd-cascader/AntdCascader/index.js +7 -7
  428. package/lib/tntd-cascader/AntdCascader/index.less +29 -35
  429. package/lib/tntd-cascader/index.js +1 -1
  430. package/lib/tntd-cascader/rc-cascader/Cascader.js +8 -8
  431. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  432. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +8 -8
  433. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
  434. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  435. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  436. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  437. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  438. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  439. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  440. package/lib/tntd-cascader/rc-cascader/index.js +1 -1
  441. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  442. package/lib/tntd-form/ErrorList.js +7 -7
  443. package/lib/tntd-form/Form.js +6 -6
  444. package/lib/tntd-form/FormItem/ItemHolder.js +6 -6
  445. package/lib/tntd-form/FormItem/index.js +8 -8
  446. package/lib/tntd-form/FormItemInput.js +1 -1
  447. package/lib/tntd-form/FormItemLabel.js +2 -2
  448. package/lib/tntd-form/FormList.js +1 -1
  449. package/lib/tntd-form/context.js +1 -1
  450. package/lib/tntd-form/hooks/useDebounce.js +4 -4
  451. package/lib/tntd-form/hooks/useForm.js +5 -5
  452. package/lib/tntd-form/hooks/useFormItemStatus.js +1 -1
  453. package/lib/tntd-form/hooks/useFrameState.js +5 -5
  454. package/lib/tntd-form/index.js +1 -1
  455. package/lib/tntd-icon/index.js +1 -1
  456. package/lib/tntd-layout/AppList.js +6 -6
  457. package/lib/tntd-layout/Application.js +6 -6
  458. package/lib/tntd-layout/Avatar.js +2 -2
  459. package/lib/tntd-layout/CompatibleLanguage.js +6 -6
  460. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  461. package/lib/tntd-layout/EnterpriseLayout/Language.js +6 -6
  462. package/lib/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  463. package/lib/tntd-layout/EnterpriseLayout/index.js +1 -1
  464. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  465. package/lib/tntd-layout/GlobalNavigation/index.js +9 -9
  466. package/lib/tntd-layout/Header.js +2 -2
  467. package/lib/tntd-layout/HeaderActions.js +2 -2
  468. package/lib/tntd-layout/HeaderNavs.js +6 -6
  469. package/lib/tntd-layout/HeaderTabs.js +7 -7
  470. package/lib/tntd-layout/Iconfont.js +1 -1
  471. package/lib/tntd-layout/Language.js +6 -6
  472. package/lib/tntd-layout/Layout.js +6 -6
  473. package/lib/tntd-layout/Logo.js +2 -2
  474. package/lib/tntd-layout/OrgAppList.js +6 -6
  475. package/lib/tntd-layout/SideMenu.js +6 -6
  476. package/lib/tntd-layout/Theme.js +6 -6
  477. package/lib/tntd-layout/createActions.js +1 -1
  478. package/lib/tntd-layout/images/index.js +1 -1
  479. package/lib/tntd-layout/index.js +1 -1
  480. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  481. package/lib/tntd-layout/paaslayout/Header.js +2 -2
  482. package/lib/tntd-layout/paaslayout/Logo.js +2 -2
  483. package/lib/tntd-layout/paaslayout/SideMenu.js +6 -6
  484. package/lib/tntd-layout/paaslayout/index.js +6 -6
  485. package/lib/tntd-layout/storage.js +1 -1
  486. package/lib/tntd-modal/index.js +6 -6
  487. package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
  488. package/lib/tntd-rc-select/_util/context.js +1 -1
  489. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  490. package/lib/tntd-rc-select/_util/getIcons.js +1 -1
  491. package/lib/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  492. package/lib/tntd-rc-select/index.js +2 -2
  493. package/lib/tntd-reference/AHref/index.js +1 -1
  494. package/lib/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  495. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  496. package/lib/tntd-reference/ReferenceCheck/index.js +1 -1
  497. package/lib/tntd-reference/ReferenceDrawer/index.js +5 -5
  498. package/lib/tntd-reference/ReferenceInfo/index.js +1 -1
  499. package/lib/tntd-reference/index.js +1 -1
  500. package/lib/tntd-second-page/index.js +1 -1
  501. package/lib/tntd-select/DropDownWrap.js +8 -8
  502. package/lib/tntd-select/index.d.ts.map +1 -1
  503. package/lib/tntd-select/index.js +13 -13
  504. package/lib/tntd-select/index.js.map +1 -1
  505. package/lib/tntd-virtual-tree/index.js +8 -8
  506. package/lib/tntd-virtual-tree/index.less +1 -2
  507. package/lib/tntd-virtual-tree/utils.js +28 -28
  508. package/lib/tntd-virtual-tree-select/index.js +10 -10
  509. package/lib/tntd-virtual-tree-select/index.less +14 -1
  510. package/lib/tntd-virtual-tree-select/utils.js +9 -9
  511. package/lib/tooltip/index.less +5 -4
  512. package/lib/tooltip/style/index.d.ts +0 -1
  513. package/lib/tooltip/style/index.d.ts.map +1 -1
  514. package/lib/tooltip/style/index.js +1 -2
  515. package/lib/tooltip/style/index.js.map +1 -1
  516. package/lib/tooltip/tooltip.js +1 -1
  517. package/lib/upload/index.d.ts +1 -0
  518. package/lib/upload/index.d.ts.map +1 -1
  519. package/lib/upload/index.js +208 -4
  520. package/lib/upload/index.js.map +1 -1
  521. package/lib/upload/style/index.less +1 -1
  522. package/lib/upload/svg/UploadSVG.js +1 -1
  523. package/lib/utils/checkAuth.js +4 -4
  524. package/lib/utils/index.d.ts +1 -0
  525. package/lib/utils/index.d.ts.map +1 -1
  526. package/lib/utils/index.js +9 -9
  527. package/lib/utils/lang.d.ts.map +1 -1
  528. package/lib/utils/lang.js +4 -10
  529. package/lib/utils/lang.js.map +1 -1
  530. package/lib/water-mark/index.js +5 -5
  531. package/package.json +1 -1
  532. package/es/alert/alert.js +0 -71
  533. package/es/alert/alert.js.map +0 -1
  534. package/es/alert/alert.less +0 -128
  535. package/es/cascader/cascader.js +0 -30
  536. package/es/cascader/cascader.js.map +0 -1
  537. package/es/cascader/cascader.less +0 -16
  538. package/es/checkbox/check.png +0 -0
  539. package/es/checkbox/checkbox.js +0 -48
  540. package/es/checkbox/checkbox.js.map +0 -1
  541. package/es/checkbox/checkbox.less +0 -69
  542. package/es/date-picker/DatePicker.js +0 -101
  543. package/es/date-picker/DatePicker.js.map +0 -1
  544. package/es/date-picker/index.less +0 -294
  545. package/es/input-number/inputNumber.js +0 -34
  546. package/es/input-number/inputNumber.js.map +0 -1
  547. package/es/input-number/inputNumber.less +0 -12
  548. package/es/modal/index.less +0 -36
  549. package/es/popconfirm/index.less +0 -32
  550. package/es/popconfirm/popconfirm.js +0 -43
  551. package/es/popconfirm/popconfirm.js.map +0 -1
  552. package/es/popover/index.less +0 -57
  553. package/es/popover/popover.js +0 -34
  554. package/es/popover/popover.js.map +0 -1
  555. package/es/progress/progress.js +0 -132
  556. package/es/progress/progress.js.map +0 -1
  557. package/es/progress/progress.less +0 -82
  558. package/es/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  559. package/es/query-form-backup/Field/Composition/index.less +0 -114
  560. package/es/query-form-backup/index.less +0 -90
  561. package/es/radio/radio.js +0 -57
  562. package/es/radio/radio.js.map +0 -1
  563. package/es/radio/radio.less +0 -43
  564. package/es/spin/spin.js +0 -36
  565. package/es/spin/spin.js.map +0 -1
  566. package/es/spin/spin.less +0 -9
  567. package/es/steps/assets/background_left.svg +0 -12
  568. package/es/steps/assets/background_right.svg +0 -12
  569. package/es/steps/assets/horizontal_line.svg +0 -3
  570. package/es/steps/assets/vertical_line.svg +0 -3
  571. package/es/steps/stepStyle/icon.less +0 -51
  572. package/es/steps/stepStyle/progress-dot.less +0 -10
  573. package/es/steps/stepStyle/variables.less +0 -8
  574. package/es/steps/stepStyle/vertical.less +0 -41
  575. package/es/switch/index.less +0 -45
  576. package/es/tabs/tabs.less +0 -125
  577. package/es/time-picker/TimePicker.js +0 -36
  578. package/es/time-picker/TimePicker.js.map +0 -1
  579. package/es/time-picker/index.less +0 -38
  580. package/es/tntd-action/Action.js +0 -117
  581. package/es/tntd-action/Action.js.map +0 -1
  582. package/es/tntd-action/index.less +0 -59
  583. package/es/tntd-select/index.less +0 -7
  584. package/lib/alert/alert.d.ts +0 -12
  585. package/lib/alert/alert.d.ts.map +0 -1
  586. package/lib/alert/alert.js +0 -93
  587. package/lib/alert/alert.js.map +0 -1
  588. package/lib/alert/alert.less +0 -128
  589. package/lib/cascader/cascader.d.ts +0 -10
  590. package/lib/cascader/cascader.d.ts.map +0 -1
  591. package/lib/cascader/cascader.js +0 -49
  592. package/lib/cascader/cascader.js.map +0 -1
  593. package/lib/cascader/cascader.less +0 -16
  594. package/lib/checkbox/check.png +0 -0
  595. package/lib/checkbox/checkbox.d.ts +0 -16
  596. package/lib/checkbox/checkbox.d.ts.map +0 -1
  597. package/lib/checkbox/checkbox.js +0 -65
  598. package/lib/checkbox/checkbox.js.map +0 -1
  599. package/lib/checkbox/checkbox.less +0 -69
  600. package/lib/date-picker/DatePicker.d.ts +0 -21
  601. package/lib/date-picker/DatePicker.d.ts.map +0 -1
  602. package/lib/date-picker/DatePicker.js +0 -128
  603. package/lib/date-picker/DatePicker.js.map +0 -1
  604. package/lib/date-picker/index.less +0 -294
  605. package/lib/input-number/inputNumber.d.ts +0 -10
  606. package/lib/input-number/inputNumber.d.ts.map +0 -1
  607. package/lib/input-number/inputNumber.js +0 -54
  608. package/lib/input-number/inputNumber.js.map +0 -1
  609. package/lib/input-number/inputNumber.less +0 -12
  610. package/lib/modal/index.less +0 -36
  611. package/lib/popconfirm/index.less +0 -32
  612. package/lib/popconfirm/popconfirm.d.ts +0 -8
  613. package/lib/popconfirm/popconfirm.d.ts.map +0 -1
  614. package/lib/popconfirm/popconfirm.js +0 -61
  615. package/lib/popconfirm/popconfirm.js.map +0 -1
  616. package/lib/popover/index.less +0 -57
  617. package/lib/popover/popover.d.ts +0 -14
  618. package/lib/popover/popover.d.ts.map +0 -1
  619. package/lib/popover/popover.js +0 -55
  620. package/lib/popover/popover.js.map +0 -1
  621. package/lib/progress/progress.d.ts +0 -12
  622. package/lib/progress/progress.d.ts.map +0 -1
  623. package/lib/progress/progress.js +0 -148
  624. package/lib/progress/progress.js.map +0 -1
  625. package/lib/progress/progress.less +0 -82
  626. package/lib/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  627. package/lib/query-form-backup/Field/Composition/index.less +0 -114
  628. package/lib/query-form-backup/index.less +0 -90
  629. package/lib/radio/radio.d.ts +0 -17
  630. package/lib/radio/radio.d.ts.map +0 -1
  631. package/lib/radio/radio.js +0 -75
  632. package/lib/radio/radio.js.map +0 -1
  633. package/lib/radio/radio.less +0 -43
  634. package/lib/spin/spin.d.ts +0 -9
  635. package/lib/spin/spin.d.ts.map +0 -1
  636. package/lib/spin/spin.js +0 -44
  637. package/lib/spin/spin.js.map +0 -1
  638. package/lib/spin/spin.less +0 -9
  639. package/lib/steps/assets/background_left.svg +0 -12
  640. package/lib/steps/assets/background_right.svg +0 -12
  641. package/lib/steps/assets/horizontal_line.svg +0 -3
  642. package/lib/steps/assets/vertical_line.svg +0 -3
  643. package/lib/steps/stepStyle/icon.less +0 -51
  644. package/lib/steps/stepStyle/progress-dot.less +0 -10
  645. package/lib/steps/stepStyle/variables.less +0 -8
  646. package/lib/steps/stepStyle/vertical.less +0 -41
  647. package/lib/switch/index.less +0 -45
  648. package/lib/tabs/tabs.less +0 -125
  649. package/lib/time-picker/TimePicker.d.ts +0 -9
  650. package/lib/time-picker/TimePicker.d.ts.map +0 -1
  651. package/lib/time-picker/TimePicker.js +0 -55
  652. package/lib/time-picker/TimePicker.js.map +0 -1
  653. package/lib/time-picker/index.less +0 -38
  654. package/lib/tntd-action/Action.d.ts +0 -6
  655. package/lib/tntd-action/Action.d.ts.map +0 -1
  656. package/lib/tntd-action/Action.js +0 -141
  657. package/lib/tntd-action/Action.js.map +0 -1
  658. package/lib/tntd-action/index.less +0 -59
  659. package/lib/tntd-select/index.less +0 -7
@@ -1,75 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- var _exportNames = {};
8
- exports["default"] = void 0;
9
- var _configProvider = require("antd/lib/config-provider");
10
- var _radio = _interopRequireWildcard(require("antd/lib/radio"));
11
- Object.keys(_radio).forEach(function (key) {
12
- if (key === "default" || key === "__esModule") return;
13
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
14
- if (key in exports && exports[key] === _radio[key]) return;
15
- Object.defineProperty(exports, key, {
16
- enumerable: true,
17
- get: function get() {
18
- return _radio[key];
19
- }
20
- });
21
- });
22
- var _classnames = _interopRequireDefault(require("classnames"));
23
- var _react = _interopRequireWildcard(require("react"));
24
- var _connect = require("../connect");
25
- var _previewText = require("../preview-text");
26
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
27
- 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); }
28
- 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; }
29
- var __rest = void 0 && (void 0).__rest || function (s, e) {
30
- var t = {};
31
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
32
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
34
- }
35
- return t;
36
- };
37
- /*
38
- * @Author: 周泽飞 zefei.zhou@tongdun.net
39
- * @Date: 2024-03-14 16:55:05
40
- * @LastEditors: 周泽飞 zefei.zhou@tongdun.net
41
- * @LastEditTime: 2024-03-14 17:00:03
42
- * @FilePath: /tntd/packages/tntd/src/radio/radio.tsx
43
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
44
- */
45
-
46
- var tntPrefixCls = 'tnt-radio';
47
- var Radio = (0, _react.forwardRef)(function (_a, ref) {
48
- var className = _a.className,
49
- children = _a.children,
50
- desc = _a.desc,
51
- rest = __rest(_a, ["className", "children", "desc"]);
52
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
53
- return _react["default"].createElement(_radio["default"], Object.assign({}, rest, {
54
- ref: ref,
55
- className: (0, _classnames["default"])(className, tntPrefixCls)
56
- }), children ? _react["default"].createElement("span", {
57
- className: "".concat(tntPrefixCls, "-children")
58
- }, _react["default"].createElement("span", null, children), !!desc && _react["default"].createElement("span", {
59
- className: "".concat(tntPrefixCls, "-desc")
60
- }, desc)) : undefined);
61
- });
62
- });
63
- var RadioGroup = (0, _react.forwardRef)(function (_a, ref) {
64
- var className = _a.className,
65
- rest = __rest(_a, ["className"]);
66
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
67
- return _react["default"].createElement(_radio["default"].Group, Object.assign({}, rest, {
68
- ref: ref,
69
- className: (0, _classnames["default"])(className, "".concat(tntPrefixCls, "-group"))
70
- }));
71
- });
72
- });
73
- Radio.Group = (0, _connect.connectReadonlyComponent)(RadioGroup, _previewText.PreviewText.Select);
74
- Radio.Button = _radio["default"].Button;
75
- var _default = exports["default"] = Radio;
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio.js","sourceRoot":"","sources":["../../src/radio/radio.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,6DAAwD;AAKxD,0DAAqC;AAErC,4DAAmC;AACnC,+CAAyC;AACzC,wCAAqD;AACrD,kDAA6C;AAE7C,gDAA6B;AAe7B,MAAM,YAAY,GAAG,WAAW,CAAA;AAEhC,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAwB,CAAC,EAAsC,EAAE,GAAG,EAAE,EAAE;QAA/C,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,OAAW,EAAN,IAAI,cAApC,iCAAsC,CAAF;IACnF,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,eAAS,oBAAK,IAAI,IAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,YAAY,CAAC,KAC1E,QAAQ,CAAC,CAAC,CAAC,CACV,wCAAM,SAAS,EAAE,GAAG,YAAY,WAAW;YACzC,4CAAO,QAAQ,CAAQ;YACtB,CAAC,CAAC,IAAI,IAAI,wCAAM,SAAS,EAAE,GAAG,YAAY,OAAO,IAAG,IAAI,CAAQ,CAC5D,CACR,CAAC,CAAC,CAAC,SAAS,CACH,CACb,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAmB,CAAA;AAEpB,MAAM,UAAU,GAAG,IAAA,kBAAU,EAAkC,CAAC,EAAsB,EAAE,GAAG,EAAE,EAAE;QAA/B,EAAE,SAAS,OAAW,EAAN,IAAI,cAApB,aAAsB,CAAF;IAClF,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,eAAS,CAAC,KAAK,oBACV,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,GAAG,YAAY,QAAQ,CAAC,IACzD,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,KAAK,CAAC,KAAK,GAAG,IAAA,kCAAwB,EAAC,UAAU,EAAE,0BAAW,CAAC,MAAM,CAAC,CAAA;AACtE,KAAK,CAAC,MAAM,GAAG,eAAS,CAAC,MAAM,CAAA;AAE/B,kBAAe,KAAK,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2024-03-14 16:55:05\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2024-03-14 17:00:03\n * @FilePath: /tntd/packages/tntd/src/radio/radio.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport type {\n RadioGroupProps as AntdRadioGroupProps,\n RadioProps as AntdRadioProps,\n} from 'antd/lib/radio'\nimport AntdRadio from 'antd/lib/radio'\nimport type AntdRadioGroup from 'antd/lib/radio/group'\nimport classNames from 'classnames'\nimport React, { forwardRef } from 'react'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\n\nexport * from 'antd/lib/radio'\n\nexport type RadioProps = AntdRadioProps & {\n desc?: string | React.ReactNode\n}\nexport type RadioGroupProps = AntdRadioGroupProps & {\n readonly?: boolean\n}\n\ninterface RadioComponent\n extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<AntdRadio>> {\n Group: React.FC<RadioGroupProps>\n Button: typeof AntdRadio.Button\n}\n\nconst tntPrefixCls = 'tnt-radio'\n\nconst Radio = forwardRef<AntdRadio, RadioProps>(({ className, children, desc, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdRadio {...rest} ref={ref} className={classNames(className, tntPrefixCls)}>\n {children ? (\n <span className={`${tntPrefixCls}-children`}>\n <span>{children}</span>\n {!!desc && <span className={`${tntPrefixCls}-desc`}>{desc}</span>}\n </span>\n ) : undefined}\n </AntdRadio>\n )\n }}\n </ConfigConsumer>\n )\n}) as RadioComponent\n\nconst RadioGroup = forwardRef<AntdRadioGroup, RadioGroupProps>(({ className, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdRadio.Group\n {...rest}\n ref={ref}\n className={classNames(className, `${tntPrefixCls}-group`)}\n />\n )\n }}\n </ConfigConsumer>\n )\n})\n\nRadio.Group = connectReadonlyComponent(RadioGroup, PreviewText.Select)\nRadio.Button = AntdRadio.Button\n\nexport default Radio\n"]}
@@ -1,43 +0,0 @@
1
- @radio-prefix-cls: ~'@{ant-prefix}-radio';
2
- @radio-inner-prefix-cls: ~'@{radio-prefix-cls}-inner';
3
-
4
- // 选中状态
5
- .tnt-radio,
6
- .tnt-radio-group {
7
- .@{radio-prefix-cls}-checked {
8
- .@{radio-inner-prefix-cls} {
9
- border-color: @radio-dot-color;
10
- background-color: @radio-dot-color;
11
- &::after {
12
- @radio-dot-size: calc(@radio-size - 12px);
13
-
14
- width: @radio-dot-size;
15
- height: @radio-dot-size;
16
- top: calc((@radio-size - @radio-dot-size) / 2 - 1px);
17
- left: calc((@radio-size - @radio-dot-size) / 2 - 1px);
18
- background-color: @radio-button-bg;
19
- }
20
- }
21
-
22
- &.@{radio-prefix-cls}-disabled {
23
- .@{radio-inner-prefix-cls} {
24
- border-color: @checkbox-check-disabled-color !important;
25
- background-color: @checkbox-check-disabled-color;
26
- }
27
- }
28
- }
29
- }
30
-
31
- .tnt-radio {
32
- & > span:nth-of-type(2) {
33
- display: inline-block;
34
- }
35
- &-children {
36
- display: flex;
37
- flex-direction: column;
38
- }
39
- &-desc {
40
- font-size: @font-size-sm;
41
- color: @bg-color-spotilight-tint-50;
42
- }
43
- }
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { SpinProps as AntdSpinProps } from 'antd/lib/spin';
3
- import { default as AntdSpin } from 'antd/lib/spin';
4
- import './spin.less';
5
- interface SpinComponent extends React.ForwardRefExoticComponent<AntdSpinProps & React.RefAttributes<AntdSpin>> {
6
- }
7
- export declare const Spin: SpinComponent;
8
- export {};
9
- //# sourceMappingURL=spin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spin.d.ts","sourceRoot":"","sources":["../../src/spin/spin.tsx"],"names":[],"mappings":"AASA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,cAAc,CAAA;AAE9D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAA;AAGlD,OAAO,aAAa,CAAA;AAEpB,UAAU,aACR,SAAQ,KAAK,CAAC,yBAAyB,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;CAAG;AAE3F,eAAO,MAAM,IAAI,eAgBE,CAAA"}
package/lib/spin/spin.js DELETED
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Spin = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _configProvider = require("antd/lib/config-provider");
10
- var _spin = _interopRequireDefault(require("antd/lib/spin"));
11
- var _classnames = _interopRequireDefault(require("classnames"));
12
- require("./spin.less");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
- 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); }
15
- 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; }
16
- /*
17
- * @Author: 周泽飞 zefei.zhou@tongdun.net
18
- * @Date: 2024-07-19 18:49:24
19
- * @LastEditors: 周泽飞 zefei.zhou@tongdun.net
20
- * @LastEditTime: 2024-07-19 18:54:42
21
- * @FilePath: /tntd/packages/tntd/src/spin/spin.tsx
22
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
23
- */
24
- var __rest = void 0 && (void 0).__rest || function (s, e) {
25
- var t = {};
26
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
27
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
28
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
29
- }
30
- return t;
31
- };
32
- var Spin = exports.Spin = (0, _react.forwardRef)(function (props, ref) {
33
- var className = props.className,
34
- wrapperClassName = props.wrapperClassName,
35
- restProps = __rest(props, ["className", "wrapperClassName"]);
36
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
37
- return _react["default"].createElement(_spin["default"], Object.assign({
38
- wrapperClassName: (0, _classnames["default"])('tnt-spin-nested', wrapperClassName || ''),
39
- className: (0, _classnames["default"])('tnt-spin', className || '')
40
- }, restProps, {
41
- ref: ref
42
- }));
43
- });
44
- });
@@ -1 +0,0 @@
1
- {"version":3,"file":"spin.js","sourceRoot":"","sources":["../../src/spin/spin.tsx"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAAyC;AAEzC,6DAAwD;AACxD,wDAAkD;AAClD,4DAAmC;AAEnC,uBAAoB;AAKP,QAAA,IAAI,GAAG,IAAA,kBAAU,EAA0B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACrE,MAAM,EAAE,SAAS,EAAE,gBAAgB,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAArD,iCAA6C,CAAQ,CAAA;IAC3D,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,cAAQ,kBACP,gBAAgB,EAAE,IAAA,oBAAU,EAAC,iBAAiB,EAAE,gBAAgB,IAAI,EAAE,CAAC,EACvE,SAAS,EAAE,IAAA,oBAAU,EAAC,UAAU,EAAE,SAAS,IAAI,EAAE,CAAC,IAC9C,SAAS,IACb,GAAG,EAAE,GAAG,IACR,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAkB,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2024-07-19 18:49:24\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2024-07-19 18:54:42\n * @FilePath: /tntd/packages/tntd/src/spin/spin.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\n\nimport React, { forwardRef } from 'react'\nimport type { SpinProps as AntdSpinProps } from 'antd/lib/spin'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport { default as AntdSpin } from 'antd/lib/spin'\nimport classNames from 'classnames'\n\nimport './spin.less'\n\ninterface SpinComponent\n extends React.ForwardRefExoticComponent<AntdSpinProps & React.RefAttributes<AntdSpin>> {}\n\nexport const Spin = forwardRef<AntdSpin, AntdSpinProps>((props, ref) => {\n const { className, wrapperClassName, ...restProps } = props\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdSpin\n wrapperClassName={classNames('tnt-spin-nested', wrapperClassName || '')}\n className={classNames('tnt-spin', className || '')}\n {...restProps}\n ref={ref}\n />\n )\n }}\n </ConfigConsumer>\n )\n}) as SpinComponent\n"]}
@@ -1,9 +0,0 @@
1
- @spin-prefix-cls: ~'@{ant-prefix}-spin';
2
- .tnt-spin-nested{
3
- .@{spin-prefix-cls}-container {
4
- &::after{
5
- content:'';
6
- background-color: transparent;
7
- }
8
- }
9
- }
@@ -1,12 +0,0 @@
1
- <svg width="162" height="77" viewBox="0 0 162 77" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g id="Ellipse 27" filter="url(#filter0_f_5274_1997)">
3
- <ellipse class="test" cx="36.5" cy="-21.5" rx="78.5" ry="51.5" fill="#126BFB" fill-opacity="0.15"/>
4
- </g>
5
- <defs>
6
- <filter id="filter0_f_5274_1997" x="-89" y="-120" width="251" height="197" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
7
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
8
- <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
9
- <feGaussianBlur stdDeviation="23.5" result="effect1_foregroundBlur_5274_1997"/>
10
- </filter>
11
- </defs>
12
- </svg>
@@ -1,12 +0,0 @@
1
- <svg width="131" height="80" viewBox="0 0 131 80" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g id="Ellipse 28" filter="url(#filter0_f_5274_1888)">
3
- <circle cx="118" cy="100" r="71" fill="#126BFB" fill-opacity="0.08"/>
4
- </g>
5
- <defs>
6
- <filter id="filter0_f_5274_1888" x="0" y="-18" width="236" height="236" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
7
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
8
- <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
9
- <feGaussianBlur stdDeviation="23.5" result="effect1_foregroundBlur_5274_1888"/>
10
- </filter>
11
- </defs>
12
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="8" height="2" viewBox="0 0 6 2" fill="none">
2
- <path class="t1" d="M1.5 1H206" stroke="#C9D2DD" stroke-width="2" stroke-linecap="round" stroke-dasharray="2 7"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="2" height="10" viewBox="0 0 2 6" fill="none">
2
- <path d="M1 1L0.999999 25" stroke="#C9D2DD" stroke-width="2" stroke-linecap="round" stroke-dasharray="4 6"/>
3
- </svg>
@@ -1,51 +0,0 @@
1
- .@{tnt-steps-cls}:not(.@{steps-prefix-cls}-dot).@{steps-prefix-cls}{
2
- .@{steps-prefix-cls}-item{
3
- &-icon{
4
- border: none;
5
- font-weight: 500;
6
- margin: 2px 12px 2px 0;
7
- width: @td-steps-icon-size;
8
- height: @td-steps-icon-size;
9
- line-height: @td-steps-icon-size;
10
- border-radius:@td-steps-icon-size;
11
- >.@{steps-prefix-cls}-icon{
12
- top:0;
13
- i{
14
- font-size: @td-steps-icon-size;
15
- font-weight: normal;
16
- }
17
- }
18
- }
19
- &-finish.@{step-prefix-cls}-default-icon,
20
- &-error.@{step-prefix-cls}-default-icon {
21
- .@{steps-prefix-cls}-item-icon {
22
- background-color: transparent;
23
- }
24
- }
25
-
26
- &-wait.@{step-prefix-cls}-default-icon {
27
- .@{steps-prefix-cls}-item-icon {
28
- background-color: @fill-color-tertiary;
29
- }
30
- }
31
- }
32
-
33
-
34
-
35
- &-small {
36
- .@{steps-prefix-cls}-item{
37
- &-icon{
38
- width: @td-steps-small-icon-size;
39
- height: @td-steps-small-icon-size;
40
- line-height: @td-steps-small-icon-size;
41
- border-radius:@td-steps-small-icon-size;
42
- >.@{steps-prefix-cls}-icon{
43
- i{
44
- font-size: @td-steps-small-icon-size;
45
- }
46
- }
47
- }
48
- }
49
- }
50
- }
51
-
@@ -1,10 +0,0 @@
1
- .@{tnt-steps-cls}.@{steps-prefix-cls}-dot,
2
- .@{tnt-steps-cls}.@{steps-prefix-cls}-dot.@{steps-prefix-cls}-small {
3
- .@{steps-prefix-cls}-item {
4
- &-tail {
5
- &::after {
6
- height: 2px;
7
- }
8
- }
9
- }
10
- }
@@ -1,8 +0,0 @@
1
- @td-steps-icon-size: 40px;
2
- @td-steps-small-icon-size: 24px;
3
- @td-steps-title-height: 24px;
4
- @td-steps-desc-height: 20px;
5
- @nav-min-height: 44px;
6
- @nav-small-min-height: 28px;
7
- @finish-border-color: @primary-color;
8
-
@@ -1,41 +0,0 @@
1
- .@{tnt-steps-cls}.@{steps-prefix-cls}-vertical:not(.@{steps-prefix-cls}-dot):not(.@{steps-prefix-cls}-navigation):not(.@{steps-prefix-cls}-small).@{steps-prefix-cls}{
2
- .@{steps-prefix-cls}-item{
3
- &-icon >.@{steps-prefix-cls}-icon{
4
- i{
5
- vertical-align: middle;
6
- }
7
- }
8
-
9
- &-content {
10
- min-height: 94px;
11
- }
12
-
13
- > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail{
14
- padding: calc(@td-steps-icon-size + 15px) 0 15px;
15
- left: 18px;
16
- &::after{
17
- width:0;
18
- border-radius: 2px;
19
- background-color: transparent;
20
- }
21
- }
22
-
23
- &-finish > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail {
24
- &::after {
25
- border-left: 2px solid @finish-border-color;
26
- }
27
- }
28
-
29
- &-wait, &-error, &-process {
30
- > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail {
31
- &::after {
32
- border-left: 2px solid transparent;
33
- background-color: @border-color;
34
- mask: url(../assets/vertical_line.svg) repeat-y 0 0;
35
- -webkit-mask:url(../assets/vertical_line.svg) repeat-y 0 0;
36
- }
37
- }
38
- }
39
- }
40
- }
41
-
@@ -1,45 +0,0 @@
1
- @switch-prefix-cls: ~'@{ant-prefix}-switch';
2
-
3
- .@{switch-prefix-cls} {
4
- &-small {
5
- min-width: 36px;
6
- }
7
-
8
- &-checked {
9
- &:hover {
10
- background-color: @blue-5;
11
- }
12
- }
13
-
14
- // &-disabled {
15
- // background-color: @blue-5;
16
- // }
17
-
18
- &-wrap {
19
- display: flex;
20
- }
21
-
22
- &-text-wrap {
23
- margin-left: @margin-xs;
24
- font-weight: 400;
25
- }
26
-
27
- &-text {
28
- font-size: 14px;
29
- color: @text-color;
30
- }
31
-
32
- &-text-disabled {
33
- color: @text-color-tertiary;
34
- }
35
-
36
- &-subtext {
37
- font-size: 12px;
38
- color: tint(@text-color, 50%);
39
- line-height: 20px;
40
- }
41
-
42
- &-subtext-disabled {
43
- color: @text-color-tertiary;
44
- }
45
- }
@@ -1,125 +0,0 @@
1
- // Tabs 自定义梯形页签样式
2
- @tab-prefix-cls: ~'@{ant-prefix}-tabs';
3
-
4
- .tnt-tabs.@{tab-prefix-cls}.@{tab-prefix-cls}-ladder-card.@{tab-prefix-cls}-top {
5
- padding: 0 12px;
6
- position: relative;
7
- left: -12px;
8
- padding-bottom: 20px;
9
-
10
- > .@{tab-prefix-cls}-top-bar {
11
- border-bottom: none;
12
- margin-bottom: 0;
13
- .@{tab-prefix-cls}-tab {
14
- // display: inline-block;
15
- vertical-align: bottom;
16
- // position: relative;
17
- min-width: 106px;
18
- height: 40px;
19
- line-height: 40px;
20
- border-top-left-radius: @border-radius-lg;
21
- filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.1));
22
- box-shadow: 0px 0px 2px -5px rgba(0, 0, 0, 0.05);
23
- border: none;
24
- margin: 0px 30px 0px 0px;
25
- padding: 0px 12px 0 48px;
26
- // background: @fill-color-quaternary;
27
- text-align: right;
28
- // color: @text-color-secondary;
29
-
30
- &::after {
31
- content: '';
32
- position: absolute;
33
- top: 0;
34
- right: -52px;
35
- height: 100%;
36
- width: 64px;
37
- z-index: 1;
38
- background: inherit;
39
- clip-path: path('M0 0H22.3875C28.4632 0 34.2094 2.76179 38.0049 7.5061L64 40H0V0Z');
40
- }
41
-
42
- // 兼容clip-path 属性
43
- @supports not (clip-path: path('M0 0H22.3875C28.4632 0 34.2094 2.76179 38.0049 7.5061L64 40H0V0Z')) {
44
- & {
45
- padding: 0px 22px 0 48px !important;
46
- margin-right: 12px;
47
- }
48
- &::after {
49
- top: 17px !important;
50
- right: -54px !important;
51
- width: 93px !important;
52
- z-index: -1 !important;
53
- height: 45px !important;
54
- border-top-right-radius: 24px !important;
55
- border-top-left-radius: 26px !important;
56
- transform: rotate(50deg) !important;
57
- }
58
- }
59
- @supports (clip-path: path('M0 0H22.3875C28.4632 0 34.2094 2.76179 38.0049 7.5061L64 40H0V0Z')) {
60
- &::after {
61
- clip-path: path('M0 0H22.3875C28.4632 0 34.2094 2.76179 38.0049 7.5061L64 40H0V0Z');
62
- }
63
- }
64
- }
65
- .@{tab-prefix-cls}-nav {
66
- margin-top: 12px;
67
- padding-left: 12px;
68
- }
69
- .@{tab-prefix-cls}-nav-container {
70
- height: auto;
71
- position: relative;
72
- left: -12px;
73
- }
74
- // 鼠标选中时,active状态在上层
75
- .@{tab-prefix-cls}-tab-active {
76
- z-index: 99 !important;
77
- background: @tabs-active-background;
78
- }
79
- }
80
-
81
- & > .@{tab-prefix-cls}-content {
82
- & > .@{tab-prefix-cls}-tabpane {
83
- background: @white;
84
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
85
- padding: 20px 12px 12px;
86
- border-bottom-right-radius: @border-radius-lg;
87
- border-bottom-left-radius: @border-radius-lg;
88
- border-top-right-radius: @border-radius-lg;
89
- }
90
- }
91
- }
92
-
93
- // // Tabs top类型 全局样式修改
94
- .tnt-tabs.@{tab-prefix-cls}.@{tab-prefix-cls}-top.@{tab-prefix-cls}-line {
95
- .@{tab-prefix-cls}-nav-container {
96
- margin-bottom: none;
97
- }
98
-
99
- .@{tab-prefix-cls}-tab {
100
- border-bottom: 1px solid transparent;
101
- margin-bottom: 1px;
102
- height: 40px;
103
- line-height: 37px;
104
- padding: 2px 12px 0;
105
- }
106
- }
107
-
108
- .tnt-tabs.@{tab-prefix-cls} {
109
- .@{tab-prefix-cls}-nav {
110
- .@{tab-prefix-cls}-tab {
111
- color: @tabs-tab-color;
112
- // 自定义图标默认都是 16px
113
- i.anticon {
114
- font-size: @font-size-lg;
115
- margin-right: 4px;
116
- }
117
- }
118
- .@{tab-prefix-cls}-tab.@{tab-prefix-cls}-tab-active {
119
- color: @tabs-active-color;
120
- }
121
- .@{tab-prefix-cls}-tab.@{tab-prefix-cls}-tab:hover {
122
- color: @tabs-hover-color;
123
- }
124
- }
125
- }
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { TimePickerProps as AntdTimePickerProps } from 'antd/lib/time-picker';
3
- export * from 'antd/lib/time-picker';
4
- declare const TimePicker: React.FC<AntdTimePickerProps & {
5
- theme?: string;
6
- readonly?: boolean;
7
- }>;
8
- export default TimePicker;
9
- //# sourceMappingURL=TimePicker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../src/time-picker/TimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAIjF,cAAc,qBAAqB,CAAA;AACnC,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAqBtF,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,55 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- var _exportNames = {};
8
- exports["default"] = void 0;
9
- var _react = _interopRequireDefault(require("react"));
10
- var _icon = _interopRequireDefault(require("../icon"));
11
- var _configProvider = require("antd/lib/config-provider");
12
- var _timePicker = _interopRequireWildcard(require("antd/lib/time-picker"));
13
- Object.keys(_timePicker).forEach(function (key) {
14
- if (key === "default" || key === "__esModule") return;
15
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
16
- if (key in exports && exports[key] === _timePicker[key]) return;
17
- Object.defineProperty(exports, key, {
18
- enumerable: true,
19
- get: function get() {
20
- return _timePicker[key];
21
- }
22
- });
23
- });
24
- var _classnames = _interopRequireDefault(require("classnames"));
25
- 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); }
26
- 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; }
27
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
28
- var __rest = void 0 && (void 0).__rest || function (s, e) {
29
- var t = {};
30
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
31
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
32
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
33
- }
34
- return t;
35
- };
36
- var TimePicker = function TimePicker(props) {
37
- //theme样式类型 outline | fill 默认 outline
38
- var _props$theme = props.theme,
39
- theme = _props$theme === void 0 ? 'outline' : _props$theme,
40
- className = props.className,
41
- suffixIcon = props.suffixIcon,
42
- restProps = __rest(props, ["theme", "className", "suffixIcon"]);
43
- var defaultIcon = _react["default"].createElement(_icon["default"], {
44
- type: "clock-circle"
45
- });
46
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
47
- var getPrefixCls = _ref.getPrefixCls;
48
- var prefixCls = getPrefixCls('time-picker');
49
- return _react["default"].createElement(_timePicker["default"], Object.assign({
50
- suffixIcon: suffixIcon || defaultIcon,
51
- className: (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme))
52
- }, restProps));
53
- });
54
- };
55
- var _default = exports["default"] = TimePicker;
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimePicker.js","sourceRoot":"","sources":["../../src/time-picker/TimePicker.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAuC;AACvC,mDAA0B;AAE1B,6DAAwD;AACxD,sEAA+C;AAC/C,4DAAmC;AACnC,sDAAmC;AACnC,MAAM,UAAU,GAA2E,CACzF,KAAK,EACL,EAAE;IACF,sCAAsC;IACtC,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,SAAS,EAAE,UAAU,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAlE,oCAA0D,CAAQ,CAAA;IACxE,MAAM,WAAW,GAAG,8BAAC,cAAI,IAAC,IAAI,EAAC,cAAc,GAAG,CAAA;IAEhD,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,CAAA;QAC7C,OAAO,CACL,8BAAC,qBAAa,kBACZ,UAAU,EAAE,UAAU,IAAI,WAAW,EACrC,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,IACrD,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,UAAU,CAAA","sourcesContent":["import React, { useState } from 'react'\nimport Icon from '../icon'\nimport type { TimePickerProps as AntdTimePickerProps } from 'antd/lib/time-picker'\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport AntTimePicker from 'antd/lib/time-picker'\nimport classNames from 'classnames'\nexport * from 'antd/lib/time-picker'\nconst TimePicker: React.FC<AntdTimePickerProps & { theme?: string; readonly?: boolean }> = (\n props\n) => {\n //theme样式类型 outline | fill 默认 outline\n const { theme = 'outline', className, suffixIcon, ...restProps } = props\n const defaultIcon = <Icon type=\"clock-circle\" />\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('time-picker')\n return (\n <AntTimePicker\n suffixIcon={suffixIcon || defaultIcon}\n className={classNames(className, `${prefixCls}-${theme}`)}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport default TimePicker\n"]}
@@ -1,38 +0,0 @@
1
- @import '../style/themes/index';
2
-
3
- @timepicker-prefix-cls: ~'@{ant-prefix}-time-picker';
4
- .@{timepicker-prefix-cls} {
5
- input{
6
- border-color: @border-color-secondary;
7
- }
8
- &:has(input:not([value=''])),&:hover {
9
- .@{timepicker-prefix-cls}-icon{
10
- i{
11
- color: @text-color-secondary;
12
- }
13
- }
14
- }
15
- &:has(input[disabled]){
16
- .@{timepicker-prefix-cls}-icon{
17
- i{
18
- color: @disabled-color;
19
- }
20
- }
21
- }
22
- &-fill{
23
- input {
24
- background-color: @fill-color-quaternary;
25
- border-color: @fill-color-quaternary;
26
- &[disabled] {
27
- border: none;
28
- }
29
- &:focus{
30
- background-color: @white;
31
- }
32
- &:not([value='']):hover {
33
- background-color: @white;
34
- }
35
- }
36
- }
37
- }
38
-
@@ -1,6 +0,0 @@
1
- export default function WarpAction({ getContainer, ...other }: {
2
- [x: string]: any;
3
- getContainer?: (() => HTMLElement) | undefined;
4
- }): React.JSX.Element;
5
- import React from "react";
6
- //# sourceMappingURL=Action.d.ts.map