tntd 2.7.30 → 2.7.32

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 (1024) hide show
  1. package/es/ellipsis/index.js +2 -0
  2. package/es/ellipsis/index.js.map +1 -1
  3. package/es/form/form.js +37 -38
  4. package/es/form/form.js.map +1 -1
  5. package/es/tntd-form/_util/context.js.map +1 -0
  6. package/es/tntd-form/_util/defaultRenderEmpty.js.map +1 -0
  7. package/es/tntd-form/_util/hooks/useFlexGapSupport.js +9 -0
  8. package/es/tntd-form/_util/hooks/useFlexGapSupport.js.map +1 -0
  9. package/es/tntd-form/_util/hooks/useForceUpdate.js +5 -0
  10. package/es/tntd-form/_util/hooks/useForceUpdate.js.map +1 -0
  11. package/es/tntd-form/_util/responsiveObserve.js +59 -0
  12. package/es/tntd-form/_util/responsiveObserve.js.map +1 -0
  13. package/es/tntd-form/_util/styleChecker.js +26 -0
  14. package/es/tntd-form/_util/styleChecker.js.map +1 -0
  15. package/es/tntd-form/grid/RowContext.js.map +1 -0
  16. package/es/{grid-v4 → tntd-form/grid}/col.js +1 -0
  17. package/es/tntd-form/grid/col.js.map +1 -0
  18. package/es/tntd-form/grid/hooks/useBreakpoint.js.map +1 -0
  19. package/es/tntd-form/grid/index.js.map +1 -0
  20. package/es/{grid-v4 → tntd-form/grid}/row.js +0 -1
  21. package/es/tntd-form/grid/row.js.map +1 -0
  22. package/es/tntd-form/grid/style/index.js.map +1 -0
  23. package/lib/ellipsis/index.d.ts.map +1 -1
  24. package/lib/ellipsis/index.js +2 -0
  25. package/lib/ellipsis/index.js.map +1 -1
  26. package/lib/form/form.d.ts +1 -2
  27. package/lib/form/form.d.ts.map +1 -1
  28. package/lib/form/form.js +41 -40
  29. package/lib/form/form.js.map +1 -1
  30. package/lib/tntd-form/_util/context.d.ts.map +1 -0
  31. package/lib/tntd-form/_util/context.js.map +1 -0
  32. package/lib/tntd-form/_util/defaultRenderEmpty.d.ts.map +1 -0
  33. package/lib/tntd-form/_util/defaultRenderEmpty.js.map +1 -0
  34. package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts +3 -0
  35. package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts.map +1 -0
  36. package/lib/{tntd-select/rc-select/hooks/useDelayReset.js → tntd-form/_util/hooks/useFlexGapSupport.js} +9 -25
  37. package/lib/tntd-form/_util/hooks/useFlexGapSupport.js.map +1 -0
  38. package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts +3 -0
  39. package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts.map +1 -0
  40. package/lib/{tntd-select/rc-select/hooks/useId.js → tntd-form/_util/hooks/useForceUpdate.js} +8 -32
  41. package/lib/tntd-form/_util/hooks/useForceUpdate.js.map +1 -0
  42. package/lib/tntd-form/_util/responsiveObserve.d.ts +22 -0
  43. package/lib/tntd-form/_util/responsiveObserve.d.ts.map +1 -0
  44. package/lib/tntd-form/_util/responsiveObserve.js +73 -0
  45. package/lib/tntd-form/_util/responsiveObserve.js.map +1 -0
  46. package/lib/tntd-form/_util/styleChecker.d.ts +5 -0
  47. package/lib/tntd-form/_util/styleChecker.d.ts.map +1 -0
  48. package/lib/tntd-form/_util/styleChecker.js +42 -0
  49. package/lib/tntd-form/_util/styleChecker.js.map +1 -0
  50. package/lib/tntd-form/grid/RowContext.d.ts.map +1 -0
  51. package/lib/tntd-form/grid/RowContext.js.map +1 -0
  52. package/lib/tntd-form/grid/col.d.ts.map +1 -0
  53. package/lib/tntd-form/grid/col.js.map +1 -0
  54. package/lib/tntd-form/grid/hooks/useBreakpoint.d.ts.map +1 -0
  55. package/lib/tntd-form/grid/hooks/useBreakpoint.js.map +1 -0
  56. package/lib/tntd-form/grid/index.d.ts.map +1 -0
  57. package/lib/tntd-form/grid/index.js.map +1 -0
  58. package/lib/tntd-form/grid/row.d.ts.map +1 -0
  59. package/lib/{grid-v4 → tntd-form/grid}/row.js +0 -1
  60. package/lib/tntd-form/grid/row.js.map +1 -0
  61. package/lib/tntd-form/grid/style/index.d.ts.map +1 -0
  62. package/lib/tntd-form/grid/style/index.js.map +1 -0
  63. package/lib/tntd-form/tntd-form.stories.d.ts +1 -1
  64. package/package.json +1 -1
  65. package/themes/common/index.less +3 -3
  66. package/es/affix/style/index.js.map +0 -1
  67. package/es/affix/style/index.less +0 -6
  68. package/es/alert/style/index.js +0 -2
  69. package/es/alert/style/index.js.map +0 -1
  70. package/es/alert/style/index.less +0 -188
  71. package/es/anchor/style/index.js +0 -4
  72. package/es/anchor/style/index.js.map +0 -1
  73. package/es/anchor/style/index.less +0 -82
  74. package/es/auto-complete/style/index.js +0 -5
  75. package/es/auto-complete/style/index.js.map +0 -1
  76. package/es/auto-complete/style/index.less +0 -92
  77. package/es/avatar/style/index.js +0 -2
  78. package/es/avatar/style/index.js.map +0 -1
  79. package/es/avatar/style/index.less +0 -59
  80. package/es/back-top/style/index.js +0 -2
  81. package/es/back-top/style/index.js.map +0 -1
  82. package/es/back-top/style/index.less +0 -42
  83. package/es/back-top/style/responsive.less +0 -11
  84. package/es/badge/style/index.js +0 -2
  85. package/es/badge/style/index.js.map +0 -1
  86. package/es/badge/style/index.less +0 -190
  87. package/es/breadcrumb/style/index.js +0 -4
  88. package/es/breadcrumb/style/index.js.map +0 -1
  89. package/es/breadcrumb/style/index.less +0 -51
  90. package/es/button/style/index.js +0 -2
  91. package/es/button/style/index.js.map +0 -1
  92. package/es/button/style/index.less +0 -224
  93. package/es/button/style/mixin.less +0 -357
  94. package/es/calendar/style/index.js +0 -5
  95. package/es/calendar/style/index.js.map +0 -1
  96. package/es/calendar/style/index.less +0 -278
  97. package/es/card/style/index.js +0 -6
  98. package/es/card/style/index.js.map +0 -1
  99. package/es/card/style/index.less +0 -263
  100. package/es/card/style/size.less +0 -25
  101. package/es/carousel/style/index.js +0 -2
  102. package/es/carousel/style/index.js.map +0 -1
  103. package/es/carousel/style/index.less +0 -238
  104. package/es/cascader/style/index.js +0 -5
  105. package/es/cascader/style/index.js.map +0 -1
  106. package/es/cascader/style/index.less +0 -227
  107. package/es/checkbox/style/index.js +0 -2
  108. package/es/checkbox/style/index.js.map +0 -1
  109. package/es/checkbox/style/index.less +0 -4
  110. package/es/checkbox/style/mixin.less +0 -220
  111. package/es/col/style/index.js +0 -4
  112. package/es/col/style/index.js.map +0 -1
  113. package/es/collapse/style/index.js +0 -2
  114. package/es/collapse/style/index.js.map +0 -1
  115. package/es/collapse/style/index.less +0 -134
  116. package/es/comment/style/index.js +0 -2
  117. package/es/comment/style/index.js.map +0 -1
  118. package/es/comment/style/index.less +0 -93
  119. package/es/config-provider/style/index.js +0 -1
  120. package/es/config-provider/style/index.js.map +0 -1
  121. package/es/config-provider/style/index.less +0 -2
  122. package/es/date-picker/style/Calendar.less +0 -402
  123. package/es/date-picker/style/DecadePanel.less +0 -81
  124. package/es/date-picker/style/MonthPanel.less +0 -86
  125. package/es/date-picker/style/MonthPicker.less +0 -11
  126. package/es/date-picker/style/Picker.less +0 -113
  127. package/es/date-picker/style/RangePicker.less +0 -248
  128. package/es/date-picker/style/TimePicker.less +0 -151
  129. package/es/date-picker/style/WeekPicker.less +0 -21
  130. package/es/date-picker/style/YearPanel.less +0 -85
  131. package/es/date-picker/style/index.js +0 -7
  132. package/es/date-picker/style/index.js.map +0 -1
  133. package/es/date-picker/style/index.less +0 -17
  134. package/es/descriptions/style/index.js +0 -2
  135. package/es/descriptions/style/index.js.map +0 -1
  136. package/es/descriptions/style/index.less +0 -144
  137. package/es/divider/style/index.js +0 -2
  138. package/es/divider/style/index.js.map +0 -1
  139. package/es/divider/style/index.less +0 -109
  140. package/es/drawer/style/drawer.less +0 -230
  141. package/es/drawer/style/index.js +0 -3
  142. package/es/drawer/style/index.js.map +0 -1
  143. package/es/drawer/style/index.less +0 -3
  144. package/es/dropdown/style/index.js +0 -4
  145. package/es/dropdown/style/index.js.map +0 -1
  146. package/es/dropdown/style/index.less +0 -282
  147. package/es/empty/style/index.js +0 -2
  148. package/es/empty/style/index.js.map +0 -1
  149. package/es/empty/style/index.less +0 -52
  150. package/es/form/style/index.js +0 -4
  151. package/es/form/style/index.js.map +0 -1
  152. package/es/form/style/index.less +0 -653
  153. package/es/form/style/mixin.less +0 -126
  154. package/es/grid-v4/RowContext.js.map +0 -1
  155. package/es/grid-v4/col.js.map +0 -1
  156. package/es/grid-v4/hooks/useBreakpoint.js.map +0 -1
  157. package/es/grid-v4/index.js.map +0 -1
  158. package/es/grid-v4/row.js.map +0 -1
  159. package/es/grid-v4/style/index.js +0 -2
  160. package/es/grid-v4/style/index.js.map +0 -1
  161. package/es/grid-v4/style/index.less +0 -124
  162. package/es/grid-v4/style/mixin.less +0 -57
  163. package/es/grid-v4/style/rtl.less +0 -69
  164. package/es/handle/handle.js +0 -138
  165. package/es/handle/handle.js.map +0 -1
  166. package/es/icon/style/index.js +0 -2
  167. package/es/icon/style/index.js.map +0 -1
  168. package/es/icon/style/index.less +0 -4
  169. package/es/input/style/index.js +0 -4
  170. package/es/input/style/index.js.map +0 -1
  171. package/es/input/style/index.less +0 -57
  172. package/es/input/style/mixin.less +0 -449
  173. package/es/input/style/search-input.less +0 -34
  174. package/es/input-number/style/index.js +0 -2
  175. package/es/input-number/style/index.js.map +0 -1
  176. package/es/input-number/style/index.less +0 -179
  177. package/es/layout/style/index.js +0 -2
  178. package/es/layout/style/index.js.map +0 -1
  179. package/es/layout/style/index.less +0 -124
  180. package/es/layout/style/light.less +0 -15
  181. package/es/list/style/bordered.less +0 -41
  182. package/es/list/style/index.js +0 -7
  183. package/es/list/style/index.js.map +0 -1
  184. package/es/list/style/index.less +0 -234
  185. package/es/list/style/responsive.less +0 -40
  186. package/es/locale-provider/style/index.js +0 -1
  187. package/es/locale-provider/style/index.js.map +0 -1
  188. package/es/locale-provider/style/index.less +0 -2
  189. package/es/mention/index.js +0 -4
  190. package/es/mention/index.js.map +0 -1
  191. package/es/mentions/style/index.js +0 -4
  192. package/es/mentions/style/index.js.map +0 -1
  193. package/es/mentions/style/index.less +0 -164
  194. package/es/menu/style/dark.less +0 -139
  195. package/es/menu/style/index.js +0 -5
  196. package/es/menu/style/index.js.map +0 -1
  197. package/es/menu/style/index.less +0 -515
  198. package/es/message/style/index.js +0 -2
  199. package/es/message/style/index.js.map +0 -1
  200. package/es/message/style/index.less +0 -75
  201. package/es/modal/style/confirm.less +0 -78
  202. package/es/modal/style/index.js +0 -4
  203. package/es/modal/style/index.js.map +0 -1
  204. package/es/modal/style/index.less +0 -4
  205. package/es/modal/style/modal.less +0 -165
  206. package/es/notification/style/index.js +0 -2
  207. package/es/notification/style/index.js.map +0 -1
  208. package/es/notification/style/index.less +0 -199
  209. package/es/page-header/style/index.js +0 -4
  210. package/es/page-header/style/index.js.map +0 -1
  211. package/es/page-header/style/index.less +0 -119
  212. package/es/pagination/style/index.js +0 -4
  213. package/es/pagination/style/index.js.map +0 -1
  214. package/es/pagination/style/index.less +0 -400
  215. package/es/popconfirm/style/index.js +0 -5
  216. package/es/popconfirm/style/index.js.map +0 -1
  217. package/es/popover/style/index.js +0 -4
  218. package/es/popover/style/index.js.map +0 -1
  219. package/es/popover/style/index.less +0 -205
  220. package/es/progress/style/index.js +0 -2
  221. package/es/progress/style/index.js.map +0 -1
  222. package/es/progress/style/index.less +0 -182
  223. package/es/radio/style/index.js +0 -2
  224. package/es/radio/style/index.js.map +0 -1
  225. package/es/radio/style/index.less +0 -327
  226. package/es/rate/style/index.js +0 -4
  227. package/es/rate/style/index.js.map +0 -1
  228. package/es/rate/style/index.less +0 -85
  229. package/es/result/style/index.js +0 -2
  230. package/es/result/style/index.js.map +0 -1
  231. package/es/result/style/index.less +0 -71
  232. package/es/row/style/index.js +0 -4
  233. package/es/row/style/index.js.map +0 -1
  234. package/es/select/style/index.js +0 -4
  235. package/es/select/style/index.js.map +0 -1
  236. package/es/select/style/index.less +0 -604
  237. package/es/skeleton/style/index.js +0 -2
  238. package/es/skeleton/style/index.js.map +0 -1
  239. package/es/skeleton/style/index.less +0 -130
  240. package/es/slider/style/index.js +0 -4
  241. package/es/slider/style/index.js.map +0 -1
  242. package/es/slider/style/index.less +0 -197
  243. package/es/spin/style/index.js +0 -2
  244. package/es/spin/style/index.js.map +0 -1
  245. package/es/spin/style/index.less +0 -214
  246. package/es/statistic/style/index.js +0 -2
  247. package/es/statistic/style/index.js.map +0 -1
  248. package/es/statistic/style/index.less +0 -40
  249. package/es/steps/style/compatibility.less +0 -50
  250. package/es/steps/style/custom-icon.less +0 -31
  251. package/es/steps/style/index.js +0 -2
  252. package/es/steps/style/index.js.map +0 -1
  253. package/es/steps/style/label-placement.less +0 -38
  254. package/es/steps/style/progress-dot.less +0 -80
  255. package/es/steps/style/vertical.less +0 -74
  256. package/es/style/color/bezierEasing.less +0 -110
  257. package/es/style/color/colorPalette.less +0 -75
  258. package/es/style/color/colors.less +0 -149
  259. package/es/style/color/tinyColor.less +0 -1184
  260. package/es/style/core/base.less +0 -510
  261. package/es/style/core/iconfont.less +0 -19
  262. package/es/style/core/index.less +0 -4
  263. package/es/style/core/motion/fade.less +0 -31
  264. package/es/style/core/motion/move.less +0 -120
  265. package/es/style/core/motion/other.less +0 -40
  266. package/es/style/core/motion/slide.less +0 -120
  267. package/es/style/core/motion/swing.less +0 -34
  268. package/es/style/core/motion/zoom.less +0 -162
  269. package/es/style/core/motion.less +0 -20
  270. package/es/style/index.js +0 -1
  271. package/es/style/index.js.map +0 -1
  272. package/es/style/index.less +0 -2
  273. package/es/style/mixins/clearfix.less +0 -13
  274. package/es/style/mixins/compatibility.less +0 -22
  275. package/es/style/mixins/iconfont.less +0 -43
  276. package/es/style/mixins/index.less +0 -10
  277. package/es/style/mixins/motion.less +0 -35
  278. package/es/style/mixins/operation-unit.less +0 -18
  279. package/es/style/mixins/reset.less +0 -13
  280. package/es/style/mixins/size.less +0 -10
  281. package/es/style/mixins/typography.less +0 -49
  282. package/es/style/themes/default.less +0 -699
  283. package/es/style/themes/index.less +0 -1
  284. package/es/style/v2-compatible-reset.js +0 -1
  285. package/es/style/v2-compatible-reset.js.map +0 -1
  286. package/es/style/v2-compatible-reset.less +0 -51
  287. package/es/switch/style/index.js +0 -2
  288. package/es/switch/style/index.js.map +0 -1
  289. package/es/switch/style/index.less +0 -178
  290. package/es/table/style/index.js +0 -10
  291. package/es/table/style/index.js.map +0 -1
  292. package/es/table/style/index.less +0 -800
  293. package/es/table/style/size.less +0 -179
  294. package/es/tabs/style/card-style.less +0 -186
  295. package/es/tabs/style/index.js +0 -2
  296. package/es/tabs/style/index.js.map +0 -1
  297. package/es/tabs/style/index.less +0 -436
  298. package/es/tag/style/index.js +0 -2
  299. package/es/tag/style/index.js.map +0 -1
  300. package/es/tag/style/index.less +0 -106
  301. package/es/time-picker/style/index.js +0 -2
  302. package/es/time-picker/style/index.js.map +0 -1
  303. package/es/time-picker/style/index.less +0 -246
  304. package/es/timeline/style/index.js +0 -2
  305. package/es/timeline/style/index.js.map +0 -1
  306. package/es/timeline/style/index.less +0 -167
  307. package/es/tntd-form/TntdForm/components/Item.js +0 -55
  308. package/es/tntd-form/TntdForm/components/Item.js.map +0 -1
  309. package/es/tntd-form/TntdForm/components/ItemComp.js +0 -186
  310. package/es/tntd-form/TntdForm/components/ItemComp.js.map +0 -1
  311. package/es/tntd-form/TntdForm/components/List.js +0 -102
  312. package/es/tntd-form/TntdForm/components/List.js.map +0 -1
  313. package/es/tntd-form/TntdForm/index.js +0 -55
  314. package/es/tntd-form/TntdForm/index.js.map +0 -1
  315. package/es/tntd-form/TntdForm/interface.js +0 -1
  316. package/es/tntd-form/TntdForm/interface.js.map +0 -1
  317. package/es/tntd-form/TntdForm/store.js +0 -2
  318. package/es/tntd-form/TntdForm/store.js.map +0 -1
  319. package/es/tntd-form/TntdForm/utils.js +0 -219
  320. package/es/tntd-form/TntdForm/utils.js.map +0 -1
  321. package/es/tntd-select/_util/DisabledContext.js +0 -12
  322. package/es/tntd-select/_util/DisabledContext.js.map +0 -1
  323. package/es/tntd-select/_util/FormItemInputContext.js +0 -2
  324. package/es/tntd-select/_util/FormItemInputContext.js.map +0 -1
  325. package/es/tntd-select/_util/PurePanel.js +0 -66
  326. package/es/tntd-select/_util/PurePanel.js.map +0 -1
  327. package/es/tntd-select/_util/SizeContext.js +0 -2
  328. package/es/tntd-select/_util/SizeContext.js.map +0 -1
  329. package/es/tntd-select/_util/context.js.map +0 -1
  330. package/es/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
  331. package/es/tntd-select/_util/getIcons.js +0 -74
  332. package/es/tntd-select/_util/getIcons.js.map +0 -1
  333. package/es/tntd-select/_util/interface.js +0 -4
  334. package/es/tntd-select/_util/interface.js.map +0 -1
  335. package/es/tntd-select/_util/motion.js +0 -47
  336. package/es/tntd-select/_util/motion.js.map +0 -1
  337. package/es/tntd-select/_util/type.js +0 -3
  338. package/es/tntd-select/_util/type.js.map +0 -1
  339. package/es/tntd-select/_util/useCompactItemContext.js +0 -26
  340. package/es/tntd-select/_util/useCompactItemContext.js.map +0 -1
  341. package/es/tntd-select/_util/warning.js +0 -14
  342. package/es/tntd-select/_util/warning.js.map +0 -1
  343. package/es/tntd-select/rc-select/BaseSelect.js +0 -524
  344. package/es/tntd-select/rc-select/BaseSelect.js.map +0 -1
  345. package/es/tntd-select/rc-select/OptGroup.js +0 -4
  346. package/es/tntd-select/rc-select/OptGroup.js.map +0 -1
  347. package/es/tntd-select/rc-select/Option.js +0 -4
  348. package/es/tntd-select/rc-select/Option.js.map +0 -1
  349. package/es/tntd-select/rc-select/OptionList.js +0 -346
  350. package/es/tntd-select/rc-select/OptionList.js.map +0 -1
  351. package/es/tntd-select/rc-select/Select.js +0 -440
  352. package/es/tntd-select/rc-select/Select.js.map +0 -1
  353. package/es/tntd-select/rc-select/SelectContext.js +0 -3
  354. package/es/tntd-select/rc-select/SelectContext.js.map +0 -1
  355. package/es/tntd-select/rc-select/SelectTrigger.js +0 -130
  356. package/es/tntd-select/rc-select/SelectTrigger.js.map +0 -1
  357. package/es/tntd-select/rc-select/Selector/Input.js +0 -103
  358. package/es/tntd-select/rc-select/Selector/Input.js.map +0 -1
  359. package/es/tntd-select/rc-select/Selector/MultipleSelector.js +0 -171
  360. package/es/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
  361. package/es/tntd-select/rc-select/Selector/SingleSelector.js +0 -98
  362. package/es/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
  363. package/es/tntd-select/rc-select/Selector/index.js +0 -158
  364. package/es/tntd-select/rc-select/Selector/index.js.map +0 -1
  365. package/es/tntd-select/rc-select/TransBtn.js +0 -36
  366. package/es/tntd-select/rc-select/TransBtn.js.map +0 -1
  367. package/es/tntd-select/rc-select/hooks/useAllowClear.js +0 -24
  368. package/es/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
  369. package/es/tntd-select/rc-select/hooks/useBaseProps.js +0 -9
  370. package/es/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
  371. package/es/tntd-select/rc-select/hooks/useCache.js +0 -38
  372. package/es/tntd-select/rc-select/hooks/useCache.js.map +0 -1
  373. package/es/tntd-select/rc-select/hooks/useDelayReset.js +0 -23
  374. package/es/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
  375. package/es/tntd-select/rc-select/hooks/useFilterOptions.js +0 -55
  376. package/es/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
  377. package/es/tntd-select/rc-select/hooks/useId.js +0 -26
  378. package/es/tntd-select/rc-select/hooks/useId.js.map +0 -1
  379. package/es/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -16
  380. package/es/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
  381. package/es/tntd-select/rc-select/hooks/useLock.js +0 -25
  382. package/es/tntd-select/rc-select/hooks/useLock.js.map +0 -1
  383. package/es/tntd-select/rc-select/hooks/useOptions.js +0 -43
  384. package/es/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
  385. package/es/tntd-select/rc-select/hooks/useRefFunc.js +0 -13
  386. package/es/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
  387. package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -28
  388. package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
  389. package/es/tntd-select/rc-select/index.js +0 -7
  390. package/es/tntd-select/rc-select/index.js.map +0 -1
  391. package/es/tntd-select/rc-select/interface.js +0 -1
  392. package/es/tntd-select/rc-select/interface.js.map +0 -1
  393. package/es/tntd-select/rc-select/utils/commonUtil.js +0 -30
  394. package/es/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
  395. package/es/tntd-select/rc-select/utils/keyUtil.js +0 -9
  396. package/es/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
  397. package/es/tntd-select/rc-select/utils/legacyUtil.js +0 -55
  398. package/es/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
  399. package/es/tntd-select/rc-select/utils/platformUtil.js +0 -4
  400. package/es/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
  401. package/es/tntd-select/rc-select/utils/valueUtil.js +0 -112
  402. package/es/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
  403. package/es/tntd-select/rc-select/utils/warningPropsUtil.js +0 -112
  404. package/es/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
  405. package/es/tooltip/style/index.js +0 -2
  406. package/es/tooltip/style/index.js.map +0 -1
  407. package/es/tooltip/style/index.less +0 -187
  408. package/es/transfer/style/customize.less +0 -62
  409. package/es/transfer/style/index.js +0 -7
  410. package/es/transfer/style/index.js.map +0 -1
  411. package/es/transfer/style/index.less +0 -191
  412. package/es/tree/style/directory.less +0 -95
  413. package/es/tree/style/index.js +0 -2
  414. package/es/tree/style/index.js.map +0 -1
  415. package/es/tree/style/index.less +0 -280
  416. package/es/tree/style/mixin.less +0 -29
  417. package/es/tree-select/style/index.js +0 -6
  418. package/es/tree-select/style/index.js.map +0 -1
  419. package/es/tree-select/style/index.less +0 -191
  420. package/es/typography/style/index.js +0 -5
  421. package/es/typography/style/index.js.map +0 -1
  422. package/es/typography/style/index.less +0 -204
  423. package/es/upload/style/index.js +0 -5
  424. package/es/upload/style/index.js.map +0 -1
  425. package/es/upload/style/index.less +0 -542
  426. package/es/version/style/index.js +0 -2
  427. package/es/version/style/index.js.map +0 -1
  428. package/lib/affix/style/index.d.ts.map +0 -1
  429. package/lib/affix/style/index.js.map +0 -1
  430. package/lib/affix/style/index.less +0 -6
  431. package/lib/alert/style/index.d.ts +0 -3
  432. package/lib/alert/style/index.d.ts.map +0 -1
  433. package/lib/alert/style/index.js +0 -4
  434. package/lib/alert/style/index.js.map +0 -1
  435. package/lib/alert/style/index.less +0 -188
  436. package/lib/anchor/style/index.d.ts +0 -4
  437. package/lib/anchor/style/index.d.ts.map +0 -1
  438. package/lib/anchor/style/index.js +0 -5
  439. package/lib/anchor/style/index.js.map +0 -1
  440. package/lib/anchor/style/index.less +0 -82
  441. package/lib/auto-complete/style/index.d.ts +0 -5
  442. package/lib/auto-complete/style/index.d.ts.map +0 -1
  443. package/lib/auto-complete/style/index.js +0 -6
  444. package/lib/auto-complete/style/index.js.map +0 -1
  445. package/lib/auto-complete/style/index.less +0 -92
  446. package/lib/avatar/style/index.d.ts +0 -3
  447. package/lib/avatar/style/index.d.ts.map +0 -1
  448. package/lib/avatar/style/index.js +0 -4
  449. package/lib/avatar/style/index.js.map +0 -1
  450. package/lib/avatar/style/index.less +0 -59
  451. package/lib/back-top/style/index.d.ts +0 -3
  452. package/lib/back-top/style/index.d.ts.map +0 -1
  453. package/lib/back-top/style/index.js +0 -4
  454. package/lib/back-top/style/index.js.map +0 -1
  455. package/lib/back-top/style/index.less +0 -42
  456. package/lib/back-top/style/responsive.less +0 -11
  457. package/lib/badge/style/index.d.ts +0 -3
  458. package/lib/badge/style/index.d.ts.map +0 -1
  459. package/lib/badge/style/index.js +0 -4
  460. package/lib/badge/style/index.js.map +0 -1
  461. package/lib/badge/style/index.less +0 -190
  462. package/lib/breadcrumb/style/index.d.ts +0 -5
  463. package/lib/breadcrumb/style/index.d.ts.map +0 -1
  464. package/lib/breadcrumb/style/index.js +0 -6
  465. package/lib/breadcrumb/style/index.js.map +0 -1
  466. package/lib/breadcrumb/style/index.less +0 -51
  467. package/lib/button/style/index.d.ts +0 -3
  468. package/lib/button/style/index.d.ts.map +0 -1
  469. package/lib/button/style/index.js +0 -4
  470. package/lib/button/style/index.js.map +0 -1
  471. package/lib/button/style/index.less +0 -224
  472. package/lib/button/style/mixin.less +0 -357
  473. package/lib/calendar/style/index.d.ts +0 -5
  474. package/lib/calendar/style/index.d.ts.map +0 -1
  475. package/lib/calendar/style/index.js +0 -6
  476. package/lib/calendar/style/index.js.map +0 -1
  477. package/lib/calendar/style/index.less +0 -278
  478. package/lib/card/style/index.d.ts +0 -6
  479. package/lib/card/style/index.d.ts.map +0 -1
  480. package/lib/card/style/index.js +0 -7
  481. package/lib/card/style/index.js.map +0 -1
  482. package/lib/card/style/index.less +0 -263
  483. package/lib/card/style/size.less +0 -25
  484. package/lib/carousel/style/index.d.ts +0 -3
  485. package/lib/carousel/style/index.d.ts.map +0 -1
  486. package/lib/carousel/style/index.js +0 -4
  487. package/lib/carousel/style/index.js.map +0 -1
  488. package/lib/carousel/style/index.less +0 -238
  489. package/lib/cascader/style/index.d.ts +0 -5
  490. package/lib/cascader/style/index.d.ts.map +0 -1
  491. package/lib/cascader/style/index.js +0 -6
  492. package/lib/cascader/style/index.js.map +0 -1
  493. package/lib/cascader/style/index.less +0 -227
  494. package/lib/checkbox/style/index.d.ts +0 -3
  495. package/lib/checkbox/style/index.d.ts.map +0 -1
  496. package/lib/checkbox/style/index.js +0 -4
  497. package/lib/checkbox/style/index.js.map +0 -1
  498. package/lib/checkbox/style/index.less +0 -4
  499. package/lib/checkbox/style/mixin.less +0 -220
  500. package/lib/col/style/index.d.ts +0 -3
  501. package/lib/col/style/index.d.ts.map +0 -1
  502. package/lib/col/style/index.js +0 -4
  503. package/lib/col/style/index.js.map +0 -1
  504. package/lib/collapse/style/index.d.ts +0 -3
  505. package/lib/collapse/style/index.d.ts.map +0 -1
  506. package/lib/collapse/style/index.js +0 -4
  507. package/lib/collapse/style/index.js.map +0 -1
  508. package/lib/collapse/style/index.less +0 -134
  509. package/lib/comment/style/index.d.ts +0 -3
  510. package/lib/comment/style/index.d.ts.map +0 -1
  511. package/lib/comment/style/index.js +0 -4
  512. package/lib/comment/style/index.js.map +0 -1
  513. package/lib/comment/style/index.less +0 -93
  514. package/lib/config-provider/style/index.d.ts +0 -2
  515. package/lib/config-provider/style/index.d.ts.map +0 -1
  516. package/lib/config-provider/style/index.js +0 -3
  517. package/lib/config-provider/style/index.js.map +0 -1
  518. package/lib/config-provider/style/index.less +0 -2
  519. package/lib/date-picker/style/Calendar.less +0 -402
  520. package/lib/date-picker/style/DecadePanel.less +0 -81
  521. package/lib/date-picker/style/MonthPanel.less +0 -86
  522. package/lib/date-picker/style/MonthPicker.less +0 -11
  523. package/lib/date-picker/style/Picker.less +0 -113
  524. package/lib/date-picker/style/RangePicker.less +0 -248
  525. package/lib/date-picker/style/TimePicker.less +0 -151
  526. package/lib/date-picker/style/WeekPicker.less +0 -21
  527. package/lib/date-picker/style/YearPanel.less +0 -85
  528. package/lib/date-picker/style/index.d.ts +0 -6
  529. package/lib/date-picker/style/index.d.ts.map +0 -1
  530. package/lib/date-picker/style/index.js +0 -7
  531. package/lib/date-picker/style/index.js.map +0 -1
  532. package/lib/date-picker/style/index.less +0 -17
  533. package/lib/descriptions/style/index.d.ts +0 -3
  534. package/lib/descriptions/style/index.d.ts.map +0 -1
  535. package/lib/descriptions/style/index.js +0 -4
  536. package/lib/descriptions/style/index.js.map +0 -1
  537. package/lib/descriptions/style/index.less +0 -144
  538. package/lib/divider/style/index.d.ts +0 -3
  539. package/lib/divider/style/index.d.ts.map +0 -1
  540. package/lib/divider/style/index.js +0 -4
  541. package/lib/divider/style/index.js.map +0 -1
  542. package/lib/divider/style/index.less +0 -109
  543. package/lib/drawer/style/drawer.less +0 -230
  544. package/lib/drawer/style/index.d.ts +0 -3
  545. package/lib/drawer/style/index.d.ts.map +0 -1
  546. package/lib/drawer/style/index.js +0 -4
  547. package/lib/drawer/style/index.js.map +0 -1
  548. package/lib/drawer/style/index.less +0 -3
  549. package/lib/dropdown/style/index.d.ts +0 -4
  550. package/lib/dropdown/style/index.d.ts.map +0 -1
  551. package/lib/dropdown/style/index.js +0 -5
  552. package/lib/dropdown/style/index.js.map +0 -1
  553. package/lib/dropdown/style/index.less +0 -282
  554. package/lib/empty/style/index.d.ts +0 -3
  555. package/lib/empty/style/index.d.ts.map +0 -1
  556. package/lib/empty/style/index.js +0 -4
  557. package/lib/empty/style/index.js.map +0 -1
  558. package/lib/empty/style/index.less +0 -52
  559. package/lib/form/style/index.d.ts +0 -4
  560. package/lib/form/style/index.d.ts.map +0 -1
  561. package/lib/form/style/index.js +0 -5
  562. package/lib/form/style/index.js.map +0 -1
  563. package/lib/form/style/index.less +0 -653
  564. package/lib/form/style/mixin.less +0 -126
  565. package/lib/grid-v4/RowContext.d.ts.map +0 -1
  566. package/lib/grid-v4/RowContext.js.map +0 -1
  567. package/lib/grid-v4/col.d.ts.map +0 -1
  568. package/lib/grid-v4/col.js.map +0 -1
  569. package/lib/grid-v4/hooks/useBreakpoint.d.ts.map +0 -1
  570. package/lib/grid-v4/hooks/useBreakpoint.js.map +0 -1
  571. package/lib/grid-v4/index.d.ts.map +0 -1
  572. package/lib/grid-v4/index.js.map +0 -1
  573. package/lib/grid-v4/row.d.ts.map +0 -1
  574. package/lib/grid-v4/row.js.map +0 -1
  575. package/lib/grid-v4/style/index.d.ts +0 -2
  576. package/lib/grid-v4/style/index.d.ts.map +0 -1
  577. package/lib/grid-v4/style/index.js +0 -3
  578. package/lib/grid-v4/style/index.js.map +0 -1
  579. package/lib/grid-v4/style/index.less +0 -124
  580. package/lib/grid-v4/style/mixin.less +0 -57
  581. package/lib/grid-v4/style/rtl.less +0 -69
  582. package/lib/handle/handle.d.ts +0 -3
  583. package/lib/handle/handle.d.ts.map +0 -1
  584. package/lib/handle/handle.js +0 -181
  585. package/lib/handle/handle.js.map +0 -1
  586. package/lib/icon/style/index.d.ts +0 -3
  587. package/lib/icon/style/index.d.ts.map +0 -1
  588. package/lib/icon/style/index.js +0 -4
  589. package/lib/icon/style/index.js.map +0 -1
  590. package/lib/icon/style/index.less +0 -4
  591. package/lib/input/style/index.d.ts +0 -4
  592. package/lib/input/style/index.d.ts.map +0 -1
  593. package/lib/input/style/index.js +0 -5
  594. package/lib/input/style/index.js.map +0 -1
  595. package/lib/input/style/index.less +0 -57
  596. package/lib/input/style/mixin.less +0 -449
  597. package/lib/input/style/search-input.less +0 -34
  598. package/lib/input-number/style/index.d.ts +0 -3
  599. package/lib/input-number/style/index.d.ts.map +0 -1
  600. package/lib/input-number/style/index.js +0 -4
  601. package/lib/input-number/style/index.js.map +0 -1
  602. package/lib/input-number/style/index.less +0 -179
  603. package/lib/layout/style/index.d.ts +0 -3
  604. package/lib/layout/style/index.d.ts.map +0 -1
  605. package/lib/layout/style/index.js +0 -4
  606. package/lib/layout/style/index.js.map +0 -1
  607. package/lib/layout/style/index.less +0 -124
  608. package/lib/layout/style/light.less +0 -15
  609. package/lib/list/style/bordered.less +0 -41
  610. package/lib/list/style/index.d.ts +0 -7
  611. package/lib/list/style/index.d.ts.map +0 -1
  612. package/lib/list/style/index.js +0 -8
  613. package/lib/list/style/index.js.map +0 -1
  614. package/lib/list/style/index.less +0 -234
  615. package/lib/list/style/responsive.less +0 -40
  616. package/lib/locale-provider/style/index.d.ts +0 -2
  617. package/lib/locale-provider/style/index.d.ts.map +0 -1
  618. package/lib/locale-provider/style/index.js +0 -3
  619. package/lib/locale-provider/style/index.js.map +0 -1
  620. package/lib/locale-provider/style/index.less +0 -2
  621. package/lib/mention/index.js +0 -25
  622. package/lib/mentions/style/index.d.ts +0 -4
  623. package/lib/mentions/style/index.d.ts.map +0 -1
  624. package/lib/mentions/style/index.js +0 -5
  625. package/lib/mentions/style/index.js.map +0 -1
  626. package/lib/mentions/style/index.less +0 -164
  627. package/lib/menu/style/dark.less +0 -139
  628. package/lib/menu/style/index.d.ts +0 -4
  629. package/lib/menu/style/index.d.ts.map +0 -1
  630. package/lib/menu/style/index.js +0 -5
  631. package/lib/menu/style/index.js.map +0 -1
  632. package/lib/menu/style/index.less +0 -515
  633. package/lib/message/style/index.d.ts +0 -3
  634. package/lib/message/style/index.d.ts.map +0 -1
  635. package/lib/message/style/index.js +0 -4
  636. package/lib/message/style/index.js.map +0 -1
  637. package/lib/message/style/index.less +0 -75
  638. package/lib/modal/style/confirm.less +0 -78
  639. package/lib/modal/style/index.d.ts +0 -4
  640. package/lib/modal/style/index.d.ts.map +0 -1
  641. package/lib/modal/style/index.js +0 -5
  642. package/lib/modal/style/index.js.map +0 -1
  643. package/lib/modal/style/index.less +0 -4
  644. package/lib/modal/style/modal.less +0 -165
  645. package/lib/notification/style/index.d.ts +0 -3
  646. package/lib/notification/style/index.d.ts.map +0 -1
  647. package/lib/notification/style/index.js +0 -4
  648. package/lib/notification/style/index.js.map +0 -1
  649. package/lib/notification/style/index.less +0 -199
  650. package/lib/page-header/style/index.d.ts +0 -4
  651. package/lib/page-header/style/index.d.ts.map +0 -1
  652. package/lib/page-header/style/index.js +0 -5
  653. package/lib/page-header/style/index.js.map +0 -1
  654. package/lib/page-header/style/index.less +0 -119
  655. package/lib/pagination/style/index.d.ts +0 -4
  656. package/lib/pagination/style/index.d.ts.map +0 -1
  657. package/lib/pagination/style/index.js +0 -5
  658. package/lib/pagination/style/index.js.map +0 -1
  659. package/lib/pagination/style/index.less +0 -400
  660. package/lib/popconfirm/style/index.d.ts +0 -4
  661. package/lib/popconfirm/style/index.d.ts.map +0 -1
  662. package/lib/popconfirm/style/index.js +0 -5
  663. package/lib/popconfirm/style/index.js.map +0 -1
  664. package/lib/popover/style/index.d.ts +0 -3
  665. package/lib/popover/style/index.d.ts.map +0 -1
  666. package/lib/popover/style/index.js +0 -4
  667. package/lib/popover/style/index.js.map +0 -1
  668. package/lib/popover/style/index.less +0 -205
  669. package/lib/progress/style/index.d.ts +0 -3
  670. package/lib/progress/style/index.d.ts.map +0 -1
  671. package/lib/progress/style/index.js +0 -4
  672. package/lib/progress/style/index.js.map +0 -1
  673. package/lib/progress/style/index.less +0 -182
  674. package/lib/radio/style/index.d.ts +0 -3
  675. package/lib/radio/style/index.d.ts.map +0 -1
  676. package/lib/radio/style/index.js +0 -4
  677. package/lib/radio/style/index.js.map +0 -1
  678. package/lib/radio/style/index.less +0 -327
  679. package/lib/rate/style/index.d.ts +0 -4
  680. package/lib/rate/style/index.d.ts.map +0 -1
  681. package/lib/rate/style/index.js +0 -5
  682. package/lib/rate/style/index.js.map +0 -1
  683. package/lib/rate/style/index.less +0 -85
  684. package/lib/result/style/index.d.ts +0 -3
  685. package/lib/result/style/index.d.ts.map +0 -1
  686. package/lib/result/style/index.js +0 -4
  687. package/lib/result/style/index.js.map +0 -1
  688. package/lib/result/style/index.less +0 -71
  689. package/lib/row/style/index.d.ts +0 -3
  690. package/lib/row/style/index.d.ts.map +0 -1
  691. package/lib/row/style/index.js +0 -4
  692. package/lib/row/style/index.js.map +0 -1
  693. package/lib/select/style/index.d.ts +0 -4
  694. package/lib/select/style/index.d.ts.map +0 -1
  695. package/lib/select/style/index.js +0 -5
  696. package/lib/select/style/index.js.map +0 -1
  697. package/lib/select/style/index.less +0 -604
  698. package/lib/skeleton/style/index.d.ts +0 -3
  699. package/lib/skeleton/style/index.d.ts.map +0 -1
  700. package/lib/skeleton/style/index.js +0 -4
  701. package/lib/skeleton/style/index.js.map +0 -1
  702. package/lib/skeleton/style/index.less +0 -130
  703. package/lib/slider/style/index.d.ts +0 -4
  704. package/lib/slider/style/index.d.ts.map +0 -1
  705. package/lib/slider/style/index.js +0 -5
  706. package/lib/slider/style/index.js.map +0 -1
  707. package/lib/slider/style/index.less +0 -197
  708. package/lib/spin/style/index.d.ts +0 -3
  709. package/lib/spin/style/index.d.ts.map +0 -1
  710. package/lib/spin/style/index.js +0 -4
  711. package/lib/spin/style/index.js.map +0 -1
  712. package/lib/spin/style/index.less +0 -214
  713. package/lib/statistic/style/index.d.ts +0 -3
  714. package/lib/statistic/style/index.d.ts.map +0 -1
  715. package/lib/statistic/style/index.js +0 -4
  716. package/lib/statistic/style/index.js.map +0 -1
  717. package/lib/statistic/style/index.less +0 -40
  718. package/lib/steps/style/compatibility.less +0 -50
  719. package/lib/steps/style/custom-icon.less +0 -31
  720. package/lib/steps/style/index.d.ts +0 -3
  721. package/lib/steps/style/index.d.ts.map +0 -1
  722. package/lib/steps/style/index.js +0 -4
  723. package/lib/steps/style/index.js.map +0 -1
  724. package/lib/steps/style/label-placement.less +0 -38
  725. package/lib/steps/style/progress-dot.less +0 -80
  726. package/lib/steps/style/vertical.less +0 -74
  727. package/lib/style/color/bezierEasing.less +0 -110
  728. package/lib/style/color/colorPalette.less +0 -75
  729. package/lib/style/color/colors.less +0 -149
  730. package/lib/style/color/tinyColor.less +0 -1184
  731. package/lib/style/core/base.less +0 -510
  732. package/lib/style/core/iconfont.less +0 -19
  733. package/lib/style/core/index.less +0 -4
  734. package/lib/style/core/motion/fade.less +0 -31
  735. package/lib/style/core/motion/move.less +0 -120
  736. package/lib/style/core/motion/other.less +0 -40
  737. package/lib/style/core/motion/slide.less +0 -120
  738. package/lib/style/core/motion/swing.less +0 -34
  739. package/lib/style/core/motion/zoom.less +0 -162
  740. package/lib/style/core/motion.less +0 -20
  741. package/lib/style/index.d.ts +0 -2
  742. package/lib/style/index.d.ts.map +0 -1
  743. package/lib/style/index.js +0 -3
  744. package/lib/style/index.js.map +0 -1
  745. package/lib/style/index.less +0 -2
  746. package/lib/style/mixins/clearfix.less +0 -13
  747. package/lib/style/mixins/compatibility.less +0 -22
  748. package/lib/style/mixins/iconfont.less +0 -43
  749. package/lib/style/mixins/index.less +0 -10
  750. package/lib/style/mixins/motion.less +0 -35
  751. package/lib/style/mixins/operation-unit.less +0 -18
  752. package/lib/style/mixins/reset.less +0 -13
  753. package/lib/style/mixins/size.less +0 -10
  754. package/lib/style/mixins/typography.less +0 -49
  755. package/lib/style/themes/default.less +0 -699
  756. package/lib/style/themes/index.less +0 -1
  757. package/lib/style/v2-compatible-reset.d.ts +0 -2
  758. package/lib/style/v2-compatible-reset.d.ts.map +0 -1
  759. package/lib/style/v2-compatible-reset.js +0 -3
  760. package/lib/style/v2-compatible-reset.js.map +0 -1
  761. package/lib/style/v2-compatible-reset.less +0 -51
  762. package/lib/switch/style/index.d.ts +0 -3
  763. package/lib/switch/style/index.d.ts.map +0 -1
  764. package/lib/switch/style/index.js +0 -4
  765. package/lib/switch/style/index.js.map +0 -1
  766. package/lib/switch/style/index.less +0 -178
  767. package/lib/table/style/index.d.ts +0 -9
  768. package/lib/table/style/index.d.ts.map +0 -1
  769. package/lib/table/style/index.js +0 -10
  770. package/lib/table/style/index.js.map +0 -1
  771. package/lib/table/style/index.less +0 -800
  772. package/lib/table/style/size.less +0 -179
  773. package/lib/tabs/style/card-style.less +0 -186
  774. package/lib/tabs/style/index.d.ts +0 -3
  775. package/lib/tabs/style/index.d.ts.map +0 -1
  776. package/lib/tabs/style/index.js +0 -4
  777. package/lib/tabs/style/index.js.map +0 -1
  778. package/lib/tabs/style/index.less +0 -436
  779. package/lib/tag/style/index.d.ts +0 -3
  780. package/lib/tag/style/index.d.ts.map +0 -1
  781. package/lib/tag/style/index.js +0 -4
  782. package/lib/tag/style/index.js.map +0 -1
  783. package/lib/tag/style/index.less +0 -106
  784. package/lib/time-picker/style/index.d.ts +0 -3
  785. package/lib/time-picker/style/index.d.ts.map +0 -1
  786. package/lib/time-picker/style/index.js +0 -4
  787. package/lib/time-picker/style/index.js.map +0 -1
  788. package/lib/time-picker/style/index.less +0 -246
  789. package/lib/timeline/style/index.d.ts +0 -3
  790. package/lib/timeline/style/index.d.ts.map +0 -1
  791. package/lib/timeline/style/index.js +0 -4
  792. package/lib/timeline/style/index.js.map +0 -1
  793. package/lib/timeline/style/index.less +0 -167
  794. package/lib/tntd-form/TntdForm/components/Item.js +0 -65
  795. package/lib/tntd-form/TntdForm/components/ItemComp.js +0 -215
  796. package/lib/tntd-form/TntdForm/components/List.js +0 -123
  797. package/lib/tntd-form/TntdForm/index.js +0 -72
  798. package/lib/tntd-form/TntdForm/interface.js +0 -5
  799. package/lib/tntd-form/TntdForm/store.js +0 -10
  800. package/lib/tntd-form/TntdForm/utils.js +0 -239
  801. package/lib/tntd-select/_util/DisabledContext.d.ts +0 -10
  802. package/lib/tntd-select/_util/DisabledContext.d.ts.map +0 -1
  803. package/lib/tntd-select/_util/DisabledContext.js +0 -22
  804. package/lib/tntd-select/_util/DisabledContext.js.map +0 -1
  805. package/lib/tntd-select/_util/FormItemInputContext.d.ts +0 -4
  806. package/lib/tntd-select/_util/FormItemInputContext.d.ts.map +0 -1
  807. package/lib/tntd-select/_util/FormItemInputContext.js +0 -12
  808. package/lib/tntd-select/_util/FormItemInputContext.js.map +0 -1
  809. package/lib/tntd-select/_util/PurePanel.d.ts +0 -9
  810. package/lib/tntd-select/_util/PurePanel.d.ts.map +0 -1
  811. package/lib/tntd-select/_util/PurePanel.js +0 -90
  812. package/lib/tntd-select/_util/PurePanel.js.map +0 -1
  813. package/lib/tntd-select/_util/SizeContext.d.ts +0 -4
  814. package/lib/tntd-select/_util/SizeContext.d.ts.map +0 -1
  815. package/lib/tntd-select/_util/SizeContext.js +0 -12
  816. package/lib/tntd-select/_util/SizeContext.js.map +0 -1
  817. package/lib/tntd-select/_util/context.d.ts.map +0 -1
  818. package/lib/tntd-select/_util/context.js.map +0 -1
  819. package/lib/tntd-select/_util/defaultRenderEmpty.d.ts.map +0 -1
  820. package/lib/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
  821. package/lib/tntd-select/_util/getIcons.d.ts +0 -25
  822. package/lib/tntd-select/_util/getIcons.d.ts.map +0 -1
  823. package/lib/tntd-select/_util/getIcons.js +0 -84
  824. package/lib/tntd-select/_util/getIcons.js.map +0 -1
  825. package/lib/tntd-select/_util/interface.d.ts +0 -25
  826. package/lib/tntd-select/_util/interface.d.ts.map +0 -1
  827. package/lib/tntd-select/_util/interface.js +0 -16
  828. package/lib/tntd-select/_util/interface.js.map +0 -1
  829. package/lib/tntd-select/_util/motion.d.ts +0 -9
  830. package/lib/tntd-select/_util/motion.d.ts.map +0 -1
  831. package/lib/tntd-select/_util/motion.js +0 -59
  832. package/lib/tntd-select/_util/motion.js.map +0 -1
  833. package/lib/tntd-select/_util/type.d.ts +0 -10
  834. package/lib/tntd-select/_util/type.d.ts.map +0 -1
  835. package/lib/tntd-select/_util/type.js +0 -21
  836. package/lib/tntd-select/_util/type.js.map +0 -1
  837. package/lib/tntd-select/_util/useCompactItemContext.d.ts +0 -9
  838. package/lib/tntd-select/_util/useCompactItemContext.d.ts.map +0 -1
  839. package/lib/tntd-select/_util/useCompactItemContext.js +0 -35
  840. package/lib/tntd-select/_util/useCompactItemContext.js.map +0 -1
  841. package/lib/tntd-select/_util/warning.d.ts +0 -4
  842. package/lib/tntd-select/_util/warning.d.ts.map +0 -1
  843. package/lib/tntd-select/_util/warning.js +0 -24
  844. package/lib/tntd-select/_util/warning.js.map +0 -1
  845. package/lib/tntd-select/rc-select/BaseSelect.d.ts +0 -114
  846. package/lib/tntd-select/rc-select/BaseSelect.d.ts.map +0 -1
  847. package/lib/tntd-select/rc-select/BaseSelect.js +0 -566
  848. package/lib/tntd-select/rc-select/BaseSelect.js.map +0 -1
  849. package/lib/tntd-select/rc-select/OptGroup.d.ts +0 -13
  850. package/lib/tntd-select/rc-select/OptGroup.d.ts.map +0 -1
  851. package/lib/tntd-select/rc-select/OptGroup.js +0 -13
  852. package/lib/tntd-select/rc-select/OptGroup.js.map +0 -1
  853. package/lib/tntd-select/rc-select/Option.d.ts +0 -15
  854. package/lib/tntd-select/rc-select/Option.d.ts.map +0 -1
  855. package/lib/tntd-select/rc-select/Option.js +0 -13
  856. package/lib/tntd-select/rc-select/Option.js.map +0 -1
  857. package/lib/tntd-select/rc-select/OptionList.d.ts +0 -11
  858. package/lib/tntd-select/rc-select/OptionList.d.ts.map +0 -1
  859. package/lib/tntd-select/rc-select/OptionList.js +0 -372
  860. package/lib/tntd-select/rc-select/OptionList.js.map +0 -1
  861. package/lib/tntd-select/rc-select/Select.d.ts +0 -115
  862. package/lib/tntd-select/rc-select/Select.d.ts.map +0 -1
  863. package/lib/tntd-select/rc-select/Select.js +0 -509
  864. package/lib/tntd-select/rc-select/Select.js.map +0 -1
  865. package/lib/tntd-select/rc-select/SelectContext.d.ts +0 -23
  866. package/lib/tntd-select/rc-select/SelectContext.d.ts.map +0 -1
  867. package/lib/tntd-select/rc-select/SelectContext.js +0 -13
  868. package/lib/tntd-select/rc-select/SelectContext.js.map +0 -1
  869. package/lib/tntd-select/rc-select/SelectTrigger.d.ts +0 -31
  870. package/lib/tntd-select/rc-select/SelectTrigger.d.ts.map +0 -1
  871. package/lib/tntd-select/rc-select/SelectTrigger.js +0 -149
  872. package/lib/tntd-select/rc-select/SelectTrigger.js.map +0 -1
  873. package/lib/tntd-select/rc-select/Selector/Input.d.ts +0 -27
  874. package/lib/tntd-select/rc-select/Selector/Input.d.ts.map +0 -1
  875. package/lib/tntd-select/rc-select/Selector/Input.js +0 -110
  876. package/lib/tntd-select/rc-select/Selector/Input.js.map +0 -1
  877. package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts +0 -17
  878. package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts.map +0 -1
  879. package/lib/tntd-select/rc-select/Selector/MultipleSelector.js +0 -193
  880. package/lib/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
  881. package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts +0 -9
  882. package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts.map +0 -1
  883. package/lib/tntd-select/rc-select/Selector/SingleSelector.js +0 -116
  884. package/lib/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
  885. package/lib/tntd-select/rc-select/Selector/index.d.ts +0 -83
  886. package/lib/tntd-select/rc-select/Selector/index.d.ts.map +0 -1
  887. package/lib/tntd-select/rc-select/Selector/index.js +0 -159
  888. package/lib/tntd-select/rc-select/Selector/index.js.map +0 -1
  889. package/lib/tntd-select/rc-select/TransBtn.d.ts +0 -13
  890. package/lib/tntd-select/rc-select/TransBtn.d.ts.map +0 -1
  891. package/lib/tntd-select/rc-select/TransBtn.js +0 -48
  892. package/lib/tntd-select/rc-select/TransBtn.js.map +0 -1
  893. package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts +0 -9
  894. package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts.map +0 -1
  895. package/lib/tntd-select/rc-select/hooks/useAllowClear.js +0 -35
  896. package/lib/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
  897. package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts +0 -14
  898. package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts.map +0 -1
  899. package/lib/tntd-select/rc-select/hooks/useBaseProps.js +0 -21
  900. package/lib/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
  901. package/lib/tntd-select/rc-select/hooks/useCache.d.ts +0 -8
  902. package/lib/tntd-select/rc-select/hooks/useCache.d.ts.map +0 -1
  903. package/lib/tntd-select/rc-select/hooks/useCache.js +0 -49
  904. package/lib/tntd-select/rc-select/hooks/useCache.js.map +0 -1
  905. package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts +0 -6
  906. package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts.map +0 -1
  907. package/lib/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
  908. package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts +0 -4
  909. package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts.map +0 -1
  910. package/lib/tntd-select/rc-select/hooks/useFilterOptions.js +0 -72
  911. package/lib/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
  912. package/lib/tntd-select/rc-select/hooks/useId.d.ts +0 -6
  913. package/lib/tntd-select/rc-select/hooks/useId.d.ts.map +0 -1
  914. package/lib/tntd-select/rc-select/hooks/useId.js.map +0 -1
  915. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts +0 -6
  916. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts.map +0 -1
  917. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -26
  918. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
  919. package/lib/tntd-select/rc-select/hooks/useLock.d.ts +0 -8
  920. package/lib/tntd-select/rc-select/hooks/useLock.d.ts.map +0 -1
  921. package/lib/tntd-select/rc-select/hooks/useLock.js +0 -39
  922. package/lib/tntd-select/rc-select/hooks/useLock.js.map +0 -1
  923. package/lib/tntd-select/rc-select/hooks/useOptions.d.ts +0 -12
  924. package/lib/tntd-select/rc-select/hooks/useOptions.d.ts.map +0 -1
  925. package/lib/tntd-select/rc-select/hooks/useOptions.js +0 -53
  926. package/lib/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
  927. package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts +0 -6
  928. package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts.map +0 -1
  929. package/lib/tntd-select/rc-select/hooks/useRefFunc.js +0 -22
  930. package/lib/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
  931. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -2
  932. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts.map +0 -1
  933. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -43
  934. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
  935. package/lib/tntd-select/rc-select/index.d.ts +0 -11
  936. package/lib/tntd-select/rc-select/index.d.ts.map +0 -1
  937. package/lib/tntd-select/rc-select/index.js +0 -38
  938. package/lib/tntd-select/rc-select/index.js.map +0 -1
  939. package/lib/tntd-select/rc-select/interface.d.ts +0 -23
  940. package/lib/tntd-select/rc-select/interface.d.ts.map +0 -1
  941. package/lib/tntd-select/rc-select/interface.js +0 -5
  942. package/lib/tntd-select/rc-select/interface.js.map +0 -1
  943. package/lib/tntd-select/rc-select/utils/commonUtil.d.ts +0 -10
  944. package/lib/tntd-select/rc-select/utils/commonUtil.d.ts.map +0 -1
  945. package/lib/tntd-select/rc-select/utils/commonUtil.js +0 -43
  946. package/lib/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
  947. package/lib/tntd-select/rc-select/utils/keyUtil.d.ts +0 -3
  948. package/lib/tntd-select/rc-select/utils/keyUtil.d.ts.map +0 -1
  949. package/lib/tntd-select/rc-select/utils/keyUtil.js +0 -16
  950. package/lib/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
  951. package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts +0 -4
  952. package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts.map +0 -1
  953. package/lib/tntd-select/rc-select/utils/legacyUtil.js +0 -60
  954. package/lib/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
  955. package/lib/tntd-select/rc-select/utils/platformUtil.d.ts +0 -2
  956. package/lib/tntd-select/rc-select/utils/platformUtil.d.ts.map +0 -1
  957. package/lib/tntd-select/rc-select/utils/platformUtil.js +0 -10
  958. package/lib/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
  959. package/lib/tntd-select/rc-select/utils/valueUtil.d.ts +0 -24
  960. package/lib/tntd-select/rc-select/utils/valueUtil.d.ts.map +0 -1
  961. package/lib/tntd-select/rc-select/utils/valueUtil.js +0 -132
  962. package/lib/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
  963. package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts +0 -5
  964. package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts.map +0 -1
  965. package/lib/tntd-select/rc-select/utils/warningPropsUtil.js +0 -127
  966. package/lib/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
  967. package/lib/tooltip/style/index.d.ts +0 -3
  968. package/lib/tooltip/style/index.d.ts.map +0 -1
  969. package/lib/tooltip/style/index.js +0 -4
  970. package/lib/tooltip/style/index.js.map +0 -1
  971. package/lib/tooltip/style/index.less +0 -187
  972. package/lib/transfer/style/customize.less +0 -62
  973. package/lib/transfer/style/index.d.ts +0 -7
  974. package/lib/transfer/style/index.d.ts.map +0 -1
  975. package/lib/transfer/style/index.js +0 -8
  976. package/lib/transfer/style/index.js.map +0 -1
  977. package/lib/transfer/style/index.less +0 -191
  978. package/lib/tree/style/directory.less +0 -95
  979. package/lib/tree/style/index.d.ts +0 -3
  980. package/lib/tree/style/index.d.ts.map +0 -1
  981. package/lib/tree/style/index.js +0 -4
  982. package/lib/tree/style/index.js.map +0 -1
  983. package/lib/tree/style/index.less +0 -280
  984. package/lib/tree/style/mixin.less +0 -29
  985. package/lib/tree-select/style/index.d.ts +0 -5
  986. package/lib/tree-select/style/index.d.ts.map +0 -1
  987. package/lib/tree-select/style/index.js +0 -6
  988. package/lib/tree-select/style/index.js.map +0 -1
  989. package/lib/tree-select/style/index.less +0 -191
  990. package/lib/typography/style/index.d.ts +0 -5
  991. package/lib/typography/style/index.d.ts.map +0 -1
  992. package/lib/typography/style/index.js +0 -6
  993. package/lib/typography/style/index.js.map +0 -1
  994. package/lib/typography/style/index.less +0 -204
  995. package/lib/upload/style/index.d.ts +0 -5
  996. package/lib/upload/style/index.d.ts.map +0 -1
  997. package/lib/upload/style/index.js +0 -6
  998. package/lib/upload/style/index.js.map +0 -1
  999. package/lib/upload/style/index.less +0 -542
  1000. package/lib/version/style/index.d.ts +0 -2
  1001. package/lib/version/style/index.d.ts.map +0 -1
  1002. package/lib/version/style/index.js +0 -3
  1003. package/lib/version/style/index.js.map +0 -1
  1004. /package/es/{tntd-select → tntd-form}/_util/context.js +0 -0
  1005. /package/es/{tntd-select → tntd-form}/_util/defaultRenderEmpty.js +0 -0
  1006. /package/es/{grid-v4 → tntd-form/grid}/RowContext.js +0 -0
  1007. /package/es/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.js +0 -0
  1008. /package/es/{grid-v4 → tntd-form/grid}/index.js +0 -0
  1009. /package/es/{affix → tntd-form/grid}/style/index.js +0 -0
  1010. /package/lib/{tntd-select → tntd-form}/_util/context.d.ts +0 -0
  1011. /package/lib/{tntd-select → tntd-form}/_util/context.js +0 -0
  1012. /package/lib/{tntd-select → tntd-form}/_util/defaultRenderEmpty.d.ts +0 -0
  1013. /package/lib/{tntd-select → tntd-form}/_util/defaultRenderEmpty.js +0 -0
  1014. /package/lib/{grid-v4 → tntd-form/grid}/RowContext.d.ts +0 -0
  1015. /package/lib/{grid-v4 → tntd-form/grid}/RowContext.js +0 -0
  1016. /package/lib/{grid-v4 → tntd-form/grid}/col.d.ts +0 -0
  1017. /package/lib/{grid-v4 → tntd-form/grid}/col.js +0 -0
  1018. /package/lib/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.d.ts +0 -0
  1019. /package/lib/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.js +0 -0
  1020. /package/lib/{grid-v4 → tntd-form/grid}/index.d.ts +0 -0
  1021. /package/lib/{grid-v4 → tntd-form/grid}/index.js +0 -0
  1022. /package/lib/{grid-v4 → tntd-form/grid}/row.d.ts +0 -0
  1023. /package/lib/{affix → tntd-form/grid}/style/index.d.ts +0 -0
  1024. /package/lib/{affix → tntd-form/grid}/style/index.js +0 -0
@@ -1,126 +0,0 @@
1
- @import '../../input/style/mixin';
2
-
3
- .form-control-validation(@text-color: @input-color; @border-color: @input-border-color; @background-color: @input-bg) {
4
- .@{ant-prefix}-form-explain,
5
- .@{ant-prefix}-form-split {
6
- color: @text-color;
7
- }
8
- // 输入框的不同校验状态
9
- .@{ant-prefix}-input {
10
- &,
11
- &:hover {
12
- background-color: @background-color;
13
- border-color: @border-color;
14
- }
15
-
16
- &:focus {
17
- .active(@border-color);
18
- }
19
-
20
- &:not([disabled]):hover {
21
- border-color: @border-color;
22
- }
23
- }
24
-
25
- .@{ant-prefix}-calendar-picker-open .@{ant-prefix}-calendar-picker-input {
26
- .active(@border-color);
27
- }
28
-
29
- // Input prefix
30
- .@{ant-prefix}-input-affix-wrapper {
31
- .@{ant-prefix}-input {
32
- &,
33
- &:hover {
34
- background-color: @background-color;
35
- border-color: @border-color;
36
- }
37
-
38
- &:focus {
39
- .active(@border-color);
40
- }
41
- }
42
-
43
- &:hover .@{ant-prefix}-input:not(.@{ant-prefix}-input-disabled) {
44
- border-color: @border-color;
45
- }
46
- }
47
-
48
- .@{ant-prefix}-input-prefix {
49
- color: @text-color;
50
- }
51
-
52
- .@{ant-prefix}-input-group-addon {
53
- color: @text-color;
54
- background-color: @background-color;
55
- border-color: @border-color;
56
- }
57
-
58
- .has-feedback {
59
- color: @text-color;
60
- }
61
- }
62
-
63
- // Reset form styles
64
- // -----------------------------
65
- // Based on Bootstrap framework
66
- .reset-form() {
67
- legend {
68
- display: block;
69
- width: 100%;
70
- margin-bottom: 20px;
71
- padding: 0;
72
- color: @text-color-secondary;
73
- font-size: @font-size-lg;
74
- line-height: inherit;
75
- border: 0;
76
- border-bottom: @border-width-base @border-style-base @border-color-base;
77
- }
78
-
79
- label {
80
- font-size: @font-size-base;
81
- }
82
-
83
- input[type='search'] {
84
- box-sizing: border-box;
85
- }
86
-
87
- // Position radios and checkboxes better
88
- input[type='radio'],
89
- input[type='checkbox'] {
90
- line-height: normal;
91
- }
92
-
93
- input[type='file'] {
94
- display: block;
95
- }
96
-
97
- // Make range inputs behave like textual form controls
98
- input[type='range'] {
99
- display: block;
100
- width: 100%;
101
- }
102
-
103
- // Make multiple select elements height not fixed
104
- select[multiple],
105
- select[size] {
106
- height: auto;
107
- }
108
-
109
- // Focus for file, radio, and checkbox
110
- input[type='file']:focus,
111
- input[type='radio']:focus,
112
- input[type='checkbox']:focus {
113
- outline: thin dotted;
114
- outline: 5px auto -webkit-focus-ring-color;
115
- outline-offset: -2px;
116
- }
117
-
118
- // Adjust output element
119
- output {
120
- display: block;
121
- padding-top: 15px;
122
- color: @input-color;
123
- font-size: @font-size-base;
124
- line-height: @line-height-base;
125
- }
126
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"RowContext.d.ts","sourceRoot":"","sources":["../../src/grid-v4/RowContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAGpC,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,QAAA,MAAM,UAAU,EAAE,OAAO,CAAC,eAAe,CAAqB,CAAA;AAE9D,eAAe,UAAU,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RowContext.js","sourceRoot":"","sources":["../../src/grid-v4/RowContext.tsx"],"names":[],"mappings":";;AACA,iCAAqC;AAQrC,MAAM,UAAU,GAA6B,IAAA,qBAAa,EAAC,EAAE,CAAC,CAAA;AAE9D,kBAAe,UAAU,CAAA","sourcesContent":["import type { Context } from 'react'\nimport { createContext } from 'react'\n\nexport interface RowContextState {\n gutter?: [number, number]\n wrap?: boolean\n supportFlexGap?: boolean\n}\n\nconst RowContext: Context<RowContextState> = createContext({})\n\nexport default RowContext\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"col.d.ts","sourceRoot":"","sources":["../../src/grid-v4/col.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,aAAK,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AAElC,aAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAEjD,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,IAAI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AgB,CAAA;KAC5C;IAED,mDAAmD;IACnD,IAAI,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,EAAE;QAC9C,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;QACpC,WAAW,CAAC,UAAU,GAAG,cAAc,CAAA;QACvC,WAAW,CAAC,aAAa,GAAG,cAAc,CAAA;KAC3C;IAED,IAAI,IAAI,EAAE;QACR,WAAW,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,CAAA;QAElC,uCAAuC;QACvC,6EAA6E;QAC7E,IAAI,IAAI,KAAK,KAAK,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE;YAC3C,WAAW,CAAC,QAAQ,GAAG,CAAC,CAAA;SACzB;KACF;IAED,OAAO,CACL,6CAAS,MAAM,IAAE,KAAK,kCAAO,WAAW,GAAK,KAAK,GAAI,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,KAC/E,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,GAAG,CAAC,WAAW,GAAG,KAAK,CAAA;CACxB;AAED,kBAAe,GAAG,CAAA","sourcesContent":["import classNames from 'classnames'\nimport * as React from 'react'\nimport { ConfigContext } from '../_util/context'\nimport RowContext from './RowContext'\n\n// https://github.com/ant-design/ant-design/issues/14324\ntype ColSpanType = number | string\n\ntype FlexType = number | 'none' | 'auto' | string\n\nexport interface ColSize {\n flex?: FlexType\n span?: ColSpanType\n order?: ColSpanType\n offset?: ColSpanType\n push?: ColSpanType\n pull?: ColSpanType\n}\n\nexport interface ColProps extends React.HTMLAttributes<HTMLDivElement> {\n flex?: FlexType\n span?: ColSpanType\n order?: ColSpanType\n offset?: ColSpanType\n push?: ColSpanType\n pull?: ColSpanType\n xs?: ColSpanType | ColSize\n sm?: ColSpanType | ColSize\n md?: ColSpanType | ColSize\n lg?: ColSpanType | ColSize\n xl?: ColSpanType | ColSize\n xxl?: ColSpanType | ColSize\n prefixCls?: string\n}\n\nfunction parseFlex(flex: FlexType): string {\n if (typeof flex === 'number') {\n return `${flex} ${flex} auto`\n }\n\n if (/^\\d+(\\.\\d+)?(px|em|rem|%)$/.test(flex)) {\n return `0 0 ${flex}`\n }\n\n return flex\n}\nconst sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'] as const\nconst Col = React.forwardRef<HTMLDivElement, ColProps>((props, ref) => {\n const { getPrefixCls, direction } = React.useContext(ConfigContext)\n const { gutter, wrap, supportFlexGap } = React.useContext(RowContext)\n\n const {\n prefixCls: customizePrefixCls = 'tnt-col',\n span,\n order,\n offset,\n push,\n pull,\n className,\n children,\n flex,\n style,\n ...others\n } = props\n\n const prefixCls = getPrefixCls('col', customizePrefixCls)\n\n let sizeClassObj = {}\n sizes.forEach((size) => {\n let sizeProps: ColSize = {}\n const propSize = props[size]\n if (typeof propSize === 'number') {\n sizeProps.span = propSize\n } else if (typeof propSize === 'object') {\n sizeProps = propSize || {}\n }\n\n delete others[size]\n\n sizeClassObj = {\n ...sizeClassObj,\n [`${prefixCls}-${size}-${sizeProps.span}`]: sizeProps.span !== undefined,\n [`${prefixCls}-${size}-order-${sizeProps.order}`]: sizeProps.order || sizeProps.order === 0,\n [`${prefixCls}-${size}-offset-${sizeProps.offset}`]:\n sizeProps.offset || sizeProps.offset === 0,\n [`${prefixCls}-${size}-push-${sizeProps.push}`]: sizeProps.push || sizeProps.push === 0,\n [`${prefixCls}-${size}-pull-${sizeProps.pull}`]: sizeProps.pull || sizeProps.pull === 0,\n [`${prefixCls}-rtl`]: direction === 'rtl',\n }\n })\n\n const classes = classNames(\n prefixCls,\n {\n [`${prefixCls}-${span}`]: span !== undefined,\n [`${prefixCls}-order-${order}`]: order,\n [`${prefixCls}-offset-${offset}`]: offset,\n [`${prefixCls}-push-${push}`]: push,\n [`${prefixCls}-pull-${pull}`]: pull,\n },\n className,\n sizeClassObj\n )\n\n const mergedStyle: React.CSSProperties = {}\n // Horizontal gutter use padding\n if (gutter && gutter[0] > 0) {\n const horizontalGutter = gutter[0] / 2\n mergedStyle.paddingLeft = horizontalGutter\n mergedStyle.paddingRight = horizontalGutter\n }\n\n // Vertical gutter use padding when gap not support\n if (gutter && gutter[1] > 0 && !supportFlexGap) {\n const verticalGutter = gutter[1] / 2\n mergedStyle.paddingTop = verticalGutter\n mergedStyle.paddingBottom = verticalGutter\n }\n\n if (flex) {\n mergedStyle.flex = parseFlex(flex)\n\n // Hack for Firefox to avoid size issue\n // https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553\n if (wrap === false && !mergedStyle.minWidth) {\n mergedStyle.minWidth = 0\n }\n }\n\n return (\n <div {...others} style={{ ...mergedStyle, ...style }} className={classes} ref={ref}>\n {children}\n </div>\n )\n})\n\nif (process.env.NODE_ENV !== 'production') {\n Col.displayName = 'Col'\n}\n\nexport default Col\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../../src/grid-v4/hooks/useBreakpoint.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAG9D,iBAAS,aAAa,CAAC,eAAe,GAAE,OAAc,GAAG,SAAS,CAgBjE;AAED,eAAe,aAAa,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBreakpoint.js","sourceRoot":"","sources":["../../../src/grid-v4/hooks/useBreakpoint.tsx"],"names":[],"mappings":";;;;;AAAA,iCAAyC;AACzC,sFAA6D;AAE7D,sFAA6D;AAE7D,SAAS,aAAa,CAAC,kBAA2B,IAAI;IACpD,MAAM,UAAU,GAAG,IAAA,cAAM,EAAY,EAAE,CAAC,CAAA;IACxC,MAAM,WAAW,GAAG,IAAA,wBAAc,GAAE,CAAA;IAEpC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,2BAAiB,CAAC,SAAS,CAAC,CAAC,cAAc,EAAE,EAAE;YAC3D,UAAU,CAAC,OAAO,GAAG,cAAc,CAAA;YACnC,IAAI,eAAe,EAAE;gBACnB,WAAW,EAAE,CAAA;aACd;QACH,CAAC,CAAC,CAAA;QAEF,OAAO,GAAG,EAAE,CAAC,2BAAiB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;IACnD,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,UAAU,CAAC,OAAO,CAAA;AAC3B,CAAC;AAED,kBAAe,aAAa,CAAA","sourcesContent":["import { useEffect, useRef } from 'react'\nimport useForceUpdate from '../../_util/hooks/useForceUpdate'\nimport type { ScreenMap } from '../../_util/responsiveObserve'\nimport ResponsiveObserve from '../../_util/responsiveObserve'\n\nfunction useBreakpoint(refreshOnChange: boolean = true): ScreenMap {\n const screensRef = useRef<ScreenMap>({})\n const forceUpdate = useForceUpdate()\n\n useEffect(() => {\n const token = ResponsiveObserve.subscribe((supportScreens) => {\n screensRef.current = supportScreens\n if (refreshOnChange) {\n forceUpdate()\n }\n })\n\n return () => ResponsiveObserve.unsubscribe(token)\n }, [])\n\n return screensRef.current\n}\n\nexport default useBreakpoint\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/grid-v4/index.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAA;AAEvB,OAAO,GAAG,MAAM,OAAO,CAAA;AAEvB,OAAO,SAAS,CAAA;AAGhB,iBAAS,aAAa,8EAErB;AAED,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;;;;AAEnB,wBAAgC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/grid-v4/index.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAuB;AAaT,cAbP,aAAG,CAaO;AAZjB,0EAAyD;AACzD,gDAAuB;AAWd,cAXF,aAAG,CAWE;AATZ,mBAAgB;AAEhB,uBAAuB;AACvB,SAAS,aAAa;IACpB,OAAO,IAAA,uBAAqB,GAAE,CAAA;AAChC,CAAC;AAED,6BAAyC;AACzC,6BAAgC;AAGhC,kBAAe,EAAE,aAAa,EAAE,CAAA","sourcesContent":["import Col from './col'\nimport useInternalBreakpoint from './hooks/useBreakpoint'\nimport Row from './row'\n\nimport './style'\n\n// Do not export params\nfunction useBreakpoint() {\n return useInternalBreakpoint()\n}\n\nexport { ColProps, ColSize } from './col'\nexport { RowProps } from './row'\nexport { Row, Col }\n\nexport default { useBreakpoint }\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"row.d.ts","sourceRoot":"","sources":["../../src/grid-v4/row.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,4BAA4B,CAAA;AAKvE,QAAA,MAAM,SAAS,wCAA8C,CAAA;AAC7D,QAAA,MAAM,UAAU,6EAAmF,CAAA;AAEnG,aAAK,UAAU,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAC1D,aAAK,cAAc,CAAC,CAAC,IAAI;KACtB,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,CAAC;CACxB,CAAA;AAGD,oBAAY,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAA;AAE7E,aAAK,gBAAgB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;AAChE,aAAK,iBAAiB,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAA;AAClE,MAAM,W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,KAAK,kCAAO,QAAQ,GAAK,KAAK,GAAI,GAAG,EAAE,GAAG,KAC5E,QAAQ,CACL,CACc,CACvB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,GAAG,CAAC,WAAW,GAAG,KAAK,CAAA;CACxB;AAED,kBAAe,GAAG,CAAA","sourcesContent":["import classNames from 'classnames'\nimport * as React from 'react'\nimport { ConfigContext } from '../_util/context'\nimport useFlexGapSupport from '../_util/hooks/useFlexGapSupport'\nimport type { Breakpoint, ScreenMap } from '../_util/responsiveObserve'\nimport ResponsiveObserve, { responsiveArray } from '../_util/responsiveObserve'\nimport { tuple } from '../_util/type'\nimport RowContext from './RowContext'\n\nconst RowAligns = tuple('top', 'middle', 'bottom', 'stretch')\nconst RowJustify = tuple('start', 'end', 'center', 'space-around', 'space-between', 'space-evenly')\n\ntype Responsive = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs'\ntype ResponsiveLike<T> = {\n [key in Responsive]?: T\n}\n\ntype Gap = number | undefined\nexport type Gutter = number | undefined | Partial<Record<Breakpoint, number>>\n\ntype ResponsiveAligns = ResponsiveLike<typeof RowAligns[number]>\ntype ResponsiveJustify = ResponsiveLike<typeof RowJustify[number]>\nexport interface RowProps extends React.HTMLAttributes<HTMLDivElement> {\n gutter?: Gutter | [Gutter, Gutter]\n align?: typeof RowAligns[number] | ResponsiveAligns\n justify?: typeof RowJustify[number] | ResponsiveJustify\n prefixCls?: string\n wrap?: boolean\n}\n\nfunction useMergePropByScreen(oriProp: RowProps['align'] | RowProps['justify'], screen: ScreenMap) {\n const [prop, setProp] = React.useState(typeof oriProp === 'string' ? oriProp : '')\n\n const clacMergeAlignOrJustify = () => {\n if (typeof oriProp === 'string') {\n setProp(oriProp)\n }\n if (typeof oriProp !== 'object') {\n return\n }\n for (let i = 0; i < responsiveArray.length; i++) {\n const breakpoint: Breakpoint = responsiveArray[i]\n // if do not match, do nothing\n if (!screen[breakpoint]) continue\n const curVal = oriProp[breakpoint]\n if (curVal !== undefined) {\n setProp(curVal)\n return\n }\n }\n }\n\n React.useEffect(() => {\n clacMergeAlignOrJustify()\n }, [JSON.stringify(oriProp), screen])\n\n return prop\n}\n\nconst Row = React.forwardRef<HTMLDivElement, RowProps>((props, ref) => {\n const {\n prefixCls: customizePrefixCls = 'tnt-row',\n justify,\n align,\n className,\n style,\n children,\n gutter = 0,\n wrap,\n ...others\n } = props\n\n const { getPrefixCls, direction } = React.useContext(ConfigContext)\n\n const [screens, setScreens] = React.useState<ScreenMap>({\n xs: true,\n sm: true,\n md: true,\n lg: true,\n xl: true,\n xxl: true,\n })\n // to save screens info when responsiveObserve callback had been call\n const [curScreens, setCurScreens] = React.useState<ScreenMap>({\n xs: false,\n sm: false,\n md: false,\n lg: false,\n xl: false,\n xxl: false,\n })\n\n // ================================== calc reponsive data ==================================\n const mergeAlign = useMergePropByScreen(align, curScreens)\n\n const mergeJustify = useMergePropByScreen(justify, curScreens)\n\n const supportFlexGap = useFlexGapSupport()\n\n const gutterRef = React.useRef<Gutter | [Gutter, Gutter]>(gutter)\n\n // ================================== Effect ==================================\n React.useEffect(() => {\n const token = ResponsiveObserve.subscribe((screen) => {\n setCurScreens(screen)\n const currentGutter = gutterRef.current || 0\n if (\n (!Array.isArray(currentGutter) && typeof currentGutter === 'object') ||\n (Array.isArray(currentGutter) &&\n (typeof currentGutter[0] === 'object' || typeof currentGutter[1] === 'object'))\n ) {\n setScreens(screen)\n }\n })\n return () => ResponsiveObserve.unsubscribe(token)\n }, [])\n\n // ================================== Render ==================================\n const getGutter = (): [Gap, Gap] => {\n const results: [Gap, Gap] = [undefined, undefined]\n const normalizedGutter = Array.isArray(gutter) ? gutter : [gutter, undefined]\n normalizedGutter.forEach((g, index) => {\n if (typeof g === 'object') {\n for (let i = 0; i < responsiveArray.length; i++) {\n const breakpoint: Breakpoint = responsiveArray[i]\n if (screens[breakpoint] && g[breakpoint] !== undefined) {\n results[index] = g[breakpoint] as number\n break\n }\n }\n } else {\n results[index] = g\n }\n })\n return results\n }\n\n const prefixCls = getPrefixCls('row', customizePrefixCls)\n const gutters = getGutter()\n const classes = classNames(\n prefixCls,\n {\n [`${prefixCls}-no-wrap`]: wrap === false,\n [`${prefixCls}-${mergeJustify}`]: mergeJustify,\n [`${prefixCls}-${mergeAlign}`]: mergeAlign,\n [`${prefixCls}-rtl`]: direction === 'rtl',\n },\n className\n )\n\n // Add gutter related style\n const rowStyle: React.CSSProperties = {}\n const horizontalGutter = gutters[0] != null && gutters[0] > 0 ? gutters[0] / -2 : undefined\n const verticalGutter = gutters[1] != null && gutters[1] > 0 ? gutters[1] / -2 : undefined\n\n if (horizontalGutter) {\n rowStyle.marginLeft = horizontalGutter\n rowStyle.marginRight = horizontalGutter\n }\n\n if (supportFlexGap) {\n // Set gap direct if flex gap support\n ;[, rowStyle.rowGap] = gutters\n } else if (verticalGutter) {\n rowStyle.marginTop = verticalGutter\n rowStyle.marginBottom = verticalGutter\n }\n\n // \"gutters\" is a new array in each rendering phase, it'll make 'React.useMemo' effectless.\n // So we deconstruct \"gutters\" variable here.\n const [gutterH, gutterV] = gutters\n const rowContext = React.useMemo(\n () => ({ gutter: [gutterH, gutterV] as [number, number], wrap, supportFlexGap }),\n [gutterH, gutterV, wrap, supportFlexGap]\n )\n\n return (\n <RowContext.Provider value={rowContext}>\n <div {...others} className={classes} style={{ ...rowStyle, ...style }} ref={ref}>\n {children}\n </div>\n </RowContext.Provider>\n )\n})\n\nif (process.env.NODE_ENV !== 'production') {\n Row.displayName = 'Row'\n}\n\nexport default Row\n"]}
@@ -1,2 +0,0 @@
1
- import './index.less';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/grid-v4/style/index.tsx"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAA"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
-
3
- require("./index.less");
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/grid-v4/style/index.tsx"],"names":[],"mappings":";;AAAA,mCAAmC;AACnC,wBAAqB","sourcesContent":["// import '../../style/index.less';\nimport './index.less'\n"]}
@@ -1,124 +0,0 @@
1
- // @import '../../style/themes/index';
2
- // @import '../../style/mixins/index';
3
- @import './mixin';
4
-
5
- // Grid system
6
- .@{row-prefix-cls} {
7
- display: flex;
8
- flex-flow: row wrap;
9
- min-width: 0;
10
-
11
- &::before,
12
- &::after {
13
- display: flex;
14
- }
15
-
16
- // No wrap of flex
17
- &-no-wrap {
18
- flex-wrap: nowrap;
19
- }
20
- }
21
-
22
- // x轴原点
23
- .@{row-prefix-cls}-start {
24
- justify-content: flex-start;
25
- }
26
-
27
- // x轴居中
28
- .@{row-prefix-cls}-center {
29
- justify-content: center;
30
- }
31
-
32
- // x轴反方向
33
- .@{row-prefix-cls}-end {
34
- justify-content: flex-end;
35
- }
36
-
37
- // x轴平分
38
- .@{row-prefix-cls}-space-between {
39
- justify-content: space-between;
40
- }
41
-
42
- // x轴有间隔地平分
43
- .@{row-prefix-cls}-space-around {
44
- justify-content: space-around;
45
- }
46
-
47
- // x轴有间隔地均分
48
- .@{row-prefix-cls}-space-evenly {
49
- justify-content: space-evenly;
50
- }
51
-
52
- // 顶部对齐
53
- .@{row-prefix-cls}-top {
54
- align-items: flex-start;
55
- }
56
-
57
- // 居中对齐
58
- .@{row-prefix-cls}-middle {
59
- align-items: center;
60
- }
61
-
62
- // 底部对齐
63
- .@{row-prefix-cls}-bottom {
64
- align-items: flex-end;
65
- }
66
-
67
- .@{col-prefix-cls} {
68
- position: relative;
69
- max-width: 100%;
70
- // Prevent columns from collapsing when empty
71
- min-height: 1px;
72
- }
73
-
74
- .make-grid();
75
-
76
- // Extra small grid
77
- //
78
- // Columns, offsets, pushes, and pulls for extra small devices like
79
- // smartphones.
80
-
81
- .make-grid(-xs);
82
-
83
- // Small grid
84
- //
85
- // Columns, offsets, pushes, and pulls for the small device range, from phones
86
- // to tablets.
87
-
88
- @media (min-width: @screen-sm-min) {
89
- .make-grid(-sm);
90
- }
91
-
92
- // Medium grid
93
- //
94
- // Columns, offsets, pushes, and pulls for the desktop device range.
95
-
96
- @media (min-width: @screen-md-min) {
97
- .make-grid(-md);
98
- }
99
-
100
- // Large grid
101
- //
102
- // Columns, offsets, pushes, and pulls for the large desktop device range.
103
-
104
- @media (min-width: @screen-lg-min) {
105
- .make-grid(-lg);
106
- }
107
-
108
- // Extra Large grid
109
- //
110
- // Columns, offsets, pushes, and pulls for the full hd device range.
111
-
112
- @media (min-width: @screen-xl-min) {
113
- .make-grid(-xl);
114
- }
115
-
116
- // Extra Extra Large grid
117
- //
118
- // Columns, offsets, pushes, and pulls for the full hd device range.
119
-
120
- @media (min-width: @screen-xxl-min) {
121
- .make-grid(-xxl);
122
- }
123
-
124
- @import './rtl';
@@ -1,57 +0,0 @@
1
- // @import '../../style/mixins/index';
2
- @tnt-prefix: tnt;
3
-
4
- @row-prefix-cls: ~'@{tnt-prefix}-row';
5
- @col-prefix-cls: ~'@{tnt-prefix}-col';
6
-
7
- // mixins for grid system
8
- // ------------------------
9
-
10
- .loop-grid-columns(@index, @class) when (@index > 0) {
11
- .@{col-prefix-cls}@{class}-@{index} {
12
- display: block;
13
- flex: 0 0 percentage((@index / @grid-columns));
14
- max-width: percentage((@index / @grid-columns));
15
- }
16
- .@{col-prefix-cls}@{class}-push-@{index} {
17
- left: percentage((@index / @grid-columns));
18
- }
19
- .@{col-prefix-cls}@{class}-pull-@{index} {
20
- right: percentage((@index / @grid-columns));
21
- }
22
- .@{col-prefix-cls}@{class}-offset-@{index} {
23
- margin-left: percentage((@index / @grid-columns));
24
- }
25
- .@{col-prefix-cls}@{class}-order-@{index} {
26
- order: @index;
27
- }
28
- .loop-grid-columns((@index - 1), @class);
29
- }
30
-
31
- .loop-grid-columns(@index, @class) when (@index = 0) {
32
- .@{col-prefix-cls}@{class}-@{index} {
33
- display: none;
34
- }
35
- .@{col-prefix-cls}-push-@{index} {
36
- left: auto;
37
- }
38
- .@{col-prefix-cls}-pull-@{index} {
39
- right: auto;
40
- }
41
- .@{col-prefix-cls}@{class}-push-@{index} {
42
- left: auto;
43
- }
44
- .@{col-prefix-cls}@{class}-pull-@{index} {
45
- right: auto;
46
- }
47
- .@{col-prefix-cls}@{class}-offset-@{index} {
48
- margin-left: 0;
49
- }
50
- .@{col-prefix-cls}@{class}-order-@{index} {
51
- order: 0;
52
- }
53
- }
54
-
55
- .make-grid(@class: ~'') {
56
- .loop-grid-columns(@grid-columns, @class);
57
- }
@@ -1,69 +0,0 @@
1
- // @import '../../style/themes/index';
2
- // @import '../../style/mixins/index';
3
- @import './mixin';
4
-
5
- .@{row-prefix-cls} {
6
- &-rtl {
7
- direction: rtl;
8
- }
9
- }
10
-
11
- // mixin
12
- .loop-grid-columns(@index, @class) when (@index > 0) {
13
- .@{col-prefix-cls}@{class}-push-@{index} {
14
- // reset property in RTL direction
15
- &.@{col-prefix-cls}-rtl {
16
- right: percentage((@index / @grid-columns));
17
- left: auto;
18
- }
19
- }
20
-
21
- .@{col-prefix-cls}@{class}-pull-@{index} {
22
- // reset property in RTL direction
23
- &.@{col-prefix-cls}-rtl {
24
- right: auto;
25
- left: percentage((@index / @grid-columns));
26
- }
27
- }
28
-
29
- .@{col-prefix-cls}@{class}-offset-@{index} {
30
- // reset property in RTL direction
31
- &.@{col-prefix-cls}-rtl {
32
- margin-right: percentage((@index / @grid-columns));
33
- margin-left: 0;
34
- }
35
- }
36
- }
37
-
38
- .loop-grid-columns(@index, @class) when (@index = 0) {
39
- .@{col-prefix-cls}-push-@{index} {
40
- // reset property in RTL direction
41
- &.@{col-prefix-cls}-rtl {
42
- right: auto;
43
- }
44
- }
45
-
46
- .@{col-prefix-cls}-pull-@{index} {
47
- &.@{col-prefix-cls}-rtl {
48
- left: auto;
49
- }
50
- }
51
-
52
- .@{col-prefix-cls}@{class}-push-@{index} {
53
- &.@{col-prefix-cls}-rtl {
54
- right: auto;
55
- }
56
- }
57
-
58
- .@{col-prefix-cls}@{class}-pull-@{index} {
59
- &.@{col-prefix-cls}-rtl {
60
- left: auto;
61
- }
62
- }
63
-
64
- .@{col-prefix-cls}@{class}-offset-@{index} {
65
- &.@{col-prefix-cls}-rtl {
66
- margin-right: 0;
67
- }
68
- }
69
- }
@@ -1,3 +0,0 @@
1
- declare function _default(props: any): JSX.Element;
2
- export default _default;
3
- //# sourceMappingURL=handle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handle.d.ts","sourceRoot":"","sources":["../../src/handle/handle.js"],"names":[],"mappings":"AAMe,mDA4Jd"}
@@ -1,181 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _tntdIcon = _interopRequireDefault(require("../tntd-icon"));
10
- var _divider = _interopRequireDefault(require("../divider"));
11
- var _dropdown = _interopRequireDefault(require("../dropdown"));
12
- var _menu = _interopRequireDefault(require("../menu"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
17
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
19
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
20
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
- 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."); }
22
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
23
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
24
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
- var __rest = void 0 && (void 0).__rest || function (s, e) {
27
- var t = {};
28
- for (var p in s) {
29
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
30
- }
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 clsPrefix = 'tntd-more-menus';
37
- var _default = function _default(props) {
38
- var _a = props || {},
39
- _a$children = _a.children,
40
- children = _a$children === void 0 ? [] : _a$children,
41
- type = _a.type,
42
- _a$num = _a.num,
43
- num = _a$num === void 0 ? 3 : _a$num,
44
- lang = _a.lang,
45
- _a$divider = _a.divider,
46
- divider = _a$divider === void 0 ? true : _a$divider,
47
- lessOneMoreFit = _a.lessOneMoreFit,
48
- popConfirmHandle = _a.popConfirmHandle,
49
- isIconBtn = _a.isIconBtn,
50
- _a$stopPropagation = _a.stopPropagation,
51
- stopPropagation = _a$stopPropagation === void 0 ? true : _a$stopPropagation,
52
- localeCode = _a.localeCode,
53
- locale = _a.locale,
54
- rest = __rest(_a, ["children", "type", "num", "lang", "divider", "lessOneMoreFit", "popConfirmHandle", "isIconBtn", "stopPropagation", "localeCode", "locale"]);
55
-
56
- // 非中文
57
- var isCn = lang === 'cn';
58
- if (!lang) {
59
- isCn = localeCode === 'zh-cn';
60
- }
61
- var _useState = (0, _react.useState)([]),
62
- _useState2 = _slicedToArray(_useState, 2),
63
- newChildren = _useState2[0],
64
- setNewChildren = _useState2[1];
65
- var _useState3 = (0, _react.useState)(),
66
- _useState4 = _slicedToArray(_useState3, 2),
67
- specialSceneDefaultShow = _useState4[0],
68
- setSpecialSceneDefaultShow = _useState4[1];
69
- (0, _react.useEffect)(function () {
70
- var _a;
71
- if (children) {
72
- var curChildren = [];
73
- if (Array.isArray(children)) {
74
- curChildren = ((_a = _toConsumableArray(children || [])) === null || _a === void 0 ? void 0 : _a.filter(function (item) {
75
- return !!item;
76
- })) || [];
77
- } else if (children) {
78
- curChildren.push(children);
79
- }
80
- // 子元素大于1个,且不是 icon元素
81
- var _specialSceneDefaultShow = (curChildren === null || curChildren === void 0 ? void 0 : curChildren.length) > 1 && !isIconBtn;
82
- if (_specialSceneDefaultShow && (!isCn || popConfirmHandle)) {
83
- curChildren === null || curChildren === void 0 ? void 0 : curChildren.forEach(function (v, i) {
84
- var type = v.type,
85
- props = v.props;
86
- if ((type === null || type === void 0 ? void 0 : type.name) === 'Popconfirm' || props.hasOwnProperty('onConfirm') && typeof (props === null || props === void 0 ? void 0 : props.onConfirm) === 'function') {
87
- var placement = {};
88
- if (!isCn || num && !isNaN(num) && i + 1 > num && !(lessOneMoreFit && curChildren.length - num === 1)) {
89
- placement = {
90
- placement: 'left'
91
- };
92
- }
93
- curChildren[i] = _react["default"].cloneElement(v, Object.assign(Object.assign(Object.assign(Object.assign({
94
- overlayStyle: {
95
- width: 180
96
- }
97
- }, (v === null || v === void 0 ? void 0 : v.props) || {}), {
98
- onClick: function onClick(e) {
99
- return e.stopPropagation();
100
- }
101
- }), placement), {
102
- trigger: 'hover',
103
- getPopupContainer: function getPopupContainer(trigger) {
104
- return trigger.parentNode;
105
- }
106
- }));
107
- }
108
- });
109
- }
110
- setNewChildren(curChildren);
111
- setSpecialSceneDefaultShow(_specialSceneDefaultShow);
112
- }
113
- }, [children, isCn, isIconBtn, lessOneMoreFit, num, popConfirmHandle]);
114
- var preChildPart = newChildren,
115
- lastChildPart = null;
116
- // 只有1个时不适配
117
- if (lessOneMoreFit && newChildren.length - num === 1) {
118
- preChildPart = newChildren;
119
- } else if (newChildren && num && !isNaN(num) && newChildren.length > num) {
120
- preChildPart = newChildren.slice(0, num);
121
- lastChildPart = newChildren.slice(num);
122
- }
123
- if (divider && preChildPart) {
124
- var preChildLen = preChildPart.length;
125
- preChildPart = preChildPart.map(function (dom, i) {
126
- return _react["default"].createElement(_react.Fragment, {
127
- key: i
128
- }, dom, !(i === preChildLen - 1 && !(lastChildPart === null || lastChildPart === void 0 ? void 0 : lastChildPart.length) // 没有更多 且 是最后一个时 不显示 Divider
129
- ) && _react["default"].createElement(_divider["default"], {
130
- type: "vertical"
131
- }));
132
- });
133
- }
134
- var menu = function menu(childArr) {
135
- return _react["default"].createElement(_menu["default"], {
136
- className: "org-pop-opera-btn"
137
- }, childArr === null || childArr === void 0 ? void 0 : childArr.map(function (child, i) {
138
- return _react["default"].createElement(_menu["default"].Item, {
139
- key: i
140
- }, child);
141
- }));
142
- };
143
- if (!isCn && specialSceneDefaultShow) {
144
- return _react["default"].createElement(_dropdown["default"], {
145
- overlay: menu(newChildren || []),
146
- arrow: true,
147
- onClick: function onClick(e) {
148
- if (stopPropagation) {
149
- e.stopPropagation();
150
- }
151
- }
152
- }, type === 'icon' ? _react["default"].createElement(_tntdIcon["default"], {
153
- type: "more"
154
- }) : _react["default"].createElement("a", {
155
- className: "ant-dropdown-more"
156
- }, locale === null || locale === void 0 ? void 0 : locale.more, _react["default"].createElement("i", {
157
- className: "".concat(clsPrefix, "-dropdown-icon")
158
- }, _react["default"].createElement(_tntdIcon["default"], {
159
- type: "down"
160
- }))));
161
- }
162
- return _react["default"].createElement("div", Object.assign({
163
- onClick: function onClick(e) {
164
- if (stopPropagation) {
165
- e.stopPropagation();
166
- }
167
- }
168
- }, rest), preChildPart, !!(lastChildPart === null || lastChildPart === void 0 ? void 0 : lastChildPart.length) && _react["default"].createElement(_dropdown["default"], {
169
- overlay: menu(lastChildPart || []),
170
- arrow: true
171
- }, type === 'icon' ? _react["default"].createElement(_tntdIcon["default"], {
172
- type: "more"
173
- }) : _react["default"].createElement("a", {
174
- className: "ant-dropdown-more"
175
- }, locale === null || locale === void 0 ? void 0 : locale.more, _react["default"].createElement("i", {
176
- className: "".concat(clsPrefix, "-dropdown-icon")
177
- }, _react["default"].createElement(_tntdIcon["default"], {
178
- type: "down"
179
- })))));
180
- };
181
- exports["default"] = _default;