tntd 2.7.30 → 2.7.31

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 (581) hide show
  1. package/es/ellipsis/index.js +2 -0
  2. package/es/ellipsis/index.js.map +1 -1
  3. package/lib/ellipsis/index.d.ts.map +1 -1
  4. package/lib/ellipsis/index.js +2 -0
  5. package/lib/ellipsis/index.js.map +1 -1
  6. package/package.json +1 -1
  7. package/themes/common/index.less +3 -3
  8. package/es/affix/style/index.less +0 -6
  9. package/es/alert/style/index.less +0 -188
  10. package/es/anchor/style/index.less +0 -82
  11. package/es/auto-complete/style/index.less +0 -92
  12. package/es/avatar/style/index.less +0 -59
  13. package/es/back-top/style/index.less +0 -42
  14. package/es/back-top/style/responsive.less +0 -11
  15. package/es/badge/style/index.less +0 -190
  16. package/es/breadcrumb/style/index.less +0 -51
  17. package/es/button/style/index.less +0 -224
  18. package/es/button/style/mixin.less +0 -357
  19. package/es/calendar/style/index.less +0 -278
  20. package/es/card/style/index.less +0 -263
  21. package/es/card/style/size.less +0 -25
  22. package/es/carousel/style/index.less +0 -238
  23. package/es/cascader/style/index.less +0 -227
  24. package/es/checkbox/style/index.less +0 -4
  25. package/es/checkbox/style/mixin.less +0 -220
  26. package/es/collapse/style/index.less +0 -134
  27. package/es/comment/style/index.less +0 -93
  28. package/es/config-provider/style/index.less +0 -2
  29. package/es/date-picker/style/Calendar.less +0 -402
  30. package/es/date-picker/style/DecadePanel.less +0 -81
  31. package/es/date-picker/style/MonthPanel.less +0 -86
  32. package/es/date-picker/style/MonthPicker.less +0 -11
  33. package/es/date-picker/style/Picker.less +0 -113
  34. package/es/date-picker/style/RangePicker.less +0 -248
  35. package/es/date-picker/style/TimePicker.less +0 -151
  36. package/es/date-picker/style/WeekPicker.less +0 -21
  37. package/es/date-picker/style/YearPanel.less +0 -85
  38. package/es/date-picker/style/index.less +0 -17
  39. package/es/descriptions/style/index.less +0 -144
  40. package/es/divider/style/index.less +0 -109
  41. package/es/drawer/style/drawer.less +0 -230
  42. package/es/drawer/style/index.less +0 -3
  43. package/es/dropdown/style/index.less +0 -282
  44. package/es/empty/style/index.less +0 -52
  45. package/es/form/style/index.less +0 -653
  46. package/es/form/style/mixin.less +0 -126
  47. package/es/grid-v4/style/index.less +0 -124
  48. package/es/grid-v4/style/mixin.less +0 -57
  49. package/es/grid-v4/style/rtl.less +0 -69
  50. package/es/handle/handle.js +0 -138
  51. package/es/handle/handle.js.map +0 -1
  52. package/es/icon/style/index.less +0 -4
  53. package/es/input/style/index.less +0 -57
  54. package/es/input/style/mixin.less +0 -449
  55. package/es/input/style/search-input.less +0 -34
  56. package/es/input-number/style/index.less +0 -179
  57. package/es/layout/style/index.less +0 -124
  58. package/es/layout/style/light.less +0 -15
  59. package/es/list/style/bordered.less +0 -41
  60. package/es/list/style/index.less +0 -234
  61. package/es/list/style/responsive.less +0 -40
  62. package/es/locale-provider/style/index.less +0 -2
  63. package/es/mention/index.js +0 -4
  64. package/es/mention/index.js.map +0 -1
  65. package/es/mentions/style/index.less +0 -164
  66. package/es/menu/style/dark.less +0 -139
  67. package/es/menu/style/index.less +0 -515
  68. package/es/message/style/index.less +0 -75
  69. package/es/modal/style/confirm.less +0 -78
  70. package/es/modal/style/index.less +0 -4
  71. package/es/modal/style/modal.less +0 -165
  72. package/es/notification/style/index.less +0 -199
  73. package/es/page-header/style/index.less +0 -119
  74. package/es/pagination/style/index.less +0 -400
  75. package/es/popover/style/index.less +0 -205
  76. package/es/progress/style/index.less +0 -182
  77. package/es/radio/style/index.less +0 -327
  78. package/es/rate/style/index.less +0 -85
  79. package/es/result/style/index.less +0 -71
  80. package/es/select/style/index.less +0 -604
  81. package/es/skeleton/style/index.less +0 -130
  82. package/es/slider/style/index.less +0 -197
  83. package/es/spin/style/index.less +0 -214
  84. package/es/statistic/style/index.less +0 -40
  85. package/es/steps/style/compatibility.less +0 -50
  86. package/es/steps/style/custom-icon.less +0 -31
  87. package/es/steps/style/label-placement.less +0 -38
  88. package/es/steps/style/progress-dot.less +0 -80
  89. package/es/steps/style/vertical.less +0 -74
  90. package/es/style/color/bezierEasing.less +0 -110
  91. package/es/style/color/colorPalette.less +0 -75
  92. package/es/style/color/colors.less +0 -149
  93. package/es/style/color/tinyColor.less +0 -1184
  94. package/es/style/core/base.less +0 -510
  95. package/es/style/core/iconfont.less +0 -19
  96. package/es/style/core/index.less +0 -4
  97. package/es/style/core/motion/fade.less +0 -31
  98. package/es/style/core/motion/move.less +0 -120
  99. package/es/style/core/motion/other.less +0 -40
  100. package/es/style/core/motion/slide.less +0 -120
  101. package/es/style/core/motion/swing.less +0 -34
  102. package/es/style/core/motion/zoom.less +0 -162
  103. package/es/style/core/motion.less +0 -20
  104. package/es/style/index.less +0 -2
  105. package/es/style/mixins/clearfix.less +0 -13
  106. package/es/style/mixins/compatibility.less +0 -22
  107. package/es/style/mixins/iconfont.less +0 -43
  108. package/es/style/mixins/index.less +0 -10
  109. package/es/style/mixins/motion.less +0 -35
  110. package/es/style/mixins/operation-unit.less +0 -18
  111. package/es/style/mixins/reset.less +0 -13
  112. package/es/style/mixins/size.less +0 -10
  113. package/es/style/mixins/typography.less +0 -49
  114. package/es/style/themes/default.less +0 -699
  115. package/es/style/themes/index.less +0 -1
  116. package/es/style/v2-compatible-reset.less +0 -51
  117. package/es/switch/style/index.less +0 -178
  118. package/es/table/style/index.less +0 -800
  119. package/es/table/style/size.less +0 -179
  120. package/es/tabs/style/card-style.less +0 -186
  121. package/es/tabs/style/index.less +0 -436
  122. package/es/tag/style/index.less +0 -106
  123. package/es/time-picker/style/index.less +0 -246
  124. package/es/timeline/style/index.less +0 -167
  125. package/es/tntd-form/TntdForm/components/Item.js +0 -55
  126. package/es/tntd-form/TntdForm/components/Item.js.map +0 -1
  127. package/es/tntd-form/TntdForm/components/ItemComp.js +0 -186
  128. package/es/tntd-form/TntdForm/components/ItemComp.js.map +0 -1
  129. package/es/tntd-form/TntdForm/components/List.js +0 -102
  130. package/es/tntd-form/TntdForm/components/List.js.map +0 -1
  131. package/es/tntd-form/TntdForm/index.js +0 -55
  132. package/es/tntd-form/TntdForm/index.js.map +0 -1
  133. package/es/tntd-form/TntdForm/interface.js +0 -1
  134. package/es/tntd-form/TntdForm/interface.js.map +0 -1
  135. package/es/tntd-form/TntdForm/store.js +0 -2
  136. package/es/tntd-form/TntdForm/store.js.map +0 -1
  137. package/es/tntd-form/TntdForm/utils.js +0 -219
  138. package/es/tntd-form/TntdForm/utils.js.map +0 -1
  139. package/es/tntd-form/_util/motion.js +0 -47
  140. package/es/tntd-form/_util/motion.js.map +0 -1
  141. package/es/tntd-form/_util/reactNode.js +0 -16
  142. package/es/tntd-form/_util/reactNode.js.map +0 -1
  143. package/es/tntd-form/_util/scrollTo.js +0 -35
  144. package/es/tntd-form/_util/scrollTo.js.map +0 -1
  145. package/es/tntd-form/_util/type.js +0 -3
  146. package/es/tntd-form/_util/type.js.map +0 -1
  147. package/es/tntd-form/_util/warning.js +0 -5
  148. package/es/tntd-form/_util/warning.js.map +0 -1
  149. package/es/tntd-form/_util/wave.js +0 -168
  150. package/es/tntd-form/_util/wave.js.map +0 -1
  151. package/es/tntd-form/tntd-form.stories.js +0 -836
  152. package/es/tntd-form/tntd-form.stories.js.map +0 -1
  153. package/es/tntd-select/_util/DisabledContext.js +0 -12
  154. package/es/tntd-select/_util/DisabledContext.js.map +0 -1
  155. package/es/tntd-select/_util/FormItemInputContext.js +0 -2
  156. package/es/tntd-select/_util/FormItemInputContext.js.map +0 -1
  157. package/es/tntd-select/_util/PurePanel.js +0 -66
  158. package/es/tntd-select/_util/PurePanel.js.map +0 -1
  159. package/es/tntd-select/_util/SizeContext.js +0 -2
  160. package/es/tntd-select/_util/SizeContext.js.map +0 -1
  161. package/es/tntd-select/_util/context.js +0 -12
  162. package/es/tntd-select/_util/context.js.map +0 -1
  163. package/es/tntd-select/_util/defaultRenderEmpty.js +0 -31
  164. package/es/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
  165. package/es/tntd-select/_util/getIcons.js +0 -74
  166. package/es/tntd-select/_util/getIcons.js.map +0 -1
  167. package/es/tntd-select/_util/interface.js +0 -4
  168. package/es/tntd-select/_util/interface.js.map +0 -1
  169. package/es/tntd-select/_util/motion.js +0 -47
  170. package/es/tntd-select/_util/motion.js.map +0 -1
  171. package/es/tntd-select/_util/type.js +0 -3
  172. package/es/tntd-select/_util/type.js.map +0 -1
  173. package/es/tntd-select/_util/useCompactItemContext.js +0 -26
  174. package/es/tntd-select/_util/useCompactItemContext.js.map +0 -1
  175. package/es/tntd-select/_util/warning.js +0 -14
  176. package/es/tntd-select/_util/warning.js.map +0 -1
  177. package/es/tntd-select/rc-select/BaseSelect.js +0 -524
  178. package/es/tntd-select/rc-select/BaseSelect.js.map +0 -1
  179. package/es/tntd-select/rc-select/OptGroup.js +0 -4
  180. package/es/tntd-select/rc-select/OptGroup.js.map +0 -1
  181. package/es/tntd-select/rc-select/Option.js +0 -4
  182. package/es/tntd-select/rc-select/Option.js.map +0 -1
  183. package/es/tntd-select/rc-select/OptionList.js +0 -346
  184. package/es/tntd-select/rc-select/OptionList.js.map +0 -1
  185. package/es/tntd-select/rc-select/Select.js +0 -440
  186. package/es/tntd-select/rc-select/Select.js.map +0 -1
  187. package/es/tntd-select/rc-select/SelectContext.js +0 -3
  188. package/es/tntd-select/rc-select/SelectContext.js.map +0 -1
  189. package/es/tntd-select/rc-select/SelectTrigger.js +0 -130
  190. package/es/tntd-select/rc-select/SelectTrigger.js.map +0 -1
  191. package/es/tntd-select/rc-select/Selector/Input.js +0 -103
  192. package/es/tntd-select/rc-select/Selector/Input.js.map +0 -1
  193. package/es/tntd-select/rc-select/Selector/MultipleSelector.js +0 -171
  194. package/es/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
  195. package/es/tntd-select/rc-select/Selector/SingleSelector.js +0 -98
  196. package/es/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
  197. package/es/tntd-select/rc-select/Selector/index.js +0 -158
  198. package/es/tntd-select/rc-select/Selector/index.js.map +0 -1
  199. package/es/tntd-select/rc-select/TransBtn.js +0 -36
  200. package/es/tntd-select/rc-select/TransBtn.js.map +0 -1
  201. package/es/tntd-select/rc-select/hooks/useAllowClear.js +0 -24
  202. package/es/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
  203. package/es/tntd-select/rc-select/hooks/useBaseProps.js +0 -9
  204. package/es/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
  205. package/es/tntd-select/rc-select/hooks/useCache.js +0 -38
  206. package/es/tntd-select/rc-select/hooks/useCache.js.map +0 -1
  207. package/es/tntd-select/rc-select/hooks/useDelayReset.js +0 -23
  208. package/es/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
  209. package/es/tntd-select/rc-select/hooks/useFilterOptions.js +0 -55
  210. package/es/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
  211. package/es/tntd-select/rc-select/hooks/useId.js +0 -26
  212. package/es/tntd-select/rc-select/hooks/useId.js.map +0 -1
  213. package/es/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -16
  214. package/es/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
  215. package/es/tntd-select/rc-select/hooks/useLock.js +0 -25
  216. package/es/tntd-select/rc-select/hooks/useLock.js.map +0 -1
  217. package/es/tntd-select/rc-select/hooks/useOptions.js +0 -43
  218. package/es/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
  219. package/es/tntd-select/rc-select/hooks/useRefFunc.js +0 -13
  220. package/es/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
  221. package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -28
  222. package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
  223. package/es/tntd-select/rc-select/index.js +0 -7
  224. package/es/tntd-select/rc-select/index.js.map +0 -1
  225. package/es/tntd-select/rc-select/interface.js +0 -1
  226. package/es/tntd-select/rc-select/interface.js.map +0 -1
  227. package/es/tntd-select/rc-select/utils/commonUtil.js +0 -30
  228. package/es/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
  229. package/es/tntd-select/rc-select/utils/keyUtil.js +0 -9
  230. package/es/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
  231. package/es/tntd-select/rc-select/utils/legacyUtil.js +0 -55
  232. package/es/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
  233. package/es/tntd-select/rc-select/utils/platformUtil.js +0 -4
  234. package/es/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
  235. package/es/tntd-select/rc-select/utils/valueUtil.js +0 -112
  236. package/es/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
  237. package/es/tntd-select/rc-select/utils/warningPropsUtil.js +0 -112
  238. package/es/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
  239. package/es/tooltip/style/index.less +0 -187
  240. package/es/transfer/style/customize.less +0 -62
  241. package/es/transfer/style/index.less +0 -191
  242. package/es/tree/style/directory.less +0 -95
  243. package/es/tree/style/index.less +0 -280
  244. package/es/tree/style/mixin.less +0 -29
  245. package/es/tree-select/style/index.less +0 -191
  246. package/es/typography/style/index.less +0 -204
  247. package/es/upload/style/index.less +0 -542
  248. package/lib/affix/style/index.less +0 -6
  249. package/lib/alert/style/index.less +0 -188
  250. package/lib/anchor/style/index.less +0 -82
  251. package/lib/auto-complete/style/index.less +0 -92
  252. package/lib/avatar/style/index.less +0 -59
  253. package/lib/back-top/style/index.less +0 -42
  254. package/lib/back-top/style/responsive.less +0 -11
  255. package/lib/badge/style/index.less +0 -190
  256. package/lib/breadcrumb/style/index.less +0 -51
  257. package/lib/button/style/index.less +0 -224
  258. package/lib/button/style/mixin.less +0 -357
  259. package/lib/calendar/style/index.less +0 -278
  260. package/lib/card/style/index.less +0 -263
  261. package/lib/card/style/size.less +0 -25
  262. package/lib/carousel/style/index.less +0 -238
  263. package/lib/cascader/style/index.less +0 -227
  264. package/lib/checkbox/style/index.less +0 -4
  265. package/lib/checkbox/style/mixin.less +0 -220
  266. package/lib/collapse/style/index.less +0 -134
  267. package/lib/comment/style/index.less +0 -93
  268. package/lib/config-provider/style/index.less +0 -2
  269. package/lib/date-picker/style/Calendar.less +0 -402
  270. package/lib/date-picker/style/DecadePanel.less +0 -81
  271. package/lib/date-picker/style/MonthPanel.less +0 -86
  272. package/lib/date-picker/style/MonthPicker.less +0 -11
  273. package/lib/date-picker/style/Picker.less +0 -113
  274. package/lib/date-picker/style/RangePicker.less +0 -248
  275. package/lib/date-picker/style/TimePicker.less +0 -151
  276. package/lib/date-picker/style/WeekPicker.less +0 -21
  277. package/lib/date-picker/style/YearPanel.less +0 -85
  278. package/lib/date-picker/style/index.less +0 -17
  279. package/lib/descriptions/style/index.less +0 -144
  280. package/lib/divider/style/index.less +0 -109
  281. package/lib/drawer/style/drawer.less +0 -230
  282. package/lib/drawer/style/index.less +0 -3
  283. package/lib/dropdown/style/index.less +0 -282
  284. package/lib/empty/style/index.less +0 -52
  285. package/lib/form/style/index.less +0 -653
  286. package/lib/form/style/mixin.less +0 -126
  287. package/lib/grid-v4/style/index.less +0 -124
  288. package/lib/grid-v4/style/mixin.less +0 -57
  289. package/lib/grid-v4/style/rtl.less +0 -69
  290. package/lib/handle/handle.d.ts +0 -3
  291. package/lib/handle/handle.d.ts.map +0 -1
  292. package/lib/handle/handle.js +0 -181
  293. package/lib/handle/handle.js.map +0 -1
  294. package/lib/icon/style/index.less +0 -4
  295. package/lib/input/style/index.less +0 -57
  296. package/lib/input/style/mixin.less +0 -449
  297. package/lib/input/style/search-input.less +0 -34
  298. package/lib/input-number/style/index.less +0 -179
  299. package/lib/layout/style/index.less +0 -124
  300. package/lib/layout/style/light.less +0 -15
  301. package/lib/list/style/bordered.less +0 -41
  302. package/lib/list/style/index.less +0 -234
  303. package/lib/list/style/responsive.less +0 -40
  304. package/lib/locale-provider/style/index.less +0 -2
  305. package/lib/mention/index.js +0 -25
  306. package/lib/mentions/style/index.less +0 -164
  307. package/lib/menu/style/dark.less +0 -139
  308. package/lib/menu/style/index.less +0 -515
  309. package/lib/message/style/index.less +0 -75
  310. package/lib/modal/style/confirm.less +0 -78
  311. package/lib/modal/style/index.less +0 -4
  312. package/lib/modal/style/modal.less +0 -165
  313. package/lib/notification/style/index.less +0 -199
  314. package/lib/page-header/style/index.less +0 -119
  315. package/lib/pagination/style/index.less +0 -400
  316. package/lib/popover/style/index.less +0 -205
  317. package/lib/progress/style/index.less +0 -182
  318. package/lib/radio/style/index.less +0 -327
  319. package/lib/rate/style/index.less +0 -85
  320. package/lib/result/style/index.less +0 -71
  321. package/lib/select/style/index.less +0 -604
  322. package/lib/skeleton/style/index.less +0 -130
  323. package/lib/slider/style/index.less +0 -197
  324. package/lib/spin/style/index.less +0 -214
  325. package/lib/statistic/style/index.less +0 -40
  326. package/lib/steps/style/compatibility.less +0 -50
  327. package/lib/steps/style/custom-icon.less +0 -31
  328. package/lib/steps/style/label-placement.less +0 -38
  329. package/lib/steps/style/progress-dot.less +0 -80
  330. package/lib/steps/style/vertical.less +0 -74
  331. package/lib/style/color/bezierEasing.less +0 -110
  332. package/lib/style/color/colorPalette.less +0 -75
  333. package/lib/style/color/colors.less +0 -149
  334. package/lib/style/color/tinyColor.less +0 -1184
  335. package/lib/style/core/base.less +0 -510
  336. package/lib/style/core/iconfont.less +0 -19
  337. package/lib/style/core/index.less +0 -4
  338. package/lib/style/core/motion/fade.less +0 -31
  339. package/lib/style/core/motion/move.less +0 -120
  340. package/lib/style/core/motion/other.less +0 -40
  341. package/lib/style/core/motion/slide.less +0 -120
  342. package/lib/style/core/motion/swing.less +0 -34
  343. package/lib/style/core/motion/zoom.less +0 -162
  344. package/lib/style/core/motion.less +0 -20
  345. package/lib/style/index.less +0 -2
  346. package/lib/style/mixins/clearfix.less +0 -13
  347. package/lib/style/mixins/compatibility.less +0 -22
  348. package/lib/style/mixins/iconfont.less +0 -43
  349. package/lib/style/mixins/index.less +0 -10
  350. package/lib/style/mixins/motion.less +0 -35
  351. package/lib/style/mixins/operation-unit.less +0 -18
  352. package/lib/style/mixins/reset.less +0 -13
  353. package/lib/style/mixins/size.less +0 -10
  354. package/lib/style/mixins/typography.less +0 -49
  355. package/lib/style/themes/default.less +0 -699
  356. package/lib/style/themes/index.less +0 -1
  357. package/lib/style/v2-compatible-reset.less +0 -51
  358. package/lib/switch/style/index.less +0 -178
  359. package/lib/table/style/index.less +0 -800
  360. package/lib/table/style/size.less +0 -179
  361. package/lib/tabs/style/card-style.less +0 -186
  362. package/lib/tabs/style/index.less +0 -436
  363. package/lib/tag/style/index.less +0 -106
  364. package/lib/time-picker/style/index.less +0 -246
  365. package/lib/timeline/style/index.less +0 -167
  366. package/lib/tntd-form/TntdForm/components/Item.js +0 -65
  367. package/lib/tntd-form/TntdForm/components/ItemComp.js +0 -215
  368. package/lib/tntd-form/TntdForm/components/List.js +0 -123
  369. package/lib/tntd-form/TntdForm/index.js +0 -72
  370. package/lib/tntd-form/TntdForm/interface.js +0 -5
  371. package/lib/tntd-form/TntdForm/store.js +0 -10
  372. package/lib/tntd-form/TntdForm/utils.js +0 -239
  373. package/lib/tntd-form/_util/motion.d.ts +0 -9
  374. package/lib/tntd-form/_util/motion.d.ts.map +0 -1
  375. package/lib/tntd-form/_util/motion.js +0 -59
  376. package/lib/tntd-form/_util/motion.js.map +0 -1
  377. package/lib/tntd-form/_util/reactNode.d.ts +0 -9
  378. package/lib/tntd-form/_util/reactNode.d.ts.map +0 -1
  379. package/lib/tntd-form/_util/reactNode.js +0 -27
  380. package/lib/tntd-form/_util/reactNode.js.map +0 -1
  381. package/lib/tntd-form/_util/scrollTo.d.ts +0 -1
  382. package/lib/tntd-form/_util/scrollTo.d.ts.map +0 -1
  383. package/lib/tntd-form/_util/scrollTo.js +0 -35
  384. package/lib/tntd-form/_util/scrollTo.js.map +0 -1
  385. package/lib/tntd-form/_util/type.d.ts +0 -4
  386. package/lib/tntd-form/_util/type.d.ts.map +0 -1
  387. package/lib/tntd-form/_util/type.js +0 -21
  388. package/lib/tntd-form/_util/type.js.map +0 -1
  389. package/lib/tntd-form/_util/warning.d.ts +0 -5
  390. package/lib/tntd-form/_util/warning.d.ts.map +0 -1
  391. package/lib/tntd-form/_util/warning.js +0 -20
  392. package/lib/tntd-form/_util/warning.js.map +0 -1
  393. package/lib/tntd-form/_util/wave.d.ts +0 -1
  394. package/lib/tntd-form/_util/wave.d.ts.map +0 -1
  395. package/lib/tntd-form/_util/wave.js +0 -168
  396. package/lib/tntd-form/_util/wave.js.map +0 -1
  397. package/lib/tntd-form/tntd-form.stories.d.ts +0 -33
  398. package/lib/tntd-form/tntd-form.stories.d.ts.map +0 -1
  399. package/lib/tntd-form/tntd-form.stories.js +0 -943
  400. package/lib/tntd-form/tntd-form.stories.js.map +0 -1
  401. package/lib/tntd-select/_util/DisabledContext.d.ts +0 -10
  402. package/lib/tntd-select/_util/DisabledContext.d.ts.map +0 -1
  403. package/lib/tntd-select/_util/DisabledContext.js +0 -22
  404. package/lib/tntd-select/_util/DisabledContext.js.map +0 -1
  405. package/lib/tntd-select/_util/FormItemInputContext.d.ts +0 -4
  406. package/lib/tntd-select/_util/FormItemInputContext.d.ts.map +0 -1
  407. package/lib/tntd-select/_util/FormItemInputContext.js +0 -12
  408. package/lib/tntd-select/_util/FormItemInputContext.js.map +0 -1
  409. package/lib/tntd-select/_util/PurePanel.d.ts +0 -9
  410. package/lib/tntd-select/_util/PurePanel.d.ts.map +0 -1
  411. package/lib/tntd-select/_util/PurePanel.js +0 -90
  412. package/lib/tntd-select/_util/PurePanel.js.map +0 -1
  413. package/lib/tntd-select/_util/SizeContext.d.ts +0 -4
  414. package/lib/tntd-select/_util/SizeContext.d.ts.map +0 -1
  415. package/lib/tntd-select/_util/SizeContext.js +0 -12
  416. package/lib/tntd-select/_util/SizeContext.js.map +0 -1
  417. package/lib/tntd-select/_util/context.d.ts +0 -42
  418. package/lib/tntd-select/_util/context.d.ts.map +0 -1
  419. package/lib/tntd-select/_util/context.js +0 -22
  420. package/lib/tntd-select/_util/context.js.map +0 -1
  421. package/lib/tntd-select/_util/defaultRenderEmpty.d.ts +0 -5
  422. package/lib/tntd-select/_util/defaultRenderEmpty.d.ts.map +0 -1
  423. package/lib/tntd-select/_util/defaultRenderEmpty.js +0 -44
  424. package/lib/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
  425. package/lib/tntd-select/_util/getIcons.d.ts +0 -25
  426. package/lib/tntd-select/_util/getIcons.d.ts.map +0 -1
  427. package/lib/tntd-select/_util/getIcons.js +0 -84
  428. package/lib/tntd-select/_util/getIcons.js.map +0 -1
  429. package/lib/tntd-select/_util/interface.d.ts +0 -25
  430. package/lib/tntd-select/_util/interface.d.ts.map +0 -1
  431. package/lib/tntd-select/_util/interface.js +0 -16
  432. package/lib/tntd-select/_util/interface.js.map +0 -1
  433. package/lib/tntd-select/_util/motion.d.ts +0 -9
  434. package/lib/tntd-select/_util/motion.d.ts.map +0 -1
  435. package/lib/tntd-select/_util/motion.js +0 -59
  436. package/lib/tntd-select/_util/motion.js.map +0 -1
  437. package/lib/tntd-select/_util/type.d.ts +0 -10
  438. package/lib/tntd-select/_util/type.d.ts.map +0 -1
  439. package/lib/tntd-select/_util/type.js +0 -21
  440. package/lib/tntd-select/_util/type.js.map +0 -1
  441. package/lib/tntd-select/_util/useCompactItemContext.d.ts +0 -9
  442. package/lib/tntd-select/_util/useCompactItemContext.d.ts.map +0 -1
  443. package/lib/tntd-select/_util/useCompactItemContext.js +0 -35
  444. package/lib/tntd-select/_util/useCompactItemContext.js.map +0 -1
  445. package/lib/tntd-select/_util/warning.d.ts +0 -4
  446. package/lib/tntd-select/_util/warning.d.ts.map +0 -1
  447. package/lib/tntd-select/_util/warning.js +0 -24
  448. package/lib/tntd-select/_util/warning.js.map +0 -1
  449. package/lib/tntd-select/rc-select/BaseSelect.d.ts +0 -114
  450. package/lib/tntd-select/rc-select/BaseSelect.d.ts.map +0 -1
  451. package/lib/tntd-select/rc-select/BaseSelect.js +0 -566
  452. package/lib/tntd-select/rc-select/BaseSelect.js.map +0 -1
  453. package/lib/tntd-select/rc-select/OptGroup.d.ts +0 -13
  454. package/lib/tntd-select/rc-select/OptGroup.d.ts.map +0 -1
  455. package/lib/tntd-select/rc-select/OptGroup.js +0 -13
  456. package/lib/tntd-select/rc-select/OptGroup.js.map +0 -1
  457. package/lib/tntd-select/rc-select/Option.d.ts +0 -15
  458. package/lib/tntd-select/rc-select/Option.d.ts.map +0 -1
  459. package/lib/tntd-select/rc-select/Option.js +0 -13
  460. package/lib/tntd-select/rc-select/Option.js.map +0 -1
  461. package/lib/tntd-select/rc-select/OptionList.d.ts +0 -11
  462. package/lib/tntd-select/rc-select/OptionList.d.ts.map +0 -1
  463. package/lib/tntd-select/rc-select/OptionList.js +0 -372
  464. package/lib/tntd-select/rc-select/OptionList.js.map +0 -1
  465. package/lib/tntd-select/rc-select/Select.d.ts +0 -115
  466. package/lib/tntd-select/rc-select/Select.d.ts.map +0 -1
  467. package/lib/tntd-select/rc-select/Select.js +0 -509
  468. package/lib/tntd-select/rc-select/Select.js.map +0 -1
  469. package/lib/tntd-select/rc-select/SelectContext.d.ts +0 -23
  470. package/lib/tntd-select/rc-select/SelectContext.d.ts.map +0 -1
  471. package/lib/tntd-select/rc-select/SelectContext.js +0 -13
  472. package/lib/tntd-select/rc-select/SelectContext.js.map +0 -1
  473. package/lib/tntd-select/rc-select/SelectTrigger.d.ts +0 -31
  474. package/lib/tntd-select/rc-select/SelectTrigger.d.ts.map +0 -1
  475. package/lib/tntd-select/rc-select/SelectTrigger.js +0 -149
  476. package/lib/tntd-select/rc-select/SelectTrigger.js.map +0 -1
  477. package/lib/tntd-select/rc-select/Selector/Input.d.ts +0 -27
  478. package/lib/tntd-select/rc-select/Selector/Input.d.ts.map +0 -1
  479. package/lib/tntd-select/rc-select/Selector/Input.js +0 -110
  480. package/lib/tntd-select/rc-select/Selector/Input.js.map +0 -1
  481. package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts +0 -17
  482. package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts.map +0 -1
  483. package/lib/tntd-select/rc-select/Selector/MultipleSelector.js +0 -193
  484. package/lib/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
  485. package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts +0 -9
  486. package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts.map +0 -1
  487. package/lib/tntd-select/rc-select/Selector/SingleSelector.js +0 -116
  488. package/lib/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
  489. package/lib/tntd-select/rc-select/Selector/index.d.ts +0 -83
  490. package/lib/tntd-select/rc-select/Selector/index.d.ts.map +0 -1
  491. package/lib/tntd-select/rc-select/Selector/index.js +0 -159
  492. package/lib/tntd-select/rc-select/Selector/index.js.map +0 -1
  493. package/lib/tntd-select/rc-select/TransBtn.d.ts +0 -13
  494. package/lib/tntd-select/rc-select/TransBtn.d.ts.map +0 -1
  495. package/lib/tntd-select/rc-select/TransBtn.js +0 -48
  496. package/lib/tntd-select/rc-select/TransBtn.js.map +0 -1
  497. package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts +0 -9
  498. package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts.map +0 -1
  499. package/lib/tntd-select/rc-select/hooks/useAllowClear.js +0 -35
  500. package/lib/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
  501. package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts +0 -14
  502. package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts.map +0 -1
  503. package/lib/tntd-select/rc-select/hooks/useBaseProps.js +0 -21
  504. package/lib/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
  505. package/lib/tntd-select/rc-select/hooks/useCache.d.ts +0 -8
  506. package/lib/tntd-select/rc-select/hooks/useCache.d.ts.map +0 -1
  507. package/lib/tntd-select/rc-select/hooks/useCache.js +0 -49
  508. package/lib/tntd-select/rc-select/hooks/useCache.js.map +0 -1
  509. package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts +0 -6
  510. package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts.map +0 -1
  511. package/lib/tntd-select/rc-select/hooks/useDelayReset.js +0 -44
  512. package/lib/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
  513. package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts +0 -4
  514. package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts.map +0 -1
  515. package/lib/tntd-select/rc-select/hooks/useFilterOptions.js +0 -72
  516. package/lib/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
  517. package/lib/tntd-select/rc-select/hooks/useId.d.ts +0 -6
  518. package/lib/tntd-select/rc-select/hooks/useId.d.ts.map +0 -1
  519. package/lib/tntd-select/rc-select/hooks/useId.js +0 -48
  520. package/lib/tntd-select/rc-select/hooks/useId.js.map +0 -1
  521. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts +0 -6
  522. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts.map +0 -1
  523. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -26
  524. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
  525. package/lib/tntd-select/rc-select/hooks/useLock.d.ts +0 -8
  526. package/lib/tntd-select/rc-select/hooks/useLock.d.ts.map +0 -1
  527. package/lib/tntd-select/rc-select/hooks/useLock.js +0 -39
  528. package/lib/tntd-select/rc-select/hooks/useLock.js.map +0 -1
  529. package/lib/tntd-select/rc-select/hooks/useOptions.d.ts +0 -12
  530. package/lib/tntd-select/rc-select/hooks/useOptions.d.ts.map +0 -1
  531. package/lib/tntd-select/rc-select/hooks/useOptions.js +0 -53
  532. package/lib/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
  533. package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts +0 -6
  534. package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts.map +0 -1
  535. package/lib/tntd-select/rc-select/hooks/useRefFunc.js +0 -22
  536. package/lib/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
  537. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -2
  538. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts.map +0 -1
  539. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -43
  540. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
  541. package/lib/tntd-select/rc-select/index.d.ts +0 -11
  542. package/lib/tntd-select/rc-select/index.d.ts.map +0 -1
  543. package/lib/tntd-select/rc-select/index.js +0 -38
  544. package/lib/tntd-select/rc-select/index.js.map +0 -1
  545. package/lib/tntd-select/rc-select/interface.d.ts +0 -23
  546. package/lib/tntd-select/rc-select/interface.d.ts.map +0 -1
  547. package/lib/tntd-select/rc-select/interface.js +0 -5
  548. package/lib/tntd-select/rc-select/interface.js.map +0 -1
  549. package/lib/tntd-select/rc-select/utils/commonUtil.d.ts +0 -10
  550. package/lib/tntd-select/rc-select/utils/commonUtil.d.ts.map +0 -1
  551. package/lib/tntd-select/rc-select/utils/commonUtil.js +0 -43
  552. package/lib/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
  553. package/lib/tntd-select/rc-select/utils/keyUtil.d.ts +0 -3
  554. package/lib/tntd-select/rc-select/utils/keyUtil.d.ts.map +0 -1
  555. package/lib/tntd-select/rc-select/utils/keyUtil.js +0 -16
  556. package/lib/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
  557. package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts +0 -4
  558. package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts.map +0 -1
  559. package/lib/tntd-select/rc-select/utils/legacyUtil.js +0 -60
  560. package/lib/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
  561. package/lib/tntd-select/rc-select/utils/platformUtil.d.ts +0 -2
  562. package/lib/tntd-select/rc-select/utils/platformUtil.d.ts.map +0 -1
  563. package/lib/tntd-select/rc-select/utils/platformUtil.js +0 -10
  564. package/lib/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
  565. package/lib/tntd-select/rc-select/utils/valueUtil.d.ts +0 -24
  566. package/lib/tntd-select/rc-select/utils/valueUtil.d.ts.map +0 -1
  567. package/lib/tntd-select/rc-select/utils/valueUtil.js +0 -132
  568. package/lib/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
  569. package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts +0 -5
  570. package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts.map +0 -1
  571. package/lib/tntd-select/rc-select/utils/warningPropsUtil.js +0 -127
  572. package/lib/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
  573. package/lib/tooltip/style/index.less +0 -187
  574. package/lib/transfer/style/customize.less +0 -62
  575. package/lib/transfer/style/index.less +0 -191
  576. package/lib/tree/style/directory.less +0 -95
  577. package/lib/tree/style/index.less +0 -280
  578. package/lib/tree/style/mixin.less +0 -29
  579. package/lib/tree-select/style/index.less +0 -191
  580. package/lib/typography/style/index.less +0 -204
  581. package/lib/upload/style/index.less +0 -542
@@ -1 +0,0 @@
1
- {"version":3,"file":"getIcons.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/getIcons.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,6CAA8B;AAC9B,+BAA2B;AAI3B,SAAwB,QAAQ,CAAC,EAC/B,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,SAAS,EACT,YAAY,GAYb;IACC,aAAa;IACb,MAAM,eAAe,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,oBAAC,WAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,QAAQ,GAAG,CAAA;IAEhF,2BAA2B;IAC3B,MAAM,iBAAiB,GAAG,CAAC,SAAqB,EAAE,EAAE,CAAC,CACnD;QACG,SAAS,KAAK,KAAK,IAAI,SAAS;QAChC,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QAC5B,QAAQ,EAAE,cAAc;QACxB,UAAU,EAAE,gBAAgB;KAC7B,CAAA;AACH,CAAC;AAzED,2BAyEC","sourcesContent":["import type { ReactNode } from 'react'\nimport * as React from 'react'\nimport { Icon } from 'antd'\n\ntype RenderNode = React.ReactNode | ((props: any) => React.ReactNode)\n\nexport default function getIcons({\n suffixIcon,\n clearIcon,\n menuItemSelectedIcon,\n removeIcon,\n loading,\n multiple,\n hasFeedback,\n prefixCls,\n showArrow,\n feedbackIcon,\n}: {\n suffixIcon?: React.ReactNode\n clearIcon?: RenderNode\n menuItemSelectedIcon?: RenderNode\n removeIcon?: RenderNode\n loading?: boolean\n multiple?: boolean\n hasFeedback?: boolean\n feedbackIcon?: ReactNode\n prefixCls: string\n showArrow?: boolean\n}) {\n // Clear Icon\n const mergedClearIcon = clearIcon ?? <Icon type=\"close-circle\" theme=\"filled\" />\n\n // Validation Feedback Icon\n const getSuffixIconNode = (arrowIcon?: ReactNode) => (\n <>\n {showArrow !== false && arrowIcon}\n {hasFeedback && feedbackIcon}\n </>\n )\n\n // Arrow item icon\n let mergedSuffixIcon = null\n if (suffixIcon !== undefined) {\n mergedSuffixIcon = getSuffixIconNode(suffixIcon)\n } else if (loading) {\n mergedSuffixIcon = getSuffixIconNode(<Icon type=\"loading\" />)\n } else {\n const iconCls = `${prefixCls}-suffix`\n mergedSuffixIcon = ({ open, showSearch }: { open: boolean; showSearch: boolean }) => {\n if (open && showSearch) {\n return getSuffixIconNode(<Icon className={iconCls} type=\"search\" />)\n }\n return getSuffixIconNode(<Icon className={iconCls} type=\"down\" />)\n }\n }\n\n // Checked item icon\n let mergedItemIcon = null\n if (menuItemSelectedIcon !== undefined) {\n mergedItemIcon = menuItemSelectedIcon\n } else if (multiple) {\n mergedItemIcon = <Icon type=\"check\" />\n } else {\n mergedItemIcon = null\n }\n\n let mergedRemoveIcon = null\n if (removeIcon !== undefined) {\n mergedRemoveIcon = removeIcon\n } else {\n mergedRemoveIcon = <Icon type=\"close\" />\n }\n\n return {\n clearIcon: mergedClearIcon,\n suffixIcon: mergedSuffixIcon,\n itemIcon: mergedItemIcon,\n removeIcon: mergedRemoveIcon,\n }\n}\n"]}
@@ -1,25 +0,0 @@
1
- import type { ReactElement, JSXElementConstructor } from 'react';
2
- export declare type SizeType = 'small' | 'middle' | 'large' | undefined;
3
- export declare type DirectionType = 'ltr' | 'rtl' | undefined;
4
- export declare const tuple: <T extends string[]>(...args: T) => T;
5
- declare const ValidateStatuses: ["success", "warning", "error", "validating", ""];
6
- export declare type ValidateStatus = typeof ValidateStatuses[number];
7
- declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
8
- export declare type SelectCommonPlacement = typeof SelectPlacements[number];
9
- declare const InputStatuses: ["warning", "error", ""];
10
- export declare type InputStatus = typeof InputStatuses[number];
11
- export interface SpaceCompactItemContextType {
12
- compactSize?: SizeType;
13
- compactDirection?: 'horizontal' | 'vertical';
14
- isFirstItem?: boolean;
15
- isLastItem?: boolean;
16
- }
17
- export interface FormItemStatusContextProps {
18
- isFormItemInput?: boolean;
19
- status?: ValidateStatus;
20
- hasFeedback?: boolean;
21
- feedbackIcon?: React.ReactNode;
22
- }
23
- export declare type DropdownRender = (menu: ReactElement<any, string | JSXElementConstructor<any>>) => ReactElement<any, string | JSXElementConstructor<any>>;
24
- export {};
25
- //# sourceMappingURL=interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAEhE,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AAE/D,oBAAY,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAA;AAErD,eAAO,MAAM,KAAK,uCAA2C,CAAA;AAE7D,QAAA,MAAM,gBAAgB,mDAAyD,CAAA;AAE/E,oBAAY,cAAc,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AAE5D,QAAA,MAAM,gBAAgB,sDAA4D,CAAA;AAElF,oBAAY,qBAAqB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AAEnE,QAAA,MAAM,aAAa,0BAAgC,CAAA;AAEnD,oBAAY,WAAW,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA;AAEtD,MAAM,WAAW,2BAA2B;IAC1C,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,gBAAgB,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC/B;AAED,oBAAY,cAAc,GAAG,CAC3B,IAAI,EAAE,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,KACzD,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAA"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.tuple = void 0;
7
- var tuple = function tuple() {
8
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9
- args[_key] = arguments[_key];
10
- }
11
- return args;
12
- };
13
- exports.tuple = tuple;
14
- var ValidateStatuses = tuple('success', 'warning', 'error', 'validating', '');
15
- var SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight');
16
- var InputStatuses = tuple('warning', 'error', '');
@@ -1 +0,0 @@
1
- {"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/interface.ts"],"names":[],"mappings":";;;AAMO,MAAM,KAAK,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAA;AAAhD,QAAA,KAAK,SAA2C;AAE7D,MAAM,gBAAgB,GAAG,IAAA,aAAK,EAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,CAAC,CAAA;AAI/E,MAAM,gBAAgB,GAAG,IAAA,aAAK,EAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC,CAAA;AAIlF,MAAM,aAAa,GAAG,IAAA,aAAK,EAAC,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC,CAAA","sourcesContent":["import type { ReactElement, JSXElementConstructor } from 'react'\n\nexport type SizeType = 'small' | 'middle' | 'large' | undefined\n\nexport type DirectionType = 'ltr' | 'rtl' | undefined\n\nexport const tuple = <T extends string[]>(...args: T) => args\n\nconst ValidateStatuses = tuple('success', 'warning', 'error', 'validating', '')\n\nexport type ValidateStatus = typeof ValidateStatuses[number]\n\nconst SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight')\n\nexport type SelectCommonPlacement = typeof SelectPlacements[number]\n\nconst InputStatuses = tuple('warning', 'error', '')\n\nexport type InputStatus = typeof InputStatuses[number]\n\nexport interface SpaceCompactItemContextType {\n compactSize?: SizeType\n compactDirection?: 'horizontal' | 'vertical'\n isFirstItem?: boolean\n isLastItem?: boolean\n}\n\nexport interface FormItemStatusContextProps {\n isFormItemInput?: boolean\n status?: ValidateStatus\n hasFeedback?: boolean\n feedbackIcon?: React.ReactNode\n}\n\nexport type DropdownRender = (\n menu: ReactElement<any, string | JSXElementConstructor<any>>\n) => ReactElement<any, string | JSXElementConstructor<any>>\n"]}
@@ -1,9 +0,0 @@
1
- import type { CSSMotionProps } from 'rc-motion';
2
- declare const collapseMotion: CSSMotionProps;
3
- declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
4
- export declare type SelectCommonPlacement = typeof SelectPlacements[number];
5
- declare const getTransitionDirection: (placement: SelectCommonPlacement | undefined) => "slide-down" | "slide-up";
6
- declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string | undefined) => string;
7
- export { getTransitionName, getTransitionDirection };
8
- export default collapseMotion;
9
- //# sourceMappingURL=motion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/motion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA6C,MAAM,WAAW,CAAC;AAc3F,QAAA,MAAM,cAAc,EAAE,cAYrB,CAAC;AAEF,QAAA,MAAM,gBAAgB,sDAA4D,CAAC;AACnF,oBAAY,qBAAqB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEpE,QAAA,MAAM,sBAAsB,cAAe,qBAAqB,GAAG,SAAS,8BAK3E,CAAC;AAEF,QAAA,MAAM,iBAAiB,kBAAmB,MAAM,UAAU,MAAM,gDAK/D,CAAC;AACF,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;AACrD,eAAe,cAAc,CAAC"}
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getTransitionName = exports.getTransitionDirection = exports["default"] = void 0;
7
- var _type = require("./type");
8
- // ================== Collapse Motion ==================
9
- var getCollapsedHeight = function getCollapsedHeight() {
10
- return {
11
- height: 0,
12
- opacity: 0
13
- };
14
- };
15
- var getRealHeight = function getRealHeight(node) {
16
- var scrollHeight = node.scrollHeight;
17
- return {
18
- height: scrollHeight,
19
- opacity: 1
20
- };
21
- };
22
- var getCurrentHeight = function getCurrentHeight(node) {
23
- return {
24
- height: node ? node.offsetHeight : 0
25
- };
26
- };
27
- var skipOpacityTransition = function skipOpacityTransition(_, event) {
28
- return (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === 'height';
29
- };
30
- var collapseMotion = {
31
- motionName: 'ant-motion-collapse',
32
- onAppearStart: getCollapsedHeight,
33
- onEnterStart: getCollapsedHeight,
34
- onAppearActive: getRealHeight,
35
- onEnterActive: getRealHeight,
36
- onLeaveStart: getCurrentHeight,
37
- onLeaveActive: getCollapsedHeight,
38
- onAppearEnd: skipOpacityTransition,
39
- onEnterEnd: skipOpacityTransition,
40
- onLeaveEnd: skipOpacityTransition,
41
- motionDeadline: 500
42
- };
43
- var SelectPlacements = (0, _type.tuple)('bottomLeft', 'bottomRight', 'topLeft', 'topRight');
44
- var getTransitionDirection = function getTransitionDirection(placement) {
45
- if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {
46
- return "slide-down";
47
- }
48
- return "slide-up";
49
- };
50
- exports.getTransitionDirection = getTransitionDirection;
51
- var getTransitionName = function getTransitionName(rootPrefixCls, motion, transitionName) {
52
- if (transitionName !== undefined) {
53
- return transitionName;
54
- }
55
- return "".concat(rootPrefixCls, "-").concat(motion);
56
- };
57
- exports.getTransitionName = getTransitionName;
58
- var _default = collapseMotion;
59
- exports["default"] = _default;
@@ -1 +0,0 @@
1
- {"version":3,"file":"motion.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/motion.ts"],"names":[],"mappings":";;;AAEA,iCAA+B;AAE/B,wDAAwD;AACxD,MAAM,kBAAkB,GAAuB,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AACjF,MAAM,aAAa,GAAuB,IAAI,CAAC,EAAE;IAC/C,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;AAC9C,CAAC,CAAC;AACF,MAAM,gBAAgB,GAAuB,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAA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-motion';\nimport type { MotionEvent } from 'rc-motion/lib/interface';\nimport { tuple } from './type';\n\n// ================== Collapse Motion ==================\nconst getCollapsedHeight: MotionEventHandler = () => ({ height: 0, opacity: 0 });\nconst getRealHeight: MotionEventHandler = node => {\n const { scrollHeight } = node;\n return { height: scrollHeight, opacity: 1 };\n};\nconst getCurrentHeight: MotionEventHandler = node => ({ height: node ? node.offsetHeight : 0 });\nconst skipOpacityTransition: MotionEndEventHandler = (_, event: MotionEvent) =>\n event?.deadline === true || (event as TransitionEvent).propertyName === 'height';\n\nconst collapseMotion: CSSMotionProps = {\n motionName: 'ant-motion-collapse',\n onAppearStart: getCollapsedHeight,\n onEnterStart: getCollapsedHeight,\n onAppearActive: getRealHeight,\n onEnterActive: getRealHeight,\n onLeaveStart: getCurrentHeight,\n onLeaveActive: getCollapsedHeight,\n onAppearEnd: skipOpacityTransition,\n onEnterEnd: skipOpacityTransition,\n onLeaveEnd: skipOpacityTransition,\n motionDeadline: 500,\n};\n\nconst SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight');\nexport type SelectCommonPlacement = typeof SelectPlacements[number];\n\nconst getTransitionDirection = (placement: SelectCommonPlacement | undefined) => {\n if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {\n return `slide-down`;\n }\n return `slide-up`;\n};\n\nconst getTransitionName = (rootPrefixCls: string, motion: string, transitionName?: string) => {\n if (transitionName !== undefined) {\n return transitionName;\n }\n return `${rootPrefixCls}-${motion}`;\n};\nexport { getTransitionName, getTransitionDirection };\nexport default collapseMotion;"]}
@@ -1,10 +0,0 @@
1
- export declare const tuple: <T extends string[]>(...args: T) => T;
2
- export declare const tupleNum: <T extends number[]>(...args: T) => T;
3
- /**
4
- * https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without
5
- * performing indexing
6
- */
7
- export declare type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
8
- /** https://github.com/Microsoft/TypeScript/issues/29729 */
9
- export declare type LiteralUnion<T extends U, U> = T | (U & {});
10
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/type.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,KAAK,uCAA2C,CAAC;AAE9D,eAAO,MAAM,QAAQ,uCAA2C,CAAC;AAEjE;;;GAGG;AACH,oBAAY,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAElG,2DAA2D;AAC3D,oBAAY,YAAY,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.tupleNum = exports.tuple = void 0;
7
- // https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
8
- var tuple = function tuple() {
9
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10
- args[_key] = arguments[_key];
11
- }
12
- return args;
13
- };
14
- exports.tuple = tuple;
15
- var tupleNum = function tupleNum() {
16
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
17
- args[_key2] = arguments[_key2];
18
- }
19
- return args;
20
- };
21
- exports.tupleNum = tupleNum;
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/type.ts"],"names":[],"mappings":";;;AAAA,qHAAqH;AAC9G,MAAM,KAAK,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAC;AAAjD,QAAA,KAAK,SAA4C;AAEvD,MAAM,QAAQ,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAC;AAApD,QAAA,QAAQ,YAA4C","sourcesContent":["// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead\nexport const tuple = <T extends string[]>(...args: T) => args;\n\nexport const tupleNum = <T extends number[]>(...args: T) => args;\n\n/**\n * https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without\n * performing indexing\n */\nexport type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;\n\n/** https://github.com/Microsoft/TypeScript/issues/29729 */\nexport type LiteralUnion<T extends U, U> = T | (U & {});\n"]}
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import type { DirectionType, SpaceCompactItemContextType } from './interface';
3
- export declare const SpaceCompactItemContext: React.Context<SpaceCompactItemContextType | null>;
4
- export declare const useCompactItemContext: (prefixCls: string, direction: DirectionType) => {
5
- compactSize: import("./interface").SizeType;
6
- compactDirection: "horizontal" | "vertical" | undefined;
7
- compactItemClassnames: string;
8
- };
9
- //# sourceMappingURL=useCompactItemContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCompactItemContext.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/useCompactItemContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAG7E,eAAO,MAAM,uBAAuB,mDAAgE,CAAA;AAEpG,eAAO,MAAM,qBAAqB,cAAe,MAAM,aAAa,aAAa;;;;CAsBhF,CAAA"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useCompactItemContext = exports.SpaceCompactItemContext = void 0;
7
- var React = _interopRequireWildcard(require("react"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- 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); }
11
- 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; }
12
- 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); }
13
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
16
- var SpaceCompactItemContext = React.createContext(null);
17
- exports.SpaceCompactItemContext = SpaceCompactItemContext;
18
- var useCompactItemContext = function useCompactItemContext(prefixCls, direction) {
19
- var compactItemContext = React.useContext(SpaceCompactItemContext);
20
- var compactItemClassnames = React.useMemo(function () {
21
- var _classNames;
22
- if (!compactItemContext) return '';
23
- var compactDirection = compactItemContext.compactDirection,
24
- isFirstItem = compactItemContext.isFirstItem,
25
- isLastItem = compactItemContext.isLastItem;
26
- var separator = compactDirection === 'vertical' ? '-vertical-' : '-';
27
- return (0, _classnames["default"])((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-compact").concat(separator, "item"), true), _defineProperty(_classNames, "".concat(prefixCls, "-compact").concat(separator, "first-item"), isFirstItem), _defineProperty(_classNames, "".concat(prefixCls, "-compact").concat(separator, "last-item"), isLastItem), _defineProperty(_classNames, "".concat(prefixCls, "-compact").concat(separator, "item-rtl"), direction === 'rtl'), _classNames));
28
- }, [prefixCls, direction, compactItemContext]);
29
- return {
30
- compactSize: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactSize,
31
- compactDirection: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactDirection,
32
- compactItemClassnames: compactItemClassnames
33
- };
34
- };
35
- exports.useCompactItemContext = useCompactItemContext;
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCompactItemContext.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/useCompactItemContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8B;AAE9B,4DAAmC;AAEtB,QAAA,uBAAuB,GAAG,KAAK,CAAC,aAAa,CAAqC,IAAI,CAAC,CAAA;AAE7F,MAAM,qBAAqB,GAAG,CAAC,SAAiB,EAAE,SAAwB,EAAE,EAAE;IACnF,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,+BAAuB,CAAC,CAAA;IAEpE,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/C,IAAI,CAAC,kBAAkB;YAAE,OAAO,EAAE,CAAA;QAElC,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,kBAAkB,CAAA;QACxE,MAAM,SAAS,GAAG,gBAAgB,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAA;QAEtE,OAAO,IAAA,oBAAU,EAAC;YAChB,CAAC,GAAG,SAAS,WAAW,SAAS,MAAM,CAAC,EAAE,IAAI;YAC9C,CAAC,GAAG,SAAS,WAAW,SAAS,YAAY,CAAC,EAAE,WAAW;YAC3D,CAAC,GAAG,SAAS,WAAW,SAAS,WAAW,CAAC,EAAE,UAAU;YACzD,CAAC,GAAG,SAAS,WAAW,SAAS,UAAU,CAAC,EAAE,SAAS,KAAK,KAAK;SAClE,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAA;IAE9C,OAAO;QACL,WAAW,EAAE,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,WAAW;QAC5C,gBAAgB,EAAE,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,gBAAgB;QACtD,qBAAqB;KACtB,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,qBAAqB,yBAsBjC","sourcesContent":["import * as React from 'react'\nimport type { DirectionType, SpaceCompactItemContextType } from './interface'\nimport classNames from 'classnames'\n\nexport const SpaceCompactItemContext = React.createContext<SpaceCompactItemContextType | null>(null)\n\nexport const useCompactItemContext = (prefixCls: string, direction: DirectionType) => {\n const compactItemContext = React.useContext(SpaceCompactItemContext)\n\n const compactItemClassnames = React.useMemo(() => {\n if (!compactItemContext) return ''\n\n const { compactDirection, isFirstItem, isLastItem } = compactItemContext\n const separator = compactDirection === 'vertical' ? '-vertical-' : '-'\n\n return classNames({\n [`${prefixCls}-compact${separator}item`]: true,\n [`${prefixCls}-compact${separator}first-item`]: isFirstItem,\n [`${prefixCls}-compact${separator}last-item`]: isLastItem,\n [`${prefixCls}-compact${separator}item-rtl`]: direction === 'rtl',\n })\n }, [prefixCls, direction, compactItemContext])\n\n return {\n compactSize: compactItemContext?.compactSize,\n compactDirection: compactItemContext?.compactDirection,\n compactItemClassnames,\n }\n}\n"]}
@@ -1,4 +0,0 @@
1
- declare type Warning = (valid: boolean, component: string, message?: string) => void;
2
- declare let warning: Warning;
3
- export default warning;
4
- //# sourceMappingURL=warning.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"warning.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/_util/warning.ts"],"names":[],"mappings":"AAIA,aAAK,OAAO,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;AAG5E,QAAA,IAAI,OAAO,EAAE,OAAc,CAAA;AAY3B,eAAe,OAAO,CAAA"}
@@ -1,24 +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 _warning = _interopRequireWildcard(require("rc-util/lib/warning"));
9
- 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); }
10
- 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; }
11
- function noop() {}
12
- // eslint-disable-next-line import/no-mutable-exports
13
- var warning = noop;
14
- if (process.env.NODE_ENV !== 'production') {
15
- warning = function warning(valid, component, message) {
16
- (0, _warning["default"])(valid, "[antd: ".concat(component, "] ").concat(message));
17
- // StrictMode will inject console which will not throw warning in React 17.
18
- if (process.env.NODE_ENV === 'test') {
19
- (0, _warning.resetWarned)();
20
- }
21
- };
22
- }
23
- var _default = warning;
24
- exports["default"] = _default;
@@ -1 +0,0 @@
1
- {"version":3,"file":"warning.js","sourceRoot":"","sources":["../../../src/tntd-select/_util/warning.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA4D;AAE5D,SAAS,IAAI,KAAI,CAAC;AAIlB,qDAAqD;AACrD,IAAI,OAAO,GAAY,IAAI,CAAA;AAC3B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,OAAO,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QACtC,IAAA,iBAAS,EAAC,KAAK,EAAE,UAAU,SAAS,KAAK,OAAO,EAAE,CAAC,CAAA;QAEnD,2EAA2E;QAC3E,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,EAAE;YACnC,IAAA,qBAAW,GAAE,CAAA;SACd;IACH,CAAC,CAAA;CACF;AAED,kBAAe,OAAO,CAAA","sourcesContent":["import rcWarning, { resetWarned } from 'rc-util/lib/warning'\n\nfunction noop() {}\n\ntype Warning = (valid: boolean, component: string, message?: string) => void\n\n// eslint-disable-next-line import/no-mutable-exports\nlet warning: Warning = noop\nif (process.env.NODE_ENV !== 'production') {\n warning = (valid, component, message) => {\n rcWarning(valid, `[antd: ${component}] ${message}`)\n\n // StrictMode will inject console which will not throw warning in React 17.\n if (process.env.NODE_ENV === 'test') {\n resetWarned()\n }\n }\n}\n\nexport default warning\n"]}
@@ -1,114 +0,0 @@
1
- import type { AlignType, BuildInPlacements } from '@rc-component/trigger/lib/interface';
2
- import type { ScrollConfig, ScrollTo } from 'rc-virtual-list/lib/List';
3
- import * as React from 'react';
4
- import type { DisplayInfoType, DisplayValueType, Mode, Placement, RawValueType, RenderDOMFunc, RenderNode } from './interface';
5
- export type { DisplayInfoType, DisplayValueType, Mode, Placement, RenderDOMFunc, RenderNode, RawValueType, };
6
- export interface RefOptionListProps {
7
- onKeyDown: React.KeyboardEventHandler;
8
- onKeyUp: React.KeyboardEventHandler;
9
- scrollTo?: (args: number | ScrollConfig) => void;
10
- }
11
- export declare type CustomTagProps = {
12
- label: React.ReactNode;
13
- value: any;
14
- disabled: boolean;
15
- onClose: (event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
16
- closable: boolean;
17
- };
18
- export interface BaseSelectRef {
19
- focus: () => void;
20
- blur: () => void;
21
- scrollTo: ScrollTo;
22
- }
23
- export interface BaseSelectPrivateProps {
24
- id: string;
25
- prefixCls: string;
26
- omitDomProps?: string[];
27
- displayValues: DisplayValueType[];
28
- onDisplayValuesChange: (values: DisplayValueType[], info: {
29
- type: DisplayInfoType;
30
- values: DisplayValueType[];
31
- }) => void;
32
- /** Current dropdown list active item string value */
33
- activeValue?: string;
34
- /** Link search input with target element */
35
- activeDescendantId?: string;
36
- onActiveValueChange?: (value: string | null) => void;
37
- searchValue: string;
38
- autoClearSearchValue?: boolean;
39
- /** Trigger onSearch, return false to prevent trigger open event */
40
- onSearch: (searchValue: string, info: {
41
- source: 'typing' | 'effect' | 'submit' | 'blur';
42
- }) => void;
43
- /** Trigger when search text match the `tokenSeparators`. Will provide split content */
44
- onSearchSplit?: (words: string[]) => void;
45
- OptionList: React.ForwardRefExoticComponent<React.PropsWithoutRef<any> & React.RefAttributes<RefOptionListProps>>;
46
- /** Tell if provided `options` is empty */
47
- emptyOptions: boolean;
48
- }
49
- export declare type BaseSelectPropsWithoutPrivate = Omit<BaseSelectProps, keyof BaseSelectPrivateProps>;
50
- export interface BaseSelectProps extends BaseSelectPrivateProps, React.AriaAttributes {
51
- className?: string;
52
- style?: React.CSSProperties;
53
- title?: string;
54
- showSearch?: boolean;
55
- tagRender?: (props: CustomTagProps) => React.ReactElement;
56
- direction?: 'ltr' | 'rtl';
57
- maxLength?: number;
58
- tabIndex?: number;
59
- autoFocus?: boolean;
60
- notFoundContent?: React.ReactNode;
61
- placeholder?: React.ReactNode;
62
- onClear?: () => void;
63
- choiceTransitionName?: string;
64
- mode?: Mode;
65
- disabled?: boolean;
66
- loading?: boolean;
67
- open?: boolean;
68
- defaultOpen?: boolean;
69
- onDropdownVisibleChange?: (open: boolean) => void;
70
- /** @private Internal usage. Do not use in your production. */
71
- getInputElement?: () => JSX.Element;
72
- /** @private Internal usage. Do not use in your production. */
73
- getRawInputElement?: () => JSX.Element;
74
- maxTagTextLength?: number;
75
- maxTagCount?: number | 'responsive';
76
- maxTagPlaceholder?: React.ReactNode | ((omittedValues: DisplayValueType[]) => React.ReactNode);
77
- tokenSeparators?: string[];
78
- allowClear?: boolean | {
79
- clearIcon?: RenderNode;
80
- };
81
- suffixIcon?: RenderNode;
82
- /**
83
- * Clear all icon
84
- * @deprecated Please use `allowClear` instead
85
- **/
86
- clearIcon?: RenderNode;
87
- /** Selector remove icon */
88
- removeIcon?: RenderNode;
89
- animation?: string;
90
- transitionName?: string;
91
- dropdownStyle?: React.CSSProperties;
92
- dropdownClassName?: string;
93
- dropdownMatchSelectWidth?: boolean | number;
94
- dropdownRender?: (menu: React.ReactElement) => React.ReactElement;
95
- dropdownAlign?: AlignType;
96
- placement?: Placement;
97
- builtinPlacements?: BuildInPlacements;
98
- getPopupContainer?: RenderDOMFunc;
99
- showAction?: ('focus' | 'click')[];
100
- onBlur?: React.FocusEventHandler<HTMLElement>;
101
- onFocus?: React.FocusEventHandler<HTMLElement>;
102
- onKeyUp?: React.KeyboardEventHandler<HTMLDivElement>;
103
- onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
104
- onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
105
- onPopupScroll?: React.UIEventHandler<HTMLDivElement>;
106
- onInputKeyDown?: React.KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
107
- onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
108
- onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
109
- onClick?: React.MouseEventHandler<HTMLDivElement>;
110
- }
111
- export declare function isMultiple(mode: Mode): boolean;
112
- declare const BaseSelect: React.ForwardRefExoticComponent<BaseSelectProps & React.RefAttributes<BaseSelectRef>>;
113
- export default BaseSelect;
114
- //# sourceMappingURL=BaseSelect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseSelect.d.ts","sourceRoot":"","sources":["../../../src/tntd-select/rc-select/BaseSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAOxF,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,aAAa,EACb,UAAU,EACX,MAAM,aAAa,CAAC;AAQrB,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,IAAI,EACJ,SAAS,EACT,aAAa,EACb,UAAU,EACV,YAAY,GACb,CAAC;AAgBF,MAAM,WAAW,kBAAkB;IACjC,S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