tntd 3.0.28 → 3.0.29

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 (835) hide show
  1. package/es/alert/alert.js +71 -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/array-input/index.js +14 -12
  8. package/es/array-input/index.js.map +1 -1
  9. package/es/button/button.js +30 -3
  10. package/es/button/button.js.map +1 -1
  11. package/es/button/button.less +72 -2
  12. package/es/cascader/cascader.js +30 -0
  13. package/es/cascader/cascader.js.map +1 -0
  14. package/es/cascader/cascader.less +16 -0
  15. package/es/cascader/index.js +3 -6
  16. package/es/cascader/index.js.map +1 -1
  17. package/es/checkbox/check.png +0 -0
  18. package/es/checkbox/checkbox.js +48 -0
  19. package/es/checkbox/checkbox.js.map +1 -0
  20. package/es/checkbox/checkbox.less +69 -0
  21. package/es/checkbox/index.js +3 -7
  22. package/es/checkbox/index.js.map +1 -1
  23. package/es/date-picker/DatePicker.js +101 -0
  24. package/es/date-picker/DatePicker.js.map +1 -0
  25. package/es/date-picker/index.js +6 -12
  26. package/es/date-picker/index.js.map +1 -1
  27. package/es/date-picker/index.less +294 -0
  28. package/es/date-picker/style/Calendar.less +1 -1
  29. package/es/descriptions/descriptions.less +1 -0
  30. package/es/descriptions/index.js +2 -2
  31. package/es/descriptions/index.js.map +1 -1
  32. package/es/drawer/drawer.js +5 -5
  33. package/es/drawer/drawer.js.map +1 -1
  34. package/es/drawer/index.less +15 -1
  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/style/index.less +6 -0
  39. package/es/handle/index.js +9 -6
  40. package/es/handle/index.js.map +1 -1
  41. package/es/handle/index.less +16 -0
  42. package/es/input/index.js +1 -1
  43. package/es/input/index.js.map +1 -1
  44. package/es/input/input.js +21 -30
  45. package/es/input/input.js.map +1 -1
  46. package/es/input/input.less +123 -20
  47. package/es/input-number/index.js +4 -29
  48. package/es/input-number/index.js.map +1 -1
  49. package/es/input-number/inputNumber.js +34 -0
  50. package/es/input-number/inputNumber.js.map +1 -0
  51. package/es/input-number/inputNumber.less +12 -0
  52. package/es/locale/en_US.js +9 -5
  53. package/es/locale/en_US.js.map +1 -1
  54. package/es/locale/zh_CN.js +7 -3
  55. package/es/locale/zh_CN.js.map +1 -1
  56. package/es/message/message.less +2 -1
  57. package/es/modal/index.js +2 -3
  58. package/es/modal/index.js.map +1 -1
  59. package/es/modal/index.less +36 -0
  60. package/es/modal/modal.js +103 -16
  61. package/es/modal/modal.js.map +1 -1
  62. package/es/modal/style/index.js +2 -1
  63. package/es/modal/style/index.js.map +1 -1
  64. package/es/modal/style/modal.less +15 -3
  65. package/es/notification/notification.less +27 -2
  66. package/es/notification/style/index.less +1 -0
  67. package/es/page-container/index.js +1 -1
  68. package/es/page-container/index.js.map +1 -1
  69. package/es/page-container/index.less +3 -2
  70. package/es/page-loading/index.js +1 -1
  71. package/es/page-loading/index.js.map +1 -1
  72. package/es/popconfirm/index.js +2 -2
  73. package/es/popconfirm/index.js.map +1 -1
  74. package/es/popconfirm/index.less +32 -0
  75. package/es/popconfirm/popconfirm.js +43 -0
  76. package/es/popconfirm/popconfirm.js.map +1 -0
  77. package/es/popconfirm/style/index.js +2 -1
  78. package/es/popconfirm/style/index.js.map +1 -1
  79. package/es/popover/index.js +2 -2
  80. package/es/popover/index.js.map +1 -1
  81. package/es/popover/index.less +57 -0
  82. package/es/popover/popover.js +34 -0
  83. package/es/popover/popover.js.map +1 -0
  84. package/es/popover/style/index.js +1 -0
  85. package/es/popover/style/index.js.map +1 -1
  86. package/es/prev-locale.js +1 -1
  87. package/es/prev-locale.js.map +1 -1
  88. package/es/preview-text/index.js.map +1 -1
  89. package/es/progress/index.js +2 -2
  90. package/es/progress/index.js.map +1 -1
  91. package/es/progress/progress.js +132 -0
  92. package/es/progress/progress.js.map +1 -0
  93. package/es/progress/progress.less +82 -0
  94. package/es/query-form/Field/Composition/FieldPopover.js +304 -0
  95. package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
  96. package/es/query-form/Field/Composition/FieldPopover.less +35 -0
  97. package/es/query-form/Field/Composition/Select.js +122 -0
  98. package/es/query-form/Field/Composition/Select.js.map +1 -0
  99. package/es/query-form/Field/Composition/ValueTag.js +124 -0
  100. package/es/query-form/Field/Composition/ValueTag.js.map +1 -0
  101. package/es/query-form/Field/Composition/index.js +233 -0
  102. package/es/query-form/Field/Composition/index.js.map +1 -0
  103. package/es/query-form/Field/Composition/index.less +120 -0
  104. package/es/query-form/Field/Composition/utils.js +154 -0
  105. package/es/query-form/Field/Composition/utils.js.map +1 -0
  106. package/es/query-form-backup/Field/Composition/FieldPopover.less +35 -0
  107. package/es/query-form-backup/Field/Composition/index.less +114 -0
  108. package/es/query-form-backup/index.less +90 -0
  109. package/es/query-form-v2/index.less +133 -0
  110. package/es/query-list-scene/List.js +3 -1
  111. package/es/query-list-scene/List.js.map +1 -1
  112. package/es/query-list-scene/QueryForm.js +1 -3
  113. package/es/query-list-scene/QueryForm.js.map +1 -1
  114. package/es/query-list-scene/index.less +7 -7
  115. package/es/radio/index.js +3 -5
  116. package/es/radio/index.js.map +1 -1
  117. package/es/radio/radio.js +57 -0
  118. package/es/radio/radio.js.map +1 -0
  119. package/es/radio/radio.less +43 -0
  120. package/es/scroll-bar/Bar.js +56 -0
  121. package/es/scroll-bar/Bar.js.map +1 -0
  122. package/es/scroll-bar/Context.js +6 -0
  123. package/es/scroll-bar/Context.js.map +1 -0
  124. package/es/scroll-bar/ScrollBar.js +86 -0
  125. package/es/scroll-bar/ScrollBar.js.map +1 -0
  126. package/es/scroll-bar/Thumb.js +105 -0
  127. package/es/scroll-bar/Thumb.js.map +1 -0
  128. package/es/scroll-bar/index.js +3 -0
  129. package/es/scroll-bar/index.js.map +1 -0
  130. package/es/scroll-bar/scrollBar.less +59 -0
  131. package/es/scroll-bar/util.js +31 -0
  132. package/es/scroll-bar/util.js.map +1 -0
  133. package/es/segmented/index.less +126 -112
  134. package/es/select/index.js +1 -1
  135. package/es/select/index.js.map +1 -1
  136. package/es/select/select.js +5 -6
  137. package/es/select/select.js.map +1 -1
  138. package/es/select/select.less +83 -9
  139. package/es/select/style/index.less +4 -4
  140. package/es/spin/index.js +3 -2
  141. package/es/spin/index.js.map +1 -1
  142. package/es/spin/spin.js +36 -0
  143. package/es/spin/spin.js.map +1 -0
  144. package/es/spin/spin.less +9 -0
  145. package/es/steps/assets/background_left.svg +12 -0
  146. package/es/steps/assets/background_right.svg +12 -0
  147. package/es/steps/assets/horizontal_line.svg +3 -0
  148. package/es/steps/assets/vertical_line.svg +3 -0
  149. package/es/steps/index.js +9 -2
  150. package/es/steps/index.js.map +1 -1
  151. package/es/steps/stepStyle/icon.less +51 -0
  152. package/es/steps/stepStyle/index.less +173 -8
  153. package/es/steps/stepStyle/nav.less +51 -259
  154. package/es/steps/stepStyle/progress-dot.less +10 -0
  155. package/es/steps/stepStyle/variables.less +8 -0
  156. package/es/steps/stepStyle/vertical.less +41 -0
  157. package/es/steps/steps.js +53 -27
  158. package/es/steps/steps.js.map +1 -1
  159. package/es/steps/style/index.js +8 -0
  160. package/es/steps/style/index.js.map +1 -1
  161. package/es/style/themes/default.less +6 -5
  162. package/es/switch/index.less +45 -0
  163. package/es/switch/style/index.js +2 -1
  164. package/es/switch/style/index.js.map +1 -1
  165. package/es/switch/switch.js +40 -2
  166. package/es/switch/switch.js.map +1 -1
  167. package/es/table/hooks/use-expand-fixed.js.map +1 -1
  168. package/es/table/style/index.less +19 -21
  169. package/es/table/style/size.less +11 -12
  170. package/es/table/table.js +68 -40
  171. package/es/table/table.js.map +1 -1
  172. package/es/table/table.less +31 -6
  173. package/es/table/table.stories.js +3 -3
  174. package/es/table/table.stories.js.map +1 -1
  175. package/es/table-container/index.js +5 -2
  176. package/es/table-container/index.js.map +1 -1
  177. package/es/table-container/index.less +4 -1
  178. package/es/tabs/index.js +1 -0
  179. package/es/tabs/index.js.map +1 -1
  180. package/es/tabs/style/index.js.map +1 -1
  181. package/es/tabs/style/index.less +1 -0
  182. package/es/tabs/tabs.js +27 -3
  183. package/es/tabs/tabs.js.map +1 -1
  184. package/es/tabs/tabs.less +125 -0
  185. package/es/tabs-container/index.js +1 -1
  186. package/es/tabs-container/index.js.map +1 -1
  187. package/es/tag/tag.less +4 -3
  188. package/es/time-picker/TimePicker.js +36 -0
  189. package/es/time-picker/TimePicker.js.map +1 -0
  190. package/es/time-picker/index.js +2 -2
  191. package/es/time-picker/index.js.map +1 -1
  192. package/es/time-picker/index.less +38 -0
  193. package/es/title/index.less +47 -45
  194. package/es/tntd-action/Action.js +117 -0
  195. package/es/tntd-action/Action.js.map +1 -0
  196. package/es/tntd-action/index.js +69 -6
  197. package/es/tntd-action/index.js.map +1 -1
  198. package/es/tntd-action/index.less +59 -0
  199. package/es/tntd-cascader/AntdCascader/index.less +35 -29
  200. package/es/tntd-select/index.js +3 -4
  201. package/es/tntd-select/index.js.map +1 -1
  202. package/es/tntd-select/index.less +7 -0
  203. package/es/tntd-virtual-tree/index.less +2 -1
  204. package/es/tntd-virtual-tree-select/index.less +1 -1
  205. package/es/tooltip/index.less +4 -5
  206. package/es/tooltip/style/index.js +2 -1
  207. package/es/tooltip/style/index.js.map +1 -1
  208. package/es/upload/index.js +1 -2
  209. package/es/upload/index.js.map +1 -1
  210. package/es/upload/style/index.less +1 -1
  211. package/es/upload/upload.less +5 -12
  212. package/es/utils/index.js +0 -1
  213. package/es/utils/index.js.map +1 -1
  214. package/es/utils/lang.js +8 -2
  215. package/es/utils/lang.js.map +1 -1
  216. package/lib/_util/context.js +1 -1
  217. package/lib/_util/defaultRenderEmpty.js +1 -1
  218. package/lib/_util/hooks/useFlexGapSupport.js +4 -4
  219. package/lib/_util/hooks/useForceUpdate.js +4 -4
  220. package/lib/_util/responsiveObserve.js +1 -1
  221. package/lib/_util/styleChecker.js +1 -1
  222. package/lib/actions/index.js +1 -1
  223. package/lib/alert/alert.d.ts +12 -0
  224. package/lib/alert/alert.d.ts.map +1 -0
  225. package/lib/alert/alert.js +93 -0
  226. package/lib/alert/alert.js.map +1 -0
  227. package/lib/alert/alert.less +128 -0
  228. package/lib/alert/index.d.ts +1 -1
  229. package/lib/alert/index.d.ts.map +1 -1
  230. package/lib/alert/index.js +7 -8
  231. package/lib/alert/index.js.map +1 -1
  232. package/lib/alert/style/index.less +1 -0
  233. package/lib/array-input/index.d.ts.map +1 -1
  234. package/lib/array-input/index.js +26 -23
  235. package/lib/array-input/index.js.map +1 -1
  236. package/lib/button/button.d.ts +9 -4
  237. package/lib/button/button.d.ts.map +1 -1
  238. package/lib/button/button.js +28 -4
  239. package/lib/button/button.js.map +1 -1
  240. package/lib/button/button.less +72 -2
  241. package/lib/cascader/cascader.d.ts +10 -0
  242. package/lib/cascader/cascader.d.ts.map +1 -0
  243. package/lib/cascader/cascader.js +49 -0
  244. package/lib/cascader/cascader.js.map +1 -0
  245. package/lib/cascader/cascader.less +16 -0
  246. package/lib/cascader/index.d.ts +3 -7
  247. package/lib/cascader/index.d.ts.map +1 -1
  248. package/lib/cascader/index.js +5 -10
  249. package/lib/cascader/index.js.map +1 -1
  250. package/lib/check-card/group.js +8 -8
  251. package/lib/check-card/index.js +6 -6
  252. package/lib/checkbox/check.png +0 -0
  253. package/lib/checkbox/checkbox.d.ts +16 -0
  254. package/lib/checkbox/checkbox.d.ts.map +1 -0
  255. package/lib/checkbox/checkbox.js +65 -0
  256. package/lib/checkbox/checkbox.js.map +1 -0
  257. package/lib/checkbox/checkbox.less +69 -0
  258. package/lib/checkbox/index.d.ts +3 -3
  259. package/lib/checkbox/index.d.ts.map +1 -1
  260. package/lib/checkbox/index.js +2 -17
  261. package/lib/checkbox/index.js.map +1 -1
  262. package/lib/color-picker/ColorPicker.js +6 -6
  263. package/lib/color-picker/index.js +1 -1
  264. package/lib/columns/index.js +1 -1
  265. package/lib/config-provider/config-provider.js +1 -1
  266. package/lib/date-picker/DatePicker.d.ts +21 -0
  267. package/lib/date-picker/DatePicker.d.ts.map +1 -0
  268. package/lib/date-picker/DatePicker.js +128 -0
  269. package/lib/date-picker/DatePicker.js.map +1 -0
  270. package/lib/date-picker/index.d.ts +2 -6
  271. package/lib/date-picker/index.d.ts.map +1 -1
  272. package/lib/date-picker/index.js +6 -37
  273. package/lib/date-picker/index.js.map +1 -1
  274. package/lib/date-picker/index.less +294 -0
  275. package/lib/date-picker/style/Calendar.less +1 -1
  276. package/lib/descriptions/descriptions.js +5 -5
  277. package/lib/descriptions/descriptions.less +1 -0
  278. package/lib/descriptions/index.d.ts +1 -1
  279. package/lib/descriptions/index.d.ts.map +1 -1
  280. package/lib/descriptions/index.js +7 -7
  281. package/lib/descriptions/index.js.map +1 -1
  282. package/lib/development-login/LoginModal.js +6 -6
  283. package/lib/development-login/index.js +4 -4
  284. package/lib/drawer/drawer.d.ts +3 -3
  285. package/lib/drawer/drawer.d.ts.map +1 -1
  286. package/lib/drawer/drawer.js +7 -7
  287. package/lib/drawer/drawer.js.map +1 -1
  288. package/lib/drawer/index.less +15 -1
  289. package/lib/drawer/style/drawer.less +18 -3
  290. package/lib/drawer/style/index.d.ts +1 -0
  291. package/lib/drawer/style/index.d.ts.map +1 -1
  292. package/lib/drawer/style/index.js +2 -1
  293. package/lib/drawer/style/index.js.map +1 -1
  294. package/lib/ellipsis/Svg/CopySVG.js +1 -1
  295. package/lib/ellipsis/Svg/TickSVG.js +1 -1
  296. package/lib/ellipsis/index.js +5 -5
  297. package/lib/empty/empty.js +2 -2
  298. package/lib/empty/empty.stories.js +2 -2
  299. package/lib/exception/exception.js +1 -1
  300. package/lib/form/form.js +2 -2
  301. package/lib/form/style/index.less +6 -0
  302. package/lib/grid-v4/col.js +2 -2
  303. package/lib/grid-v4/hooks/useBreakpoint.js +1 -1
  304. package/lib/grid-v4/index.js +1 -1
  305. package/lib/grid-v4/row.js +6 -6
  306. package/lib/handle/index.d.ts.map +1 -1
  307. package/lib/handle/index.js +16 -11
  308. package/lib/handle/index.js.map +1 -1
  309. package/lib/handle/index.less +16 -0
  310. package/lib/handle-icon/index.js +11 -11
  311. package/lib/icon/IconFont.js +1 -1
  312. package/lib/icon/components/Icon.js +9 -9
  313. package/lib/icon/components/index.js +1 -1
  314. package/lib/icon/components/utils.js +3 -3
  315. package/lib/icon/index.js +7 -7
  316. package/lib/icon/twoTonePrimaryColor.js +1 -1
  317. package/lib/icon/utils.js +1 -1
  318. package/lib/img/Contain.js +1 -1
  319. package/lib/img/Cover.js +5 -5
  320. package/lib/img/index.js +5 -5
  321. package/lib/index.js +1 -1
  322. package/lib/input/index.d.ts +1 -1
  323. package/lib/input/index.d.ts.map +1 -1
  324. package/lib/input/index.js +7 -7
  325. package/lib/input/index.js.map +1 -1
  326. package/lib/input/input.d.ts +5 -5
  327. package/lib/input/input.d.ts.map +1 -1
  328. package/lib/input/input.js +13 -22
  329. package/lib/input/input.js.map +1 -1
  330. package/lib/input/input.less +123 -20
  331. package/lib/input-number/index.d.ts +4 -10
  332. package/lib/input-number/index.d.ts.map +1 -1
  333. package/lib/input-number/index.js +5 -32
  334. package/lib/input-number/index.js.map +1 -1
  335. package/lib/input-number/inputNumber.d.ts +10 -0
  336. package/lib/input-number/inputNumber.d.ts.map +1 -0
  337. package/lib/input-number/inputNumber.js +54 -0
  338. package/lib/input-number/inputNumber.js.map +1 -0
  339. package/lib/input-number/inputNumber.less +12 -0
  340. package/lib/label/index.js +2 -2
  341. package/lib/loading-button/index.js +5 -5
  342. package/lib/locale/default.d.ts +7 -3
  343. package/lib/locale/default.d.ts.map +1 -1
  344. package/lib/locale/default.js +1 -1
  345. package/lib/locale/en_US.d.ts +7 -3
  346. package/lib/locale/en_US.d.ts.map +1 -1
  347. package/lib/locale/en_US.js +10 -6
  348. package/lib/locale/en_US.js.map +1 -1
  349. package/lib/locale/zh_CN.d.ts +7 -3
  350. package/lib/locale/zh_CN.d.ts.map +1 -1
  351. package/lib/locale/zh_CN.js +8 -4
  352. package/lib/locale/zh_CN.js.map +1 -1
  353. package/lib/message/message.less +2 -1
  354. package/lib/modal/index.d.ts +0 -1
  355. package/lib/modal/index.d.ts.map +1 -1
  356. package/lib/modal/index.js +2 -3
  357. package/lib/modal/index.js.map +1 -1
  358. package/lib/modal/index.less +36 -0
  359. package/lib/modal/modal.d.ts.map +1 -1
  360. package/lib/modal/modal.js +91 -16
  361. package/lib/modal/modal.js.map +1 -1
  362. package/lib/modal/style/index.d.ts +1 -0
  363. package/lib/modal/style/index.d.ts.map +1 -1
  364. package/lib/modal/style/index.js +2 -1
  365. package/lib/modal/style/index.js.map +1 -1
  366. package/lib/modal/style/modal.less +15 -3
  367. package/lib/notification/assets/index.js +1 -1
  368. package/lib/notification/assets/svg-error-tip.d.ts +1 -1
  369. package/lib/notification/assets/svg-success-tip.d.ts +1 -1
  370. package/lib/notification/index.js +1 -1
  371. package/lib/notification/notification.js +1 -1
  372. package/lib/notification/notification.less +27 -2
  373. package/lib/notification/style/index.less +1 -0
  374. package/lib/page/Box.js +1 -1
  375. package/lib/page/index.js +7 -7
  376. package/lib/page-container/index.js +2 -2
  377. package/lib/page-container/index.js.map +1 -1
  378. package/lib/page-container/index.less +3 -2
  379. package/lib/page-loading/index.js +2 -2
  380. package/lib/page-loading/index.js.map +1 -1
  381. package/lib/popconfirm/index.d.ts +2 -2
  382. package/lib/popconfirm/index.d.ts.map +1 -1
  383. package/lib/popconfirm/index.js +1 -1
  384. package/lib/popconfirm/index.js.map +1 -1
  385. package/lib/popconfirm/index.less +32 -0
  386. package/lib/popconfirm/popconfirm.d.ts +8 -0
  387. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  388. package/lib/popconfirm/popconfirm.js +61 -0
  389. package/lib/popconfirm/popconfirm.js.map +1 -0
  390. package/lib/popconfirm/style/index.d.ts +1 -0
  391. package/lib/popconfirm/style/index.d.ts.map +1 -1
  392. package/lib/popconfirm/style/index.js +2 -1
  393. package/lib/popconfirm/style/index.js.map +1 -1
  394. package/lib/popover/index.d.ts +2 -2
  395. package/lib/popover/index.d.ts.map +1 -1
  396. package/lib/popover/index.js +2 -2
  397. package/lib/popover/index.js.map +1 -1
  398. package/lib/popover/index.less +57 -0
  399. package/lib/popover/popover.d.ts +14 -0
  400. package/lib/popover/popover.d.ts.map +1 -0
  401. package/lib/popover/popover.js +55 -0
  402. package/lib/popover/popover.js.map +1 -0
  403. package/lib/popover/style/index.d.ts +1 -0
  404. package/lib/popover/style/index.d.ts.map +1 -1
  405. package/lib/popover/style/index.js +2 -1
  406. package/lib/popover/style/index.js.map +1 -1
  407. package/lib/prev-locale.d.ts +1 -1
  408. package/lib/prev-locale.d.ts.map +1 -1
  409. package/lib/prev-locale.js +1 -1
  410. package/lib/prev-locale.js.map +1 -1
  411. package/lib/preview-text/index.d.ts +1 -1
  412. package/lib/preview-text/index.d.ts.map +1 -1
  413. package/lib/preview-text/index.js +7 -7
  414. package/lib/preview-text/index.js.map +1 -1
  415. package/lib/progress/index.d.ts +2 -2
  416. package/lib/progress/index.d.ts.map +1 -1
  417. package/lib/progress/index.js +1 -1
  418. package/lib/progress/index.js.map +1 -1
  419. package/lib/progress/progress.d.ts +12 -0
  420. package/lib/progress/progress.d.ts.map +1 -0
  421. package/lib/progress/progress.js +148 -0
  422. package/lib/progress/progress.js.map +1 -0
  423. package/lib/progress/progress.less +82 -0
  424. package/lib/query-form/Field/Checkbox.js +1 -1
  425. package/lib/query-form/Field/Composition/FieldPopover.d.ts +19 -0
  426. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
  427. package/lib/query-form/Field/Composition/FieldPopover.js +338 -0
  428. package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
  429. package/lib/query-form/Field/Composition/FieldPopover.less +35 -0
  430. package/lib/query-form/Field/Composition/Select.d.ts +4 -0
  431. package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
  432. package/lib/query-form/Field/Composition/Select.js +146 -0
  433. package/lib/query-form/Field/Composition/Select.js.map +1 -0
  434. package/lib/query-form/Field/Composition/ValueTag.d.ts +12 -0
  435. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +1 -0
  436. package/lib/query-form/Field/Composition/ValueTag.js +153 -0
  437. package/lib/query-form/Field/Composition/ValueTag.js.map +1 -0
  438. package/lib/query-form/Field/Composition/index.d.ts +12 -0
  439. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  440. package/lib/query-form/Field/Composition/index.js +277 -0
  441. package/lib/query-form/Field/Composition/index.js.map +1 -0
  442. package/lib/query-form/Field/Composition/index.less +120 -0
  443. package/lib/query-form/Field/Composition/utils.d.ts +22 -0
  444. package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
  445. package/lib/query-form/Field/Composition/utils.js +168 -0
  446. package/lib/query-form/Field/Composition/utils.js.map +1 -0
  447. package/lib/query-form/Field/Select.js +6 -6
  448. package/lib/query-form/Field/SelectInput.js +6 -6
  449. package/lib/query-form/Field/fieldsMap.js +1 -1
  450. package/lib/query-form/Field/index.js +10 -10
  451. package/lib/query-form/createActions.js +1 -1
  452. package/lib/query-form/index.js +10 -10
  453. package/lib/query-form/useForm.js +1 -1
  454. package/lib/query-form-backup/Field/Composition/FieldPopover.less +35 -0
  455. package/lib/query-form-backup/Field/Composition/index.less +114 -0
  456. package/lib/query-form-backup/index.less +90 -0
  457. package/lib/query-form-v2/Field/Checkbox.d.ts +8 -0
  458. package/lib/query-form-v2/Field/Checkbox.d.ts.map +1 -0
  459. package/lib/query-form-v2/Field/Checkbox.js +28 -0
  460. package/lib/query-form-v2/Field/Checkbox.js.map +1 -0
  461. package/lib/query-form-v2/Field/Select.d.ts +4 -0
  462. package/lib/query-form-v2/Field/Select.d.ts.map +1 -0
  463. package/lib/query-form-v2/Field/Select.js +80 -0
  464. package/lib/query-form-v2/Field/Select.js.map +1 -0
  465. package/lib/query-form-v2/Field/SelectInput.d.ts +4 -0
  466. package/lib/query-form-v2/Field/SelectInput.d.ts.map +1 -0
  467. package/lib/query-form-v2/Field/SelectInput.js +88 -0
  468. package/lib/query-form-v2/Field/SelectInput.js.map +1 -0
  469. package/lib/query-form-v2/Field/fieldsMap.d.ts +24 -0
  470. package/lib/query-form-v2/Field/fieldsMap.d.ts.map +1 -0
  471. package/lib/query-form-v2/Field/fieldsMap.js +35 -0
  472. package/lib/query-form-v2/Field/fieldsMap.js.map +1 -0
  473. package/lib/query-form-v2/Field/index.d.ts +14 -0
  474. package/lib/query-form-v2/Field/index.d.ts.map +1 -0
  475. package/lib/query-form-v2/Field/index.js +146 -0
  476. package/lib/query-form-v2/Field/index.js.map +1 -0
  477. package/lib/query-form-v2/createActions.d.ts +14 -0
  478. package/lib/query-form-v2/createActions.d.ts.map +1 -0
  479. package/lib/query-form-v2/createActions.js +54 -0
  480. package/lib/query-form-v2/createActions.js.map +1 -0
  481. package/lib/query-form-v2/index.d.ts +39 -0
  482. package/lib/query-form-v2/index.d.ts.map +1 -0
  483. package/lib/query-form-v2/index.js +391 -0
  484. package/lib/query-form-v2/index.js.map +1 -0
  485. package/lib/query-form-v2/index.less +133 -0
  486. package/lib/query-form-v2/useForm.d.ts +13 -0
  487. package/lib/query-form-v2/useForm.d.ts.map +1 -0
  488. package/lib/query-form-v2/useForm.js +13 -0
  489. package/lib/query-form-v2/useForm.js.map +1 -0
  490. package/lib/query-form-v3/Field/Checkbox.d.ts +8 -0
  491. package/lib/query-form-v3/Field/Checkbox.d.ts.map +1 -0
  492. package/lib/query-form-v3/Field/Checkbox.js +28 -0
  493. package/lib/query-form-v3/Field/Checkbox.js.map +1 -0
  494. package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts +19 -0
  495. package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts.map +1 -0
  496. package/lib/query-form-v3/Field/Composition/FieldPopover.js +381 -0
  497. package/lib/query-form-v3/Field/Composition/FieldPopover.js.map +1 -0
  498. package/lib/query-form-v3/Field/Composition/FieldPopover.less +35 -0
  499. package/lib/query-form-v3/Field/Composition/Select.d.ts +4 -0
  500. package/lib/query-form-v3/Field/Composition/Select.d.ts.map +1 -0
  501. package/lib/query-form-v3/Field/Composition/Select.js +131 -0
  502. package/lib/query-form-v3/Field/Composition/Select.js.map +1 -0
  503. package/lib/query-form-v3/Field/Composition/index.d.ts +10 -0
  504. package/lib/query-form-v3/Field/Composition/index.d.ts.map +1 -0
  505. package/lib/query-form-v3/Field/Composition/index.js +255 -0
  506. package/lib/query-form-v3/Field/Composition/index.js.map +1 -0
  507. package/lib/query-form-v3/Field/Composition/index.less +118 -0
  508. package/lib/query-form-v3/Field/Composition/utils.d.ts +22 -0
  509. package/lib/query-form-v3/Field/Composition/utils.d.ts.map +1 -0
  510. package/lib/query-form-v3/Field/Composition/utils.js +147 -0
  511. package/lib/query-form-v3/Field/Composition/utils.js.map +1 -0
  512. package/lib/query-form-v3/Field/Select.d.ts +4 -0
  513. package/lib/query-form-v3/Field/Select.d.ts.map +1 -0
  514. package/lib/query-form-v3/Field/Select.js +80 -0
  515. package/lib/query-form-v3/Field/Select.js.map +1 -0
  516. package/lib/query-form-v3/Field/SelectInput.d.ts +4 -0
  517. package/lib/query-form-v3/Field/SelectInput.d.ts.map +1 -0
  518. package/lib/query-form-v3/Field/SelectInput.js +100 -0
  519. package/lib/query-form-v3/Field/SelectInput.js.map +1 -0
  520. package/lib/query-form-v3/Field/fieldsMap.d.ts +27 -0
  521. package/lib/query-form-v3/Field/fieldsMap.d.ts.map +1 -0
  522. package/lib/query-form-v3/Field/fieldsMap.js +35 -0
  523. package/lib/query-form-v3/Field/fieldsMap.js.map +1 -0
  524. package/lib/query-form-v3/Field/index.d.ts +14 -0
  525. package/lib/query-form-v3/Field/index.d.ts.map +1 -0
  526. package/lib/query-form-v3/Field/index.js +147 -0
  527. package/lib/query-form-v3/Field/index.js.map +1 -0
  528. package/lib/query-form-v3/createActions.d.ts +14 -0
  529. package/lib/query-form-v3/createActions.d.ts.map +1 -0
  530. package/lib/query-form-v3/createActions.js +54 -0
  531. package/lib/query-form-v3/createActions.js.map +1 -0
  532. package/lib/query-form-v3/index.d.ts +27 -0
  533. package/lib/query-form-v3/index.d.ts.map +1 -0
  534. package/lib/query-form-v3/index.js +206 -0
  535. package/lib/query-form-v3/index.js.map +1 -0
  536. package/lib/query-form-v3/index.less +91 -0
  537. package/lib/query-form-v3/useForm.d.ts +13 -0
  538. package/lib/query-form-v3/useForm.d.ts.map +1 -0
  539. package/lib/query-form-v3/useForm.js +13 -0
  540. package/lib/query-form-v3/useForm.js.map +1 -0
  541. package/lib/query-list-scene/List.d.ts.map +1 -1
  542. package/lib/query-list-scene/List.js +16 -14
  543. package/lib/query-list-scene/List.js.map +1 -1
  544. package/lib/query-list-scene/QueryForm.js +11 -12
  545. package/lib/query-list-scene/QueryForm.js.map +1 -1
  546. package/lib/query-list-scene/QueryListScene.js +10 -10
  547. package/lib/query-list-scene/Title.js +1 -1
  548. package/lib/query-list-scene/Toolbar.js +2 -2
  549. package/lib/query-list-scene/createActions.js +1 -1
  550. package/lib/query-list-scene/index.js +1 -1
  551. package/lib/query-list-scene/index.less +7 -7
  552. package/lib/query-list-scene/useActions.js +1 -1
  553. package/lib/radio/index.d.ts +3 -2
  554. package/lib/radio/index.d.ts.map +1 -1
  555. package/lib/radio/index.js +2 -5
  556. package/lib/radio/index.js.map +1 -1
  557. package/lib/radio/radio.d.ts +17 -0
  558. package/lib/radio/radio.d.ts.map +1 -0
  559. package/lib/radio/radio.js +75 -0
  560. package/lib/radio/radio.js.map +1 -0
  561. package/lib/radio/radio.less +43 -0
  562. package/lib/render-empty/render-empty.js +1 -1
  563. package/lib/scroll-bar/Bar.d.ts +4 -0
  564. package/lib/scroll-bar/Bar.d.ts.map +1 -0
  565. package/lib/scroll-bar/Bar.js +91 -0
  566. package/lib/scroll-bar/Bar.js.map +1 -0
  567. package/lib/scroll-bar/Context.d.ts +7 -0
  568. package/lib/scroll-bar/Context.d.ts.map +1 -0
  569. package/lib/scroll-bar/Context.js +13 -0
  570. package/lib/scroll-bar/Context.js.map +1 -0
  571. package/lib/scroll-bar/ScrollBar.d.ts +4 -0
  572. package/lib/scroll-bar/ScrollBar.d.ts.map +1 -0
  573. package/lib/scroll-bar/ScrollBar.js +97 -0
  574. package/lib/scroll-bar/ScrollBar.js.map +1 -0
  575. package/lib/scroll-bar/Thumb.d.ts +3 -0
  576. package/lib/scroll-bar/Thumb.d.ts.map +1 -0
  577. package/lib/scroll-bar/Thumb.js +125 -0
  578. package/lib/scroll-bar/Thumb.js.map +1 -0
  579. package/lib/scroll-bar/index.d.ts +3 -0
  580. package/lib/scroll-bar/index.d.ts.map +1 -0
  581. package/lib/scroll-bar/index.js +10 -0
  582. package/lib/scroll-bar/index.js.map +1 -0
  583. package/lib/scroll-bar/scrollBar.less +59 -0
  584. package/lib/scroll-bar/util.d.ts +40 -0
  585. package/lib/scroll-bar/util.d.ts.map +1 -0
  586. package/lib/scroll-bar/util.js +39 -0
  587. package/lib/scroll-bar/util.js.map +1 -0
  588. package/lib/segmented/index.d.ts +1 -1
  589. package/lib/segmented/index.js +2 -2
  590. package/lib/segmented/index.less +126 -112
  591. package/lib/select/index.d.ts +1 -1
  592. package/lib/select/index.d.ts.map +1 -1
  593. package/lib/select/index.js +6 -6
  594. package/lib/select/index.js.map +1 -1
  595. package/lib/select/select.d.ts +1 -1
  596. package/lib/select/select.d.ts.map +1 -1
  597. package/lib/select/select.js +5 -6
  598. package/lib/select/select.js.map +1 -1
  599. package/lib/select/select.less +83 -9
  600. package/lib/select/style/index.less +4 -4
  601. package/lib/spin/index.d.ts +3 -2
  602. package/lib/spin/index.d.ts.map +1 -1
  603. package/lib/spin/index.js +4 -6
  604. package/lib/spin/index.js.map +1 -1
  605. package/lib/spin/spin.d.ts +9 -0
  606. package/lib/spin/spin.d.ts.map +1 -0
  607. package/lib/spin/spin.js +44 -0
  608. package/lib/spin/spin.js.map +1 -0
  609. package/lib/spin/spin.less +9 -0
  610. package/lib/steps/assets/background_left.svg +12 -0
  611. package/lib/steps/assets/background_right.svg +12 -0
  612. package/lib/steps/assets/horizontal_line.svg +3 -0
  613. package/lib/steps/assets/vertical_line.svg +3 -0
  614. package/lib/steps/index.d.ts +1 -2
  615. package/lib/steps/index.d.ts.map +1 -1
  616. package/lib/steps/index.js +9 -2
  617. package/lib/steps/index.js.map +1 -1
  618. package/lib/steps/stepStyle/icon.less +51 -0
  619. package/lib/steps/stepStyle/index.less +173 -8
  620. package/lib/steps/stepStyle/nav.less +51 -259
  621. package/lib/steps/stepStyle/progress-dot.less +10 -0
  622. package/lib/steps/stepStyle/variables.less +8 -0
  623. package/lib/steps/stepStyle/vertical.less +41 -0
  624. package/lib/steps/steps.d.ts +10 -2
  625. package/lib/steps/steps.d.ts.map +1 -1
  626. package/lib/steps/steps.js +52 -24
  627. package/lib/steps/steps.js.map +1 -1
  628. package/lib/steps/style/index.d.ts.map +1 -1
  629. package/lib/steps/style/index.js.map +1 -1
  630. package/lib/style/themes/default.less +6 -5
  631. package/lib/svg-components/illustration-403.d.ts +1 -1
  632. package/lib/svg-components/illustration-404.d.ts +1 -1
  633. package/lib/svg-components/illustration-500.d.ts +1 -1
  634. package/lib/svg-components/illustration-empty.d.ts +1 -1
  635. package/lib/svg-components/illustration-failure.d.ts +1 -1
  636. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  637. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  638. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  639. package/lib/svg-components/illustration-offline.d.ts +1 -1
  640. package/lib/svg-components/illustration-success.d.ts +1 -1
  641. package/lib/svg-components/index.js +1 -1
  642. package/lib/switch/index.less +45 -0
  643. package/lib/switch/style/index.d.ts +1 -0
  644. package/lib/switch/style/index.d.ts.map +1 -1
  645. package/lib/switch/style/index.js +2 -1
  646. package/lib/switch/style/index.js.map +1 -1
  647. package/lib/switch/switch.d.ts +8 -0
  648. package/lib/switch/switch.d.ts.map +1 -1
  649. package/lib/switch/switch.js +40 -5
  650. package/lib/switch/switch.js.map +1 -1
  651. package/lib/table/assets/image-loading-background.d.ts +1 -1
  652. package/lib/table/assets/image-loading.d.ts +1 -1
  653. package/lib/table/hooks/use-column-setting.js +4 -4
  654. package/lib/table/hooks/use-expand-fixed.js +6 -6
  655. package/lib/table/hooks/use-expand-fixed.js.map +1 -1
  656. package/lib/table/resizableTable/index.js +6 -6
  657. package/lib/table/style/index.less +19 -21
  658. package/lib/table/style/size.less +11 -12
  659. package/lib/table/table-hoc.js +1 -1
  660. package/lib/table/table.d.ts +2 -1
  661. package/lib/table/table.d.ts.map +1 -1
  662. package/lib/table/table.js +63 -41
  663. package/lib/table/table.js.map +1 -1
  664. package/lib/table/table.less +31 -6
  665. package/lib/table/table.stories.js +5 -5
  666. package/lib/table/table.stories.js.map +1 -1
  667. package/lib/table/total-shower.js +1 -1
  668. package/lib/table/utils.js +1 -1
  669. package/lib/table-container/index.d.ts.map +1 -1
  670. package/lib/table-container/index.js +7 -3
  671. package/lib/table-container/index.js.map +1 -1
  672. package/lib/table-container/index.less +4 -1
  673. package/lib/tabs/index.d.ts +1 -0
  674. package/lib/tabs/index.d.ts.map +1 -1
  675. package/lib/tabs/index.js +6 -5
  676. package/lib/tabs/index.js.map +1 -1
  677. package/lib/tabs/style/index.js.map +1 -1
  678. package/lib/tabs/style/index.less +1 -0
  679. package/lib/tabs/tabs.d.ts +3 -2
  680. package/lib/tabs/tabs.d.ts.map +1 -1
  681. package/lib/tabs/tabs.js +30 -3
  682. package/lib/tabs/tabs.js.map +1 -1
  683. package/lib/tabs/tabs.less +125 -0
  684. package/lib/tabs-container/index.js +2 -2
  685. package/lib/tabs-container/index.js.map +1 -1
  686. package/lib/tag/tag.js +2 -2
  687. package/lib/tag/tag.less +4 -3
  688. package/lib/time-picker/TimePicker.d.ts +9 -0
  689. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  690. package/lib/time-picker/TimePicker.js +55 -0
  691. package/lib/time-picker/TimePicker.js.map +1 -0
  692. package/lib/time-picker/index.d.ts +7 -6
  693. package/lib/time-picker/index.d.ts.map +1 -1
  694. package/lib/time-picker/index.js +4 -17
  695. package/lib/time-picker/index.js.map +1 -1
  696. package/lib/time-picker/index.less +38 -0
  697. package/lib/title/index.js +1 -1
  698. package/lib/title/index.less +47 -45
  699. package/lib/tntd-action/Action.d.ts +6 -0
  700. package/lib/tntd-action/Action.d.ts.map +1 -0
  701. package/lib/tntd-action/Action.js +141 -0
  702. package/lib/tntd-action/Action.js.map +1 -0
  703. package/lib/tntd-action/index.d.ts +4 -2
  704. package/lib/tntd-action/index.d.ts.map +1 -1
  705. package/lib/tntd-action/index.js +79 -5
  706. package/lib/tntd-action/index.js.map +1 -1
  707. package/lib/tntd-action/index.less +59 -0
  708. package/lib/tntd-cascader/AntdCascader/component/context.js +1 -1
  709. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  710. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  711. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  712. package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
  713. package/lib/tntd-cascader/AntdCascader/config/utils.js +2 -2
  714. package/lib/tntd-cascader/AntdCascader/index.js +7 -7
  715. package/lib/tntd-cascader/AntdCascader/index.less +35 -29
  716. package/lib/tntd-cascader/index.js +1 -1
  717. package/lib/tntd-cascader/rc-cascader/Cascader.js +8 -8
  718. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  719. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
  720. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  721. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  722. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  723. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  724. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  725. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  726. package/lib/tntd-cascader/rc-cascader/index.js +1 -1
  727. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  728. package/lib/tntd-form/ErrorList.js +7 -7
  729. package/lib/tntd-form/Form.js +6 -6
  730. package/lib/tntd-form/FormItem/ItemHolder.js +6 -6
  731. package/lib/tntd-form/FormItem/index.js +8 -8
  732. package/lib/tntd-form/FormItemInput.js +1 -1
  733. package/lib/tntd-form/FormItemLabel.js +2 -2
  734. package/lib/tntd-form/FormList.js +1 -1
  735. package/lib/tntd-form/context.js +1 -1
  736. package/lib/tntd-form/hooks/useDebounce.js +4 -4
  737. package/lib/tntd-form/hooks/useForm.js +5 -5
  738. package/lib/tntd-form/hooks/useFormItemStatus.js +1 -1
  739. package/lib/tntd-form/hooks/useFrameState.js +5 -5
  740. package/lib/tntd-form/index.js +1 -1
  741. package/lib/tntd-icon/index.js +1 -1
  742. package/lib/tntd-layout/AppList.js +6 -6
  743. package/lib/tntd-layout/Application.js +6 -6
  744. package/lib/tntd-layout/Avatar.js +2 -2
  745. package/lib/tntd-layout/CompatibleLanguage.js +6 -6
  746. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  747. package/lib/tntd-layout/EnterpriseLayout/Language.js +6 -6
  748. package/lib/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  749. package/lib/tntd-layout/EnterpriseLayout/index.js +1 -1
  750. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  751. package/lib/tntd-layout/GlobalNavigation/index.js +9 -9
  752. package/lib/tntd-layout/Header.js +2 -2
  753. package/lib/tntd-layout/HeaderActions.js +2 -2
  754. package/lib/tntd-layout/HeaderNavs.js +6 -6
  755. package/lib/tntd-layout/HeaderTabs.js +7 -7
  756. package/lib/tntd-layout/Iconfont.js +1 -1
  757. package/lib/tntd-layout/Language.js +6 -6
  758. package/lib/tntd-layout/Layout.js +6 -6
  759. package/lib/tntd-layout/Logo.js +2 -2
  760. package/lib/tntd-layout/OrgAppList.js +6 -6
  761. package/lib/tntd-layout/SideMenu.js +6 -6
  762. package/lib/tntd-layout/Theme.js +6 -6
  763. package/lib/tntd-layout/createActions.js +1 -1
  764. package/lib/tntd-layout/images/index.js +1 -1
  765. package/lib/tntd-layout/index.js +1 -1
  766. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  767. package/lib/tntd-layout/paaslayout/Header.js +2 -2
  768. package/lib/tntd-layout/paaslayout/Logo.js +2 -2
  769. package/lib/tntd-layout/paaslayout/SideMenu.js +6 -6
  770. package/lib/tntd-layout/paaslayout/index.js +6 -6
  771. package/lib/tntd-layout/storage.js +1 -1
  772. package/lib/tntd-modal/index.js +6 -6
  773. package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
  774. package/lib/tntd-rc-select/_util/context.js +1 -1
  775. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  776. package/lib/tntd-rc-select/_util/getIcons.js +1 -1
  777. package/lib/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  778. package/lib/tntd-rc-select/index.js +2 -2
  779. package/lib/tntd-reference/AHref/index.js +1 -1
  780. package/lib/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  781. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  782. package/lib/tntd-reference/ReferenceCheck/index.js +1 -1
  783. package/lib/tntd-reference/ReferenceDrawer/index.js +5 -5
  784. package/lib/tntd-reference/ReferenceInfo/index.js +1 -1
  785. package/lib/tntd-reference/index.js +1 -1
  786. package/lib/tntd-second-page/index.js +1 -1
  787. package/lib/tntd-select/DropDownWrap.js +8 -8
  788. package/lib/tntd-select/index.d.ts.map +1 -1
  789. package/lib/tntd-select/index.js +13 -13
  790. package/lib/tntd-select/index.js.map +1 -1
  791. package/lib/tntd-select/index.less +7 -0
  792. package/lib/tntd-virtual-tree/index.js +8 -8
  793. package/lib/tntd-virtual-tree/index.less +2 -1
  794. package/lib/tntd-virtual-tree/utils.js +28 -28
  795. package/lib/tntd-virtual-tree-select/index.js +10 -10
  796. package/lib/tntd-virtual-tree-select/index.less +1 -1
  797. package/lib/tntd-virtual-tree-select/utils.js +9 -9
  798. package/lib/tooltip/index.less +4 -5
  799. package/lib/tooltip/style/index.d.ts +1 -0
  800. package/lib/tooltip/style/index.d.ts.map +1 -1
  801. package/lib/tooltip/style/index.js +2 -1
  802. package/lib/tooltip/style/index.js.map +1 -1
  803. package/lib/tooltip/tooltip.js +1 -1
  804. package/lib/upload/index.d.ts.map +1 -1
  805. package/lib/upload/index.js +7 -8
  806. package/lib/upload/index.js.map +1 -1
  807. package/lib/upload/style/index.less +1 -1
  808. package/lib/upload/svg/UploadSVG.js +1 -1
  809. package/lib/upload/upload.less +5 -12
  810. package/lib/utils/checkAuth.js +4 -4
  811. package/lib/utils/index.d.ts +0 -1
  812. package/lib/utils/index.d.ts.map +1 -1
  813. package/lib/utils/index.js +9 -21
  814. package/lib/utils/index.js.map +1 -1
  815. package/lib/utils/lang.d.ts.map +1 -1
  816. package/lib/utils/lang.js +10 -4
  817. package/lib/utils/lang.js.map +1 -1
  818. package/lib/water-mark/index.js +5 -5
  819. package/package.json +2 -2
  820. package/CHANGELOG.json +0 -1034
  821. package/CHANGELOG.md +0 -605
  822. package/es/checkbox/checkbox-group.js +0 -5
  823. package/es/checkbox/checkbox-group.js.map +0 -1
  824. package/es/radio/radio-group.js +0 -5
  825. package/es/radio/radio-group.js.map +0 -1
  826. package/es/steps/stepStyle/small.less +0 -5
  827. package/lib/checkbox/checkbox-group.d.ts +0 -8
  828. package/lib/checkbox/checkbox-group.d.ts.map +0 -1
  829. package/lib/checkbox/checkbox-group.js +0 -12
  830. package/lib/checkbox/checkbox-group.js.map +0 -1
  831. package/lib/radio/radio-group.d.ts +0 -8
  832. package/lib/radio/radio-group.d.ts.map +0 -1
  833. package/lib/radio/radio-group.js +0 -12
  834. package/lib/radio/radio-group.js.map +0 -1
  835. package/lib/steps/stepStyle/small.less +0 -5
@@ -10,20 +10,20 @@ var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _Title = _interopRequireDefault(require("./Title"));
11
11
  var _Toolbar = _interopRequireDefault(require("./Toolbar"));
12
12
  var _createActions = _interopRequireDefault(require("./createActions"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
20
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
21
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
22
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
22
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
23
23
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
24
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
25
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
25
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
26
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
27
27
  var QueryListScene = exports["default"] = /*#__PURE__*/function (_React$Component) {
28
28
  function QueryListScene(props) {
29
29
  var _this;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
9
  /**
10
10
  * @file Title
11
11
  * @author zhangyou
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _classnames = _interopRequireDefault(require("classnames"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  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); }
11
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
12
12
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
13
13
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
14
  var __rest = void 0 && (void 0).__rest || function (s, e) {
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
  var _set2 = _interopRequireDefault(require("lodash/set"));
8
8
  var _get2 = _interopRequireDefault(require("lodash/get"));
9
9
  var _eventemitter = _interopRequireDefault(require("eventemitter3"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
11
  var _default = exports["default"] = function _default() {
12
12
  var eventEmitter = new _eventemitter["default"]();
13
13
  var data = {
@@ -12,7 +12,7 @@ var _List = _interopRequireDefault(require("./List"));
12
12
  var _createActions = _interopRequireDefault(require("./createActions"));
13
13
  var _useActions = _interopRequireDefault(require("./useActions"));
14
14
  require("./index.less");
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
16
  var QueryForm = exports.QueryForm = _QueryForm["default"];
17
17
  var QueryList = exports.QueryList = _List["default"];
18
18
  var createActions = exports.createActions = _createActions["default"];
@@ -25,8 +25,8 @@
25
25
  &-toolbar {
26
26
  padding: 12px 16px 12px;
27
27
  background: #fff;
28
- box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.06);
29
- border-radius: 4px 4px 0 0;
28
+ // box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.06);
29
+ border-radius: @table-border-radius-base @table-border-radius-base 0 0;
30
30
 
31
31
  & > *:not(:last-child) {
32
32
  margin-right: 12px;
@@ -40,10 +40,10 @@
40
40
 
41
41
  &-list {
42
42
  background: #fff;
43
- box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.06);
44
- border-radius: 4px;
43
+ // box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.06);
44
+ border-radius: @table-border-radius-base;
45
45
  .hasToolbar & {
46
- border-radius: 0 0 4px 4px;
46
+ border-radius: 0 0 @table-border-radius-base @table-border-radius-base;
47
47
  }
48
48
 
49
49
  .ant-table-pagination.ant-pagination {
@@ -54,8 +54,8 @@
54
54
  padding: 12px 16px;
55
55
  background: #fff;
56
56
  margin-top: 0;
57
- border-radius: 0 0 4px 4px;
58
- box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.06);
57
+ border-radius: 0 0 @table-border-radius-base @table-border-radius-base;
58
+ // box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.06);
59
59
  z-index: 1;
60
60
  // .ant-pagination-item {
61
61
  // height: 28px;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = useActions;
7
7
  var _react = require("react");
8
8
  var _createActions = _interopRequireDefault(require("./createActions"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  function useActions() {
11
11
  var actions = (0, _react.useRef)((0, _createActions["default"])());
12
12
  return actions.current;
@@ -1,5 +1,6 @@
1
- import Radio from 'antd/lib/radio';
1
+ import Radio from './radio';
2
2
  import './style';
3
- export * from 'antd/lib/radio';
3
+ import './radio.less';
4
+ export * from './radio';
4
5
  export default Radio;
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,eAAe,CAAA;AAEjC,OAAO,SAAS,CAAA;AAEhB,cAAc,eAAe,CAAA;AAK7B,eAAe,KAAK,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,SAAS,CAAA;AAChB,OAAO,cAAc,CAAA;AAErB,cAAc,SAAS,CAAA;AAEvB,eAAe,KAAK,CAAA"}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  var _exportNames = {};
8
8
  exports["default"] = void 0;
9
- var _radio = _interopRequireWildcard(require("antd/lib/radio"));
9
+ var _radio = _interopRequireWildcard(require("./radio"));
10
10
  Object.keys(_radio).forEach(function (key) {
11
11
  if (key === "default" || key === "__esModule") return;
12
12
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -18,11 +18,8 @@ Object.keys(_radio).forEach(function (key) {
18
18
  }
19
19
  });
20
20
  });
21
- var _radioGroup = _interopRequireDefault(require("./radio-group"));
22
21
  require("./style");
23
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
22
+ require("./radio.less");
24
23
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
25
24
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
26
- // @ts-ignore
27
- _radio["default"].Group = _radioGroup["default"];
28
25
  var _default = exports["default"] = _radio["default"];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/radio/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,0DAAiC;AACjC,gEAAsC;AACtC,mBAAgB;AAEhB,gDAA6B;AAE7B,aAAa;AACb,eAAK,CAAC,KAAK,GAAG,qBAAU,CAAA;AAExB,kBAAe,eAAK,CAAA","sourcesContent":["import Radio from 'antd/lib/radio'\nimport RadioGroup from './radio-group'\nimport './style'\n\nexport * from 'antd/lib/radio'\n\n// @ts-ignore\nRadio.Group = RadioGroup\n\nexport default Radio\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/radio/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,oDAA2B;AAC3B,mBAAgB;AAChB,wBAAqB;AAErB,0CAAuB;AAEvB,kBAAe,eAAK,CAAA","sourcesContent":["import Radio from './radio'\nimport './style'\nimport './radio.less'\n\nexport * from './radio'\n\nexport default Radio\n"]}
@@ -0,0 +1,17 @@
1
+ import type { RadioGroupProps as AntdRadioGroupProps, RadioProps as AntdRadioProps } from 'antd/lib/radio';
2
+ import AntdRadio from 'antd/lib/radio';
3
+ import React from 'react';
4
+ export * from 'antd/lib/radio';
5
+ export declare type RadioProps = AntdRadioProps & {
6
+ desc?: string | React.ReactNode;
7
+ };
8
+ export declare type RadioGroupProps = AntdRadioGroupProps & {
9
+ readonly?: boolean;
10
+ };
11
+ interface RadioComponent extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<AntdRadio>> {
12
+ Group: React.FC<RadioGroupProps>;
13
+ Button: typeof AntdRadio.Button;
14
+ }
15
+ declare const Radio: RadioComponent;
16
+ export default Radio;
17
+ //# sourceMappingURL=radio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/radio/radio.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,eAAe,IAAI,mBAAmB,EACtC,UAAU,IAAI,cAAc,EAC7B,MAAM,eAAe,CAAA;AACtB,OAAO,SAAS,MAAM,eAAe,CAAA;AAGrC,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,cAAc,eAAe,CAAA;AAE7B,oBAAY,UAAU,GAAG,cAAc,GAAG;IACxC,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;CAChC,CAAA;AACD,oBAAY,eAAe,GAAG,mBAAmB,GAAG;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,UAAU,cACR,SAAQ,KAAK,CAAC,yBAAyB,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACpF,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAA;IAChC,MAAM,EAAE,OAAO,SAAS,CAAC,MAAM,CAAA;CAChC;AAID,QAAA,MAAM,KAAK,gBAiBS,CAAA;AAqBpB,eAAe,KAAK,CAAA"}
@@ -0,0 +1,75 @@
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;
@@ -0,0 +1 @@
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"]}
@@ -0,0 +1,43 @@
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
+ }
@@ -7,7 +7,7 @@ exports.renderEmpty = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _configProvider = require("../config-provider");
9
9
  var _empty = require("../empty");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
11
  var renderEmpty = exports.renderEmpty = function renderEmpty(componentName) {
12
12
  return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
13
13
  switch (componentName) {
@@ -0,0 +1,4 @@
1
+ declare var _default: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
2
+ export default _default;
3
+ import React from "react";
4
+ //# sourceMappingURL=Bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bar.d.ts","sourceRoot":"","sources":["../../src/scroll-bar/Bar.js"],"names":[],"mappings":""}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _Context = _interopRequireDefault(require("./Context"));
10
+ var _Thumb = _interopRequireDefault(require("./Thumb"));
11
+ var _util = require("./util");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
16
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
18
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
19
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
20
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
21
+ var _default = exports["default"] = (0, _react.forwardRef)(function (props, ref) {
22
+ var _useContext = (0, _react.useContext)(_Context["default"]),
23
+ wrapElement = _useContext.wrapElement;
24
+ var _useState = (0, _react.useState)(0),
25
+ _useState2 = _slicedToArray(_useState, 2),
26
+ moveX = _useState2[0],
27
+ setMoveX = _useState2[1];
28
+ var _useState3 = (0, _react.useState)(0),
29
+ _useState4 = _slicedToArray(_useState3, 2),
30
+ moveY = _useState4[0],
31
+ setMoveY = _useState4[1];
32
+ var _useState5 = (0, _react.useState)(0),
33
+ _useState6 = _slicedToArray(_useState5, 2),
34
+ sizeWidth = _useState6[0],
35
+ setSizeWidth = _useState6[1];
36
+ var _useState7 = (0, _react.useState)(0),
37
+ _useState8 = _slicedToArray(_useState7, 2),
38
+ sizeHeight = _useState8[0],
39
+ setSizeHeight = _useState8[1];
40
+ var _useState9 = (0, _react.useState)(1),
41
+ _useState10 = _slicedToArray(_useState9, 2),
42
+ ratioX = _useState10[0],
43
+ setRatioX = _useState10[1];
44
+ var _useState11 = (0, _react.useState)(1),
45
+ _useState12 = _slicedToArray(_useState11, 2),
46
+ ratioY = _useState12[0],
47
+ setRatioY = _useState12[1];
48
+ (0, _react.useImperativeHandle)(ref, function () {
49
+ return {
50
+ update: update,
51
+ handleScroll: handleScroll
52
+ };
53
+ });
54
+ function handleScroll() {
55
+ var wrap = wrapElement.current;
56
+ if (!wrap) return;
57
+ var offsetHeight = wrap.offsetHeight - _util.GAP;
58
+ var offsetWidth = wrap.offsetWidth - _util.GAP;
59
+ setMoveY(wrap.scrollTop * 100 / offsetHeight * ratioY);
60
+ setMoveX(wrap.scrollLeft * 100 / offsetWidth * ratioX);
61
+ }
62
+ function update() {
63
+ var wrap = wrapElement.current;
64
+ if (!wrap) return;
65
+ // 滚动窗口的高度
66
+ var offsetHeight = wrap.offsetHeight - _util.GAP;
67
+ var offsetWidth = wrap.offsetWidth - _util.GAP;
68
+ // 滚动条的逻辑高度
69
+ var originalHeight = Math.pow(offsetHeight, 2) / wrap.scrollHeight;
70
+ var originalWidth = Math.pow(offsetWidth, 2) / wrap.scrollWidth;
71
+ // 滚动条的实际高度,因为如果内容太长会导致滚动条非常短,可能难以点击拖拽,所以设置了最小高度
72
+ var height = Math.max(originalHeight, props.minSize);
73
+ var width = Math.max(originalWidth, props.minSize);
74
+ setRatioY(originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height)));
75
+ setRatioX(originalWidth / (offsetWidth - originalWidth) / (width / (offsetWidth - width)));
76
+ setSizeHeight(height + _util.GAP < offsetHeight ? height : 0);
77
+ setSizeWidth(width + _util.GAP < offsetWidth ? width : 0);
78
+ }
79
+ return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_Thumb["default"], {
80
+ always: props.always,
81
+ move: moveX,
82
+ size: sizeWidth,
83
+ ratio: ratioX
84
+ }), _react["default"].createElement(_Thumb["default"], {
85
+ always: props.always,
86
+ move: moveY,
87
+ size: sizeHeight,
88
+ ratio: ratioY,
89
+ vertical: true
90
+ }));
91
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bar.js","sourceRoot":"","sources":["../../src/scroll-bar/Bar.js"],"names":[],"mappings":"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","sourcesContent":["import React, { forwardRef, useContext, useImperativeHandle, useState } from 'react'\nimport Context from './Context'\nimport Thumb from './Thumb'\nimport { GAP } from './util'\n\nexport default forwardRef((props, ref) => {\n const { wrapElement } = useContext(Context)\n\n const [moveX, setMoveX] = useState(0)\n const [moveY, setMoveY] = useState(0)\n const [sizeWidth, setSizeWidth] = useState(0)\n const [sizeHeight, setSizeHeight] = useState(0)\n const [ratioX, setRatioX] = useState(1)\n const [ratioY, setRatioY] = useState(1)\n\n useImperativeHandle(ref, () => ({\n update,\n handleScroll,\n }))\n\n function handleScroll() {\n const wrap = wrapElement.current\n if (!wrap) return\n const offsetHeight = wrap.offsetHeight - GAP\n const offsetWidth = wrap.offsetWidth - GAP\n setMoveY(((wrap.scrollTop * 100) / offsetHeight) * ratioY)\n setMoveX(((wrap.scrollLeft * 100) / offsetWidth) * ratioX)\n }\n\n function update() {\n const wrap = wrapElement.current\n if (!wrap) return\n // 滚动窗口的高度\n const offsetHeight = wrap.offsetHeight - GAP\n const offsetWidth = wrap.offsetWidth - GAP\n // 滚动条的逻辑高度\n const originalHeight = offsetHeight ** 2 / wrap.scrollHeight\n const originalWidth = offsetWidth ** 2 / wrap.scrollWidth\n // 滚动条的实际高度,因为如果内容太长会导致滚动条非常短,可能难以点击拖拽,所以设置了最小高度\n const height = Math.max(originalHeight, props.minSize)\n const width = Math.max(originalWidth, props.minSize)\n\n setRatioY(originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height)))\n setRatioX(originalWidth / (offsetWidth - originalWidth) / (width / (offsetWidth - width)))\n setSizeHeight(height + GAP < offsetHeight ? height : 0)\n setSizeWidth(width + GAP < offsetWidth ? width : 0)\n }\n\n return (\n <>\n <Thumb always={props.always} move={moveX} size={sizeWidth} ratio={ratioX} />\n <Thumb always={props.always} move={moveY} size={sizeHeight} ratio={ratioY} vertical />\n </>\n )\n})\n"]}
@@ -0,0 +1,7 @@
1
+ export default Context;
2
+ declare const Context: React.Context<{
3
+ scrollbarElement: null;
4
+ wrapElement: null;
5
+ }>;
6
+ import React from "react";
7
+ //# sourceMappingURL=Context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/scroll-bar/Context.js"],"names":[],"mappings":";AAEA;;;GAGE"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ var Context = _react["default"].createContext({
10
+ scrollbarElement: null,
11
+ wrapElement: null
12
+ });
13
+ var _default = exports["default"] = Context;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../src/scroll-bar/Context.js"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AAEzB,MAAM,OAAO,GAAG,eAAK,CAAC,aAAa,CAAC;IAClC,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,IAAI;CAClB,CAAC,CAAA;AAEF,kBAAe,OAAO,CAAA","sourcesContent":["import React from 'react'\n\nconst Context = React.createContext({\n scrollbarElement: null,\n wrapElement: null,\n})\n\nexport default Context\n"]}
@@ -0,0 +1,4 @@
1
+ declare var _default: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
2
+ export default _default;
3
+ import React from "react";
4
+ //# sourceMappingURL=ScrollBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollBar.d.ts","sourceRoot":"","sources":["../../src/scroll-bar/ScrollBar.js"],"names":[],"mappings":""}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classnames = _interopRequireDefault(require("classnames"));
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _Bar = _interopRequireDefault(require("./Bar"));
11
+ var _Context = _interopRequireDefault(require("./Context"));
12
+ 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); }
13
+ 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; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
16
+ var t = {};
17
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ var _default = exports["default"] = (0, _react.forwardRef)(function (_a, ref) {
24
+ var children = _a.children,
25
+ _a$minSize = _a.minSize,
26
+ minSize = _a$minSize === void 0 ? 20 : _a$minSize,
27
+ props = __rest(_a, ["children", "minSize"]);
28
+ var scrollbarElement = (0, _react.useRef)();
29
+ var wrapElement = (0, _react.useRef)();
30
+ wrapElement = ref || wrapElement;
31
+ var resizeRef = (0, _react.useRef)();
32
+ var barRef = (0, _react.useRef)();
33
+ (0, _react.useEffect)(function () {
34
+ var wrapDom = wrapElement.current;
35
+ var resizeDom = resizeRef.current;
36
+ // 监听容器尺寸变化,因为尺寸可以设置类似height:100vh之类样式,高度并不是固定的
37
+ var observerCallback = function observerCallback() {
38
+ return requestAnimationFrame(function () {
39
+ var _a;
40
+ update();
41
+ (_a = barRef.current) === null || _a === void 0 ? void 0 : _a.handleScroll();
42
+ });
43
+ };
44
+ var observer = new ResizeObserver(observerCallback);
45
+ observer.observe(wrapDom);
46
+ observer.observe(resizeDom);
47
+ return function () {
48
+ observer.unobserve(wrapDom);
49
+ observer.unobserve(resizeDom);
50
+ };
51
+ }, []);
52
+ (0, _react.useEffect)(function () {
53
+ var _a;
54
+ if (!props["native"]) {
55
+ update();
56
+ (_a = barRef.current) === null || _a === void 0 ? void 0 : _a.handleScroll();
57
+ }
58
+ }, [props["native"]]);
59
+ function update() {
60
+ var _a;
61
+ (_a = barRef.current) === null || _a === void 0 ? void 0 : _a.update();
62
+ }
63
+ function handleScroll(e) {
64
+ var _a, _b;
65
+ (_a = barRef.current) === null || _a === void 0 ? void 0 : _a.handleScroll();
66
+ (_b = props.onScroll) === null || _b === void 0 ? void 0 : _b.call(props, e);
67
+ }
68
+ var wrapStyle = {
69
+ height: props.height,
70
+ maxHeight: props.maxHeight
71
+ };
72
+ var wrapClassName = (0, _classnames["default"])('tntd-scroll-bar-wrap', {
73
+ 'tntd-scroll-bar-wrap-hidden-default': !props["native"]
74
+ });
75
+ return _react["default"].createElement(_Context["default"].Provider, {
76
+ value: {
77
+ scrollbarElement: scrollbarElement,
78
+ wrapElement: wrapElement
79
+ }
80
+ }, _react["default"].createElement("div", {
81
+ style: props.style,
82
+ className: (0, _classnames["default"])('tntd-scroll-bar', props.className),
83
+ ref: scrollbarElement
84
+ }, _react["default"].createElement("div", {
85
+ style: wrapStyle,
86
+ className: wrapClassName,
87
+ ref: wrapElement,
88
+ onScroll: handleScroll
89
+ }, _react["default"].createElement("div", {
90
+ className: "tntd-scroll-bar-view",
91
+ ref: resizeRef
92
+ }, children)), !props["native"] && _react["default"].createElement(_Bar["default"], {
93
+ ref: barRef,
94
+ always: props.always,
95
+ minSize: minSize
96
+ })));
97
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollBar.js","sourceRoot":"","sources":["../../src/scroll-bar/ScrollBar.js"],"names":[],"mappings":"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","sourcesContent":["import clsx from 'classnames'\nimport React, { forwardRef, useEffect, useRef } from 'react'\nimport Bar from './Bar'\nimport Context from './Context'\n\nexport default forwardRef(({ children, minSize = 20, ...props }, ref) => {\n const scrollbarElement = useRef()\n let wrapElement = useRef()\n wrapElement = ref || wrapElement\n const resizeRef = useRef()\n const barRef = useRef()\n\n useEffect(() => {\n const wrapDom = wrapElement.current\n const resizeDom = resizeRef.current\n // 监听容器尺寸变化,因为尺寸可以设置类似height:100vh之类样式,高度并不是固定的\n const observerCallback = () =>\n requestAnimationFrame(() => {\n update()\n barRef.current?.handleScroll()\n })\n const observer = new ResizeObserver(observerCallback)\n observer.observe(wrapDom)\n observer.observe(resizeDom)\n return () => {\n observer.unobserve(wrapDom)\n observer.unobserve(resizeDom)\n }\n }, [])\n useEffect(() => {\n if (!props.native) {\n update()\n barRef.current?.handleScroll()\n }\n }, [props.native])\n\n function update() {\n barRef.current?.update()\n }\n\n function handleScroll(e) {\n barRef.current?.handleScroll()\n props.onScroll?.(e)\n }\n\n const wrapStyle = { height: props.height, maxHeight: props.maxHeight }\n const wrapClassName = clsx('tntd-scroll-bar-wrap', {\n 'tntd-scroll-bar-wrap-hidden-default': !props.native,\n })\n\n return (\n <Context.Provider value={{ scrollbarElement, wrapElement }}>\n <div\n style={props.style}\n className={clsx('tntd-scroll-bar', props.className)}\n ref={scrollbarElement}\n >\n <div style={wrapStyle} className={wrapClassName} ref={wrapElement} onScroll={handleScroll}>\n <div className=\"tntd-scroll-bar-view\" ref={resizeRef}>\n {children}\n </div>\n </div>\n {!props.native && <Bar ref={barRef} always={props.always} minSize={minSize} />}\n </div>\n </Context.Provider>\n )\n})\n"]}
@@ -0,0 +1,3 @@
1
+ export default function Thumb(props: any): React.JSX.Element;
2
+ import React from "react";
3
+ //# sourceMappingURL=Thumb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Thumb.d.ts","sourceRoot":"","sources":["../../src/scroll-bar/Thumb.js"],"names":[],"mappings":"AAKA,6DA6HC"}