tntd 2.7.29 → 2.7.30

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 (1023) hide show
  1. package/es/affix/style/index.js.map +1 -0
  2. package/es/affix/style/index.less +6 -0
  3. package/es/alert/style/index.js +2 -0
  4. package/es/alert/style/index.js.map +1 -0
  5. package/es/alert/style/index.less +188 -0
  6. package/es/anchor/style/index.js +4 -0
  7. package/es/anchor/style/index.js.map +1 -0
  8. package/es/anchor/style/index.less +82 -0
  9. package/es/auto-complete/style/index.js +5 -0
  10. package/es/auto-complete/style/index.js.map +1 -0
  11. package/es/auto-complete/style/index.less +92 -0
  12. package/es/avatar/style/index.js +2 -0
  13. package/es/avatar/style/index.js.map +1 -0
  14. package/es/avatar/style/index.less +59 -0
  15. package/es/back-top/style/index.js +2 -0
  16. package/es/back-top/style/index.js.map +1 -0
  17. package/es/back-top/style/index.less +42 -0
  18. package/es/back-top/style/responsive.less +11 -0
  19. package/es/badge/style/index.js +2 -0
  20. package/es/badge/style/index.js.map +1 -0
  21. package/es/badge/style/index.less +190 -0
  22. package/es/breadcrumb/style/index.js +4 -0
  23. package/es/breadcrumb/style/index.js.map +1 -0
  24. package/es/breadcrumb/style/index.less +51 -0
  25. package/es/button/style/index.js +2 -0
  26. package/es/button/style/index.js.map +1 -0
  27. package/es/button/style/index.less +224 -0
  28. package/es/button/style/mixin.less +357 -0
  29. package/es/calendar/style/index.js +5 -0
  30. package/es/calendar/style/index.js.map +1 -0
  31. package/es/calendar/style/index.less +278 -0
  32. package/es/card/style/index.js +6 -0
  33. package/es/card/style/index.js.map +1 -0
  34. package/es/card/style/index.less +263 -0
  35. package/es/card/style/size.less +25 -0
  36. package/es/carousel/style/index.js +2 -0
  37. package/es/carousel/style/index.js.map +1 -0
  38. package/es/carousel/style/index.less +238 -0
  39. package/es/cascader/style/index.js +5 -0
  40. package/es/cascader/style/index.js.map +1 -0
  41. package/es/cascader/style/index.less +227 -0
  42. package/es/checkbox/style/index.js +2 -0
  43. package/es/checkbox/style/index.js.map +1 -0
  44. package/es/checkbox/style/index.less +4 -0
  45. package/es/checkbox/style/mixin.less +220 -0
  46. package/es/col/style/index.js +4 -0
  47. package/es/col/style/index.js.map +1 -0
  48. package/es/collapse/style/index.js +2 -0
  49. package/es/collapse/style/index.js.map +1 -0
  50. package/es/collapse/style/index.less +134 -0
  51. package/es/comment/style/index.js +2 -0
  52. package/es/comment/style/index.js.map +1 -0
  53. package/es/comment/style/index.less +93 -0
  54. package/es/config-provider/style/index.js +1 -0
  55. package/es/config-provider/style/index.js.map +1 -0
  56. package/es/config-provider/style/index.less +2 -0
  57. package/es/date-picker/style/Calendar.less +402 -0
  58. package/es/date-picker/style/DecadePanel.less +81 -0
  59. package/es/date-picker/style/MonthPanel.less +86 -0
  60. package/es/date-picker/style/MonthPicker.less +11 -0
  61. package/es/date-picker/style/Picker.less +113 -0
  62. package/es/date-picker/style/RangePicker.less +248 -0
  63. package/es/date-picker/style/TimePicker.less +151 -0
  64. package/es/date-picker/style/WeekPicker.less +21 -0
  65. package/es/date-picker/style/YearPanel.less +85 -0
  66. package/es/date-picker/style/index.js +7 -0
  67. package/es/date-picker/style/index.js.map +1 -0
  68. package/es/date-picker/style/index.less +17 -0
  69. package/es/descriptions/style/index.js +2 -0
  70. package/es/descriptions/style/index.js.map +1 -0
  71. package/es/descriptions/style/index.less +144 -0
  72. package/es/divider/style/index.js +2 -0
  73. package/es/divider/style/index.js.map +1 -0
  74. package/es/divider/style/index.less +109 -0
  75. package/es/drawer/style/drawer.less +230 -0
  76. package/es/drawer/style/index.js +3 -0
  77. package/es/drawer/style/index.js.map +1 -0
  78. package/es/drawer/style/index.less +3 -0
  79. package/es/dropdown/style/index.js +4 -0
  80. package/es/dropdown/style/index.js.map +1 -0
  81. package/es/dropdown/style/index.less +282 -0
  82. package/es/empty/style/index.js +2 -0
  83. package/es/empty/style/index.js.map +1 -0
  84. package/es/empty/style/index.less +52 -0
  85. package/es/form/style/index.js +4 -0
  86. package/es/form/style/index.js.map +1 -0
  87. package/es/form/style/index.less +653 -0
  88. package/es/form/style/mixin.less +126 -0
  89. package/es/grid-v4/RowContext.js.map +1 -0
  90. package/es/{tntd-form/grid → grid-v4}/col.js +0 -1
  91. package/es/grid-v4/col.js.map +1 -0
  92. package/es/grid-v4/hooks/useBreakpoint.js.map +1 -0
  93. package/es/grid-v4/index.js.map +1 -0
  94. package/es/{tntd-form/grid → grid-v4}/row.js +1 -0
  95. package/es/grid-v4/row.js.map +1 -0
  96. package/es/grid-v4/style/index.js +2 -0
  97. package/es/grid-v4/style/index.js.map +1 -0
  98. package/es/grid-v4/style/index.less +124 -0
  99. package/es/grid-v4/style/mixin.less +57 -0
  100. package/es/grid-v4/style/rtl.less +69 -0
  101. package/es/handle/handle.js +138 -0
  102. package/es/handle/handle.js.map +1 -0
  103. package/es/icon/style/index.js +2 -0
  104. package/es/icon/style/index.js.map +1 -0
  105. package/es/icon/style/index.less +4 -0
  106. package/es/input/style/index.js +4 -0
  107. package/es/input/style/index.js.map +1 -0
  108. package/es/input/style/index.less +57 -0
  109. package/es/input/style/mixin.less +449 -0
  110. package/es/input/style/search-input.less +34 -0
  111. package/es/input-number/style/index.js +2 -0
  112. package/es/input-number/style/index.js.map +1 -0
  113. package/es/input-number/style/index.less +179 -0
  114. package/es/layout/style/index.js +2 -0
  115. package/es/layout/style/index.js.map +1 -0
  116. package/es/layout/style/index.less +124 -0
  117. package/es/layout/style/light.less +15 -0
  118. package/es/list/style/bordered.less +41 -0
  119. package/es/list/style/index.js +7 -0
  120. package/es/list/style/index.js.map +1 -0
  121. package/es/list/style/index.less +234 -0
  122. package/es/list/style/responsive.less +40 -0
  123. package/es/locale-provider/style/index.js +1 -0
  124. package/es/locale-provider/style/index.js.map +1 -0
  125. package/es/locale-provider/style/index.less +2 -0
  126. package/es/mention/index.js +4 -0
  127. package/es/mention/index.js.map +1 -0
  128. package/es/mentions/style/index.js +4 -0
  129. package/es/mentions/style/index.js.map +1 -0
  130. package/es/mentions/style/index.less +164 -0
  131. package/es/menu/style/dark.less +139 -0
  132. package/es/menu/style/index.js +5 -0
  133. package/es/menu/style/index.js.map +1 -0
  134. package/es/menu/style/index.less +515 -0
  135. package/es/message/style/index.js +2 -0
  136. package/es/message/style/index.js.map +1 -0
  137. package/es/message/style/index.less +75 -0
  138. package/es/modal/style/confirm.less +78 -0
  139. package/es/modal/style/index.js +4 -0
  140. package/es/modal/style/index.js.map +1 -0
  141. package/es/modal/style/index.less +4 -0
  142. package/es/modal/style/modal.less +165 -0
  143. package/es/notification/style/index.js +2 -0
  144. package/es/notification/style/index.js.map +1 -0
  145. package/es/notification/style/index.less +199 -0
  146. package/es/page-header/style/index.js +4 -0
  147. package/es/page-header/style/index.js.map +1 -0
  148. package/es/page-header/style/index.less +119 -0
  149. package/es/pagination/style/index.js +4 -0
  150. package/es/pagination/style/index.js.map +1 -0
  151. package/es/pagination/style/index.less +400 -0
  152. package/es/popconfirm/style/index.js +5 -0
  153. package/es/popconfirm/style/index.js.map +1 -0
  154. package/es/popover/style/index.js +4 -0
  155. package/es/popover/style/index.js.map +1 -0
  156. package/es/popover/style/index.less +205 -0
  157. package/es/progress/style/index.js +2 -0
  158. package/es/progress/style/index.js.map +1 -0
  159. package/es/progress/style/index.less +182 -0
  160. package/es/radio/style/index.js +2 -0
  161. package/es/radio/style/index.js.map +1 -0
  162. package/es/radio/style/index.less +327 -0
  163. package/es/rate/style/index.js +4 -0
  164. package/es/rate/style/index.js.map +1 -0
  165. package/es/rate/style/index.less +85 -0
  166. package/es/result/style/index.js +2 -0
  167. package/es/result/style/index.js.map +1 -0
  168. package/es/result/style/index.less +71 -0
  169. package/es/row/style/index.js +4 -0
  170. package/es/row/style/index.js.map +1 -0
  171. package/es/select/style/index.js +4 -0
  172. package/es/select/style/index.js.map +1 -0
  173. package/es/select/style/index.less +604 -0
  174. package/es/skeleton/style/index.js +2 -0
  175. package/es/skeleton/style/index.js.map +1 -0
  176. package/es/skeleton/style/index.less +130 -0
  177. package/es/slider/style/index.js +4 -0
  178. package/es/slider/style/index.js.map +1 -0
  179. package/es/slider/style/index.less +197 -0
  180. package/es/spin/style/index.js +2 -0
  181. package/es/spin/style/index.js.map +1 -0
  182. package/es/spin/style/index.less +214 -0
  183. package/es/statistic/style/index.js +2 -0
  184. package/es/statistic/style/index.js.map +1 -0
  185. package/es/statistic/style/index.less +40 -0
  186. package/es/steps/style/compatibility.less +50 -0
  187. package/es/steps/style/custom-icon.less +31 -0
  188. package/es/steps/style/index.js +2 -0
  189. package/es/steps/style/index.js.map +1 -0
  190. package/es/steps/style/label-placement.less +38 -0
  191. package/es/steps/style/progress-dot.less +80 -0
  192. package/es/steps/style/vertical.less +74 -0
  193. package/es/style/color/bezierEasing.less +110 -0
  194. package/es/style/color/colorPalette.less +75 -0
  195. package/es/style/color/colors.less +149 -0
  196. package/es/style/color/tinyColor.less +1184 -0
  197. package/es/style/core/base.less +510 -0
  198. package/es/style/core/iconfont.less +19 -0
  199. package/es/style/core/index.less +4 -0
  200. package/es/style/core/motion/fade.less +31 -0
  201. package/es/style/core/motion/move.less +120 -0
  202. package/es/style/core/motion/other.less +40 -0
  203. package/es/style/core/motion/slide.less +120 -0
  204. package/es/style/core/motion/swing.less +34 -0
  205. package/es/style/core/motion/zoom.less +162 -0
  206. package/es/style/core/motion.less +20 -0
  207. package/es/style/index.js +1 -0
  208. package/es/style/index.js.map +1 -0
  209. package/es/style/index.less +2 -0
  210. package/es/style/mixins/clearfix.less +13 -0
  211. package/es/style/mixins/compatibility.less +22 -0
  212. package/es/style/mixins/iconfont.less +43 -0
  213. package/es/style/mixins/index.less +10 -0
  214. package/es/style/mixins/motion.less +35 -0
  215. package/es/style/mixins/operation-unit.less +18 -0
  216. package/es/style/mixins/reset.less +13 -0
  217. package/es/style/mixins/size.less +10 -0
  218. package/es/style/mixins/typography.less +49 -0
  219. package/es/style/themes/default.less +699 -0
  220. package/es/style/themes/index.less +1 -0
  221. package/es/style/v2-compatible-reset.js +1 -0
  222. package/es/style/v2-compatible-reset.js.map +1 -0
  223. package/es/style/v2-compatible-reset.less +51 -0
  224. package/es/switch/style/index.js +2 -0
  225. package/es/switch/style/index.js.map +1 -0
  226. package/es/switch/style/index.less +178 -0
  227. package/es/table/style/index.js +10 -0
  228. package/es/table/style/index.js.map +1 -0
  229. package/es/table/style/index.less +800 -0
  230. package/es/table/style/size.less +179 -0
  231. package/es/tabs/style/card-style.less +186 -0
  232. package/es/tabs/style/index.js +2 -0
  233. package/es/tabs/style/index.js.map +1 -0
  234. package/es/tabs/style/index.less +436 -0
  235. package/es/tabs/tabs.js +8 -5
  236. package/es/tabs/tabs.js.map +1 -1
  237. package/es/tag/style/index.js +2 -0
  238. package/es/tag/style/index.js.map +1 -0
  239. package/es/tag/style/index.less +106 -0
  240. package/es/time-picker/style/index.js +2 -0
  241. package/es/time-picker/style/index.js.map +1 -0
  242. package/es/time-picker/style/index.less +246 -0
  243. package/es/timeline/style/index.js +2 -0
  244. package/es/timeline/style/index.js.map +1 -0
  245. package/es/timeline/style/index.less +167 -0
  246. package/es/tntd-form/TntdForm/components/Item.js +55 -0
  247. package/es/tntd-form/TntdForm/components/Item.js.map +1 -0
  248. package/es/tntd-form/TntdForm/components/ItemComp.js +186 -0
  249. package/es/tntd-form/TntdForm/components/ItemComp.js.map +1 -0
  250. package/es/tntd-form/TntdForm/components/List.js +102 -0
  251. package/es/tntd-form/TntdForm/components/List.js.map +1 -0
  252. package/es/tntd-form/TntdForm/index.js +55 -0
  253. package/es/tntd-form/TntdForm/index.js.map +1 -0
  254. package/es/tntd-form/TntdForm/interface.js +1 -0
  255. package/es/tntd-form/TntdForm/interface.js.map +1 -0
  256. package/es/tntd-form/TntdForm/store.js +2 -0
  257. package/es/tntd-form/TntdForm/store.js.map +1 -0
  258. package/es/tntd-form/TntdForm/utils.js +219 -0
  259. package/es/tntd-form/TntdForm/utils.js.map +1 -0
  260. package/es/tntd-select/_util/DisabledContext.js +12 -0
  261. package/es/tntd-select/_util/DisabledContext.js.map +1 -0
  262. package/es/tntd-select/_util/FormItemInputContext.js +2 -0
  263. package/es/tntd-select/_util/FormItemInputContext.js.map +1 -0
  264. package/es/tntd-select/_util/PurePanel.js +66 -0
  265. package/es/tntd-select/_util/PurePanel.js.map +1 -0
  266. package/es/tntd-select/_util/SizeContext.js +2 -0
  267. package/es/tntd-select/_util/SizeContext.js.map +1 -0
  268. package/es/tntd-select/_util/context.js.map +1 -0
  269. package/es/tntd-select/_util/defaultRenderEmpty.js.map +1 -0
  270. package/es/tntd-select/_util/getIcons.js +74 -0
  271. package/es/tntd-select/_util/getIcons.js.map +1 -0
  272. package/es/tntd-select/_util/interface.js +4 -0
  273. package/es/tntd-select/_util/interface.js.map +1 -0
  274. package/es/tntd-select/_util/motion.js +47 -0
  275. package/es/tntd-select/_util/motion.js.map +1 -0
  276. package/es/tntd-select/_util/type.js +3 -0
  277. package/es/tntd-select/_util/type.js.map +1 -0
  278. package/es/tntd-select/_util/useCompactItemContext.js +26 -0
  279. package/es/tntd-select/_util/useCompactItemContext.js.map +1 -0
  280. package/es/tntd-select/_util/warning.js +14 -0
  281. package/es/tntd-select/_util/warning.js.map +1 -0
  282. package/es/tntd-select/rc-select/BaseSelect.js +524 -0
  283. package/es/tntd-select/rc-select/BaseSelect.js.map +1 -0
  284. package/es/tntd-select/rc-select/OptGroup.js +4 -0
  285. package/es/tntd-select/rc-select/OptGroup.js.map +1 -0
  286. package/es/tntd-select/rc-select/Option.js +4 -0
  287. package/es/tntd-select/rc-select/Option.js.map +1 -0
  288. package/es/tntd-select/rc-select/OptionList.js +346 -0
  289. package/es/tntd-select/rc-select/OptionList.js.map +1 -0
  290. package/es/tntd-select/rc-select/Select.js +440 -0
  291. package/es/tntd-select/rc-select/Select.js.map +1 -0
  292. package/es/tntd-select/rc-select/SelectContext.js +3 -0
  293. package/es/tntd-select/rc-select/SelectContext.js.map +1 -0
  294. package/es/tntd-select/rc-select/SelectTrigger.js +130 -0
  295. package/es/tntd-select/rc-select/SelectTrigger.js.map +1 -0
  296. package/es/tntd-select/rc-select/Selector/Input.js +103 -0
  297. package/es/tntd-select/rc-select/Selector/Input.js.map +1 -0
  298. package/es/tntd-select/rc-select/Selector/MultipleSelector.js +171 -0
  299. package/es/tntd-select/rc-select/Selector/MultipleSelector.js.map +1 -0
  300. package/es/tntd-select/rc-select/Selector/SingleSelector.js +98 -0
  301. package/es/tntd-select/rc-select/Selector/SingleSelector.js.map +1 -0
  302. package/es/tntd-select/rc-select/Selector/index.js +158 -0
  303. package/es/tntd-select/rc-select/Selector/index.js.map +1 -0
  304. package/es/tntd-select/rc-select/TransBtn.js +36 -0
  305. package/es/tntd-select/rc-select/TransBtn.js.map +1 -0
  306. package/es/tntd-select/rc-select/hooks/useAllowClear.js +24 -0
  307. package/es/tntd-select/rc-select/hooks/useAllowClear.js.map +1 -0
  308. package/es/tntd-select/rc-select/hooks/useBaseProps.js +9 -0
  309. package/es/tntd-select/rc-select/hooks/useBaseProps.js.map +1 -0
  310. package/es/tntd-select/rc-select/hooks/useCache.js +38 -0
  311. package/es/tntd-select/rc-select/hooks/useCache.js.map +1 -0
  312. package/es/tntd-select/rc-select/hooks/useDelayReset.js +23 -0
  313. package/es/tntd-select/rc-select/hooks/useDelayReset.js.map +1 -0
  314. package/es/tntd-select/rc-select/hooks/useFilterOptions.js +55 -0
  315. package/es/tntd-select/rc-select/hooks/useFilterOptions.js.map +1 -0
  316. package/es/tntd-select/rc-select/hooks/useId.js +26 -0
  317. package/es/tntd-select/rc-select/hooks/useId.js.map +1 -0
  318. package/es/tntd-select/rc-select/hooks/useLayoutEffect.js +16 -0
  319. package/es/tntd-select/rc-select/hooks/useLayoutEffect.js.map +1 -0
  320. package/es/tntd-select/rc-select/hooks/useLock.js +25 -0
  321. package/es/tntd-select/rc-select/hooks/useLock.js.map +1 -0
  322. package/es/tntd-select/rc-select/hooks/useOptions.js +43 -0
  323. package/es/tntd-select/rc-select/hooks/useOptions.js.map +1 -0
  324. package/es/tntd-select/rc-select/hooks/useRefFunc.js +13 -0
  325. package/es/tntd-select/rc-select/hooks/useRefFunc.js.map +1 -0
  326. package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js +28 -0
  327. package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +1 -0
  328. package/es/tntd-select/rc-select/index.js +7 -0
  329. package/es/tntd-select/rc-select/index.js.map +1 -0
  330. package/es/tntd-select/rc-select/interface.js +1 -0
  331. package/es/tntd-select/rc-select/interface.js.map +1 -0
  332. package/es/tntd-select/rc-select/utils/commonUtil.js +30 -0
  333. package/es/tntd-select/rc-select/utils/commonUtil.js.map +1 -0
  334. package/es/tntd-select/rc-select/utils/keyUtil.js +9 -0
  335. package/es/tntd-select/rc-select/utils/keyUtil.js.map +1 -0
  336. package/es/tntd-select/rc-select/utils/legacyUtil.js +55 -0
  337. package/es/tntd-select/rc-select/utils/legacyUtil.js.map +1 -0
  338. package/es/tntd-select/rc-select/utils/platformUtil.js +4 -0
  339. package/es/tntd-select/rc-select/utils/platformUtil.js.map +1 -0
  340. package/es/tntd-select/rc-select/utils/valueUtil.js +112 -0
  341. package/es/tntd-select/rc-select/utils/valueUtil.js.map +1 -0
  342. package/es/tntd-select/rc-select/utils/warningPropsUtil.js +112 -0
  343. package/es/tntd-select/rc-select/utils/warningPropsUtil.js.map +1 -0
  344. package/es/tooltip/style/index.js +2 -0
  345. package/es/tooltip/style/index.js.map +1 -0
  346. package/es/tooltip/style/index.less +187 -0
  347. package/es/transfer/style/customize.less +62 -0
  348. package/es/transfer/style/index.js +7 -0
  349. package/es/transfer/style/index.js.map +1 -0
  350. package/es/transfer/style/index.less +191 -0
  351. package/es/tree/style/directory.less +95 -0
  352. package/es/tree/style/index.js +2 -0
  353. package/es/tree/style/index.js.map +1 -0
  354. package/es/tree/style/index.less +280 -0
  355. package/es/tree/style/mixin.less +29 -0
  356. package/es/tree-select/style/index.js +6 -0
  357. package/es/tree-select/style/index.js.map +1 -0
  358. package/es/tree-select/style/index.less +191 -0
  359. package/es/typography/style/index.js +5 -0
  360. package/es/typography/style/index.js.map +1 -0
  361. package/es/typography/style/index.less +204 -0
  362. package/es/upload/style/index.js +5 -0
  363. package/es/upload/style/index.js.map +1 -0
  364. package/es/upload/style/index.less +542 -0
  365. package/es/utils/lang.js +5 -0
  366. package/es/utils/lang.js.map +1 -1
  367. package/es/version/style/index.js +2 -0
  368. package/es/version/style/index.js.map +1 -0
  369. package/lib/affix/style/index.d.ts.map +1 -0
  370. package/lib/affix/style/index.js.map +1 -0
  371. package/lib/affix/style/index.less +6 -0
  372. package/lib/alert/style/index.d.ts +3 -0
  373. package/lib/alert/style/index.d.ts.map +1 -0
  374. package/lib/alert/style/index.js +4 -0
  375. package/lib/alert/style/index.js.map +1 -0
  376. package/lib/alert/style/index.less +188 -0
  377. package/lib/anchor/style/index.d.ts +4 -0
  378. package/lib/anchor/style/index.d.ts.map +1 -0
  379. package/lib/anchor/style/index.js +5 -0
  380. package/lib/anchor/style/index.js.map +1 -0
  381. package/lib/anchor/style/index.less +82 -0
  382. package/lib/auto-complete/style/index.d.ts +5 -0
  383. package/lib/auto-complete/style/index.d.ts.map +1 -0
  384. package/lib/auto-complete/style/index.js +6 -0
  385. package/lib/auto-complete/style/index.js.map +1 -0
  386. package/lib/auto-complete/style/index.less +92 -0
  387. package/lib/avatar/style/index.d.ts +3 -0
  388. package/lib/avatar/style/index.d.ts.map +1 -0
  389. package/lib/avatar/style/index.js +4 -0
  390. package/lib/avatar/style/index.js.map +1 -0
  391. package/lib/avatar/style/index.less +59 -0
  392. package/lib/back-top/style/index.d.ts +3 -0
  393. package/lib/back-top/style/index.d.ts.map +1 -0
  394. package/lib/back-top/style/index.js +4 -0
  395. package/lib/back-top/style/index.js.map +1 -0
  396. package/lib/back-top/style/index.less +42 -0
  397. package/lib/back-top/style/responsive.less +11 -0
  398. package/lib/badge/style/index.d.ts +3 -0
  399. package/lib/badge/style/index.d.ts.map +1 -0
  400. package/lib/badge/style/index.js +4 -0
  401. package/lib/badge/style/index.js.map +1 -0
  402. package/lib/badge/style/index.less +190 -0
  403. package/lib/breadcrumb/style/index.d.ts +5 -0
  404. package/lib/breadcrumb/style/index.d.ts.map +1 -0
  405. package/lib/breadcrumb/style/index.js +6 -0
  406. package/lib/breadcrumb/style/index.js.map +1 -0
  407. package/lib/breadcrumb/style/index.less +51 -0
  408. package/lib/button/style/index.d.ts +3 -0
  409. package/lib/button/style/index.d.ts.map +1 -0
  410. package/lib/button/style/index.js +4 -0
  411. package/lib/button/style/index.js.map +1 -0
  412. package/lib/button/style/index.less +224 -0
  413. package/lib/button/style/mixin.less +357 -0
  414. package/lib/calendar/style/index.d.ts +5 -0
  415. package/lib/calendar/style/index.d.ts.map +1 -0
  416. package/lib/calendar/style/index.js +6 -0
  417. package/lib/calendar/style/index.js.map +1 -0
  418. package/lib/calendar/style/index.less +278 -0
  419. package/lib/card/style/index.d.ts +6 -0
  420. package/lib/card/style/index.d.ts.map +1 -0
  421. package/lib/card/style/index.js +7 -0
  422. package/lib/card/style/index.js.map +1 -0
  423. package/lib/card/style/index.less +263 -0
  424. package/lib/card/style/size.less +25 -0
  425. package/lib/carousel/style/index.d.ts +3 -0
  426. package/lib/carousel/style/index.d.ts.map +1 -0
  427. package/lib/carousel/style/index.js +4 -0
  428. package/lib/carousel/style/index.js.map +1 -0
  429. package/lib/carousel/style/index.less +238 -0
  430. package/lib/cascader/style/index.d.ts +5 -0
  431. package/lib/cascader/style/index.d.ts.map +1 -0
  432. package/lib/cascader/style/index.js +6 -0
  433. package/lib/cascader/style/index.js.map +1 -0
  434. package/lib/cascader/style/index.less +227 -0
  435. package/lib/checkbox/style/index.d.ts +3 -0
  436. package/lib/checkbox/style/index.d.ts.map +1 -0
  437. package/lib/checkbox/style/index.js +4 -0
  438. package/lib/checkbox/style/index.js.map +1 -0
  439. package/lib/checkbox/style/index.less +4 -0
  440. package/lib/checkbox/style/mixin.less +220 -0
  441. package/lib/col/style/index.d.ts +3 -0
  442. package/lib/col/style/index.d.ts.map +1 -0
  443. package/lib/col/style/index.js +4 -0
  444. package/lib/col/style/index.js.map +1 -0
  445. package/lib/collapse/style/index.d.ts +3 -0
  446. package/lib/collapse/style/index.d.ts.map +1 -0
  447. package/lib/collapse/style/index.js +4 -0
  448. package/lib/collapse/style/index.js.map +1 -0
  449. package/lib/collapse/style/index.less +134 -0
  450. package/lib/comment/style/index.d.ts +3 -0
  451. package/lib/comment/style/index.d.ts.map +1 -0
  452. package/lib/comment/style/index.js +4 -0
  453. package/lib/comment/style/index.js.map +1 -0
  454. package/lib/comment/style/index.less +93 -0
  455. package/lib/config-provider/style/index.d.ts +2 -0
  456. package/lib/config-provider/style/index.d.ts.map +1 -0
  457. package/lib/config-provider/style/index.js +3 -0
  458. package/lib/config-provider/style/index.js.map +1 -0
  459. package/lib/config-provider/style/index.less +2 -0
  460. package/lib/date-picker/style/Calendar.less +402 -0
  461. package/lib/date-picker/style/DecadePanel.less +81 -0
  462. package/lib/date-picker/style/MonthPanel.less +86 -0
  463. package/lib/date-picker/style/MonthPicker.less +11 -0
  464. package/lib/date-picker/style/Picker.less +113 -0
  465. package/lib/date-picker/style/RangePicker.less +248 -0
  466. package/lib/date-picker/style/TimePicker.less +151 -0
  467. package/lib/date-picker/style/WeekPicker.less +21 -0
  468. package/lib/date-picker/style/YearPanel.less +85 -0
  469. package/lib/date-picker/style/index.d.ts +6 -0
  470. package/lib/date-picker/style/index.d.ts.map +1 -0
  471. package/lib/date-picker/style/index.js +7 -0
  472. package/lib/date-picker/style/index.js.map +1 -0
  473. package/lib/date-picker/style/index.less +17 -0
  474. package/lib/descriptions/style/index.d.ts +3 -0
  475. package/lib/descriptions/style/index.d.ts.map +1 -0
  476. package/lib/descriptions/style/index.js +4 -0
  477. package/lib/descriptions/style/index.js.map +1 -0
  478. package/lib/descriptions/style/index.less +144 -0
  479. package/lib/divider/style/index.d.ts +3 -0
  480. package/lib/divider/style/index.d.ts.map +1 -0
  481. package/lib/divider/style/index.js +4 -0
  482. package/lib/divider/style/index.js.map +1 -0
  483. package/lib/divider/style/index.less +109 -0
  484. package/lib/drawer/style/drawer.less +230 -0
  485. package/lib/drawer/style/index.d.ts +3 -0
  486. package/lib/drawer/style/index.d.ts.map +1 -0
  487. package/lib/drawer/style/index.js +4 -0
  488. package/lib/drawer/style/index.js.map +1 -0
  489. package/lib/drawer/style/index.less +3 -0
  490. package/lib/dropdown/style/index.d.ts +4 -0
  491. package/lib/dropdown/style/index.d.ts.map +1 -0
  492. package/lib/dropdown/style/index.js +5 -0
  493. package/lib/dropdown/style/index.js.map +1 -0
  494. package/lib/dropdown/style/index.less +282 -0
  495. package/lib/empty/style/index.d.ts +3 -0
  496. package/lib/empty/style/index.d.ts.map +1 -0
  497. package/lib/empty/style/index.js +4 -0
  498. package/lib/empty/style/index.js.map +1 -0
  499. package/lib/empty/style/index.less +52 -0
  500. package/lib/form/style/index.d.ts +4 -0
  501. package/lib/form/style/index.d.ts.map +1 -0
  502. package/lib/form/style/index.js +5 -0
  503. package/lib/form/style/index.js.map +1 -0
  504. package/lib/form/style/index.less +653 -0
  505. package/lib/form/style/mixin.less +126 -0
  506. package/lib/grid-v4/RowContext.d.ts.map +1 -0
  507. package/lib/grid-v4/RowContext.js.map +1 -0
  508. package/lib/grid-v4/col.d.ts.map +1 -0
  509. package/lib/grid-v4/col.js.map +1 -0
  510. package/lib/grid-v4/hooks/useBreakpoint.d.ts.map +1 -0
  511. package/lib/grid-v4/hooks/useBreakpoint.js.map +1 -0
  512. package/lib/grid-v4/index.d.ts.map +1 -0
  513. package/lib/grid-v4/index.js.map +1 -0
  514. package/lib/grid-v4/row.d.ts.map +1 -0
  515. package/lib/{tntd-form/grid → grid-v4}/row.js +1 -0
  516. package/lib/grid-v4/row.js.map +1 -0
  517. package/lib/grid-v4/style/index.d.ts +2 -0
  518. package/lib/grid-v4/style/index.d.ts.map +1 -0
  519. package/lib/grid-v4/style/index.js +3 -0
  520. package/lib/grid-v4/style/index.js.map +1 -0
  521. package/lib/grid-v4/style/index.less +124 -0
  522. package/lib/grid-v4/style/mixin.less +57 -0
  523. package/lib/grid-v4/style/rtl.less +69 -0
  524. package/lib/handle/handle.d.ts +3 -0
  525. package/lib/handle/handle.d.ts.map +1 -0
  526. package/lib/handle/handle.js +181 -0
  527. package/lib/handle/handle.js.map +1 -0
  528. package/lib/icon/style/index.d.ts +3 -0
  529. package/lib/icon/style/index.d.ts.map +1 -0
  530. package/lib/icon/style/index.js +4 -0
  531. package/lib/icon/style/index.js.map +1 -0
  532. package/lib/icon/style/index.less +4 -0
  533. package/lib/input/style/index.d.ts +4 -0
  534. package/lib/input/style/index.d.ts.map +1 -0
  535. package/lib/input/style/index.js +5 -0
  536. package/lib/input/style/index.js.map +1 -0
  537. package/lib/input/style/index.less +57 -0
  538. package/lib/input/style/mixin.less +449 -0
  539. package/lib/input/style/search-input.less +34 -0
  540. package/lib/input-number/style/index.d.ts +3 -0
  541. package/lib/input-number/style/index.d.ts.map +1 -0
  542. package/lib/input-number/style/index.js +4 -0
  543. package/lib/input-number/style/index.js.map +1 -0
  544. package/lib/input-number/style/index.less +179 -0
  545. package/lib/layout/style/index.d.ts +3 -0
  546. package/lib/layout/style/index.d.ts.map +1 -0
  547. package/lib/layout/style/index.js +4 -0
  548. package/lib/layout/style/index.js.map +1 -0
  549. package/lib/layout/style/index.less +124 -0
  550. package/lib/layout/style/light.less +15 -0
  551. package/lib/list/style/bordered.less +41 -0
  552. package/lib/list/style/index.d.ts +7 -0
  553. package/lib/list/style/index.d.ts.map +1 -0
  554. package/lib/list/style/index.js +8 -0
  555. package/lib/list/style/index.js.map +1 -0
  556. package/lib/list/style/index.less +234 -0
  557. package/lib/list/style/responsive.less +40 -0
  558. package/lib/locale-provider/style/index.d.ts +2 -0
  559. package/lib/locale-provider/style/index.d.ts.map +1 -0
  560. package/lib/locale-provider/style/index.js +3 -0
  561. package/lib/locale-provider/style/index.js.map +1 -0
  562. package/lib/locale-provider/style/index.less +2 -0
  563. package/lib/mention/index.js +25 -0
  564. package/lib/mentions/style/index.d.ts +4 -0
  565. package/lib/mentions/style/index.d.ts.map +1 -0
  566. package/lib/mentions/style/index.js +5 -0
  567. package/lib/mentions/style/index.js.map +1 -0
  568. package/lib/mentions/style/index.less +164 -0
  569. package/lib/menu/style/dark.less +139 -0
  570. package/lib/menu/style/index.d.ts +4 -0
  571. package/lib/menu/style/index.d.ts.map +1 -0
  572. package/lib/menu/style/index.js +5 -0
  573. package/lib/menu/style/index.js.map +1 -0
  574. package/lib/menu/style/index.less +515 -0
  575. package/lib/message/style/index.d.ts +3 -0
  576. package/lib/message/style/index.d.ts.map +1 -0
  577. package/lib/message/style/index.js +4 -0
  578. package/lib/message/style/index.js.map +1 -0
  579. package/lib/message/style/index.less +75 -0
  580. package/lib/modal/style/confirm.less +78 -0
  581. package/lib/modal/style/index.d.ts +4 -0
  582. package/lib/modal/style/index.d.ts.map +1 -0
  583. package/lib/modal/style/index.js +5 -0
  584. package/lib/modal/style/index.js.map +1 -0
  585. package/lib/modal/style/index.less +4 -0
  586. package/lib/modal/style/modal.less +165 -0
  587. package/lib/notification/style/index.d.ts +3 -0
  588. package/lib/notification/style/index.d.ts.map +1 -0
  589. package/lib/notification/style/index.js +4 -0
  590. package/lib/notification/style/index.js.map +1 -0
  591. package/lib/notification/style/index.less +199 -0
  592. package/lib/page-header/style/index.d.ts +4 -0
  593. package/lib/page-header/style/index.d.ts.map +1 -0
  594. package/lib/page-header/style/index.js +5 -0
  595. package/lib/page-header/style/index.js.map +1 -0
  596. package/lib/page-header/style/index.less +119 -0
  597. package/lib/pagination/style/index.d.ts +4 -0
  598. package/lib/pagination/style/index.d.ts.map +1 -0
  599. package/lib/pagination/style/index.js +5 -0
  600. package/lib/pagination/style/index.js.map +1 -0
  601. package/lib/pagination/style/index.less +400 -0
  602. package/lib/popconfirm/style/index.d.ts +4 -0
  603. package/lib/popconfirm/style/index.d.ts.map +1 -0
  604. package/lib/popconfirm/style/index.js +5 -0
  605. package/lib/popconfirm/style/index.js.map +1 -0
  606. package/lib/popover/style/index.d.ts +3 -0
  607. package/lib/popover/style/index.d.ts.map +1 -0
  608. package/lib/popover/style/index.js +4 -0
  609. package/lib/popover/style/index.js.map +1 -0
  610. package/lib/popover/style/index.less +205 -0
  611. package/lib/progress/style/index.d.ts +3 -0
  612. package/lib/progress/style/index.d.ts.map +1 -0
  613. package/lib/progress/style/index.js +4 -0
  614. package/lib/progress/style/index.js.map +1 -0
  615. package/lib/progress/style/index.less +182 -0
  616. package/lib/radio/style/index.d.ts +3 -0
  617. package/lib/radio/style/index.d.ts.map +1 -0
  618. package/lib/radio/style/index.js +4 -0
  619. package/lib/radio/style/index.js.map +1 -0
  620. package/lib/radio/style/index.less +327 -0
  621. package/lib/rate/style/index.d.ts +4 -0
  622. package/lib/rate/style/index.d.ts.map +1 -0
  623. package/lib/rate/style/index.js +5 -0
  624. package/lib/rate/style/index.js.map +1 -0
  625. package/lib/rate/style/index.less +85 -0
  626. package/lib/result/style/index.d.ts +3 -0
  627. package/lib/result/style/index.d.ts.map +1 -0
  628. package/lib/result/style/index.js +4 -0
  629. package/lib/result/style/index.js.map +1 -0
  630. package/lib/result/style/index.less +71 -0
  631. package/lib/row/style/index.d.ts +3 -0
  632. package/lib/row/style/index.d.ts.map +1 -0
  633. package/lib/row/style/index.js +4 -0
  634. package/lib/row/style/index.js.map +1 -0
  635. package/lib/select/style/index.d.ts +4 -0
  636. package/lib/select/style/index.d.ts.map +1 -0
  637. package/lib/select/style/index.js +5 -0
  638. package/lib/select/style/index.js.map +1 -0
  639. package/lib/select/style/index.less +604 -0
  640. package/lib/skeleton/style/index.d.ts +3 -0
  641. package/lib/skeleton/style/index.d.ts.map +1 -0
  642. package/lib/skeleton/style/index.js +4 -0
  643. package/lib/skeleton/style/index.js.map +1 -0
  644. package/lib/skeleton/style/index.less +130 -0
  645. package/lib/slider/style/index.d.ts +4 -0
  646. package/lib/slider/style/index.d.ts.map +1 -0
  647. package/lib/slider/style/index.js +5 -0
  648. package/lib/slider/style/index.js.map +1 -0
  649. package/lib/slider/style/index.less +197 -0
  650. package/lib/spin/style/index.d.ts +3 -0
  651. package/lib/spin/style/index.d.ts.map +1 -0
  652. package/lib/spin/style/index.js +4 -0
  653. package/lib/spin/style/index.js.map +1 -0
  654. package/lib/spin/style/index.less +214 -0
  655. package/lib/statistic/style/index.d.ts +3 -0
  656. package/lib/statistic/style/index.d.ts.map +1 -0
  657. package/lib/statistic/style/index.js +4 -0
  658. package/lib/statistic/style/index.js.map +1 -0
  659. package/lib/statistic/style/index.less +40 -0
  660. package/lib/steps/style/compatibility.less +50 -0
  661. package/lib/steps/style/custom-icon.less +31 -0
  662. package/lib/steps/style/index.d.ts +3 -0
  663. package/lib/steps/style/index.d.ts.map +1 -0
  664. package/lib/steps/style/index.js +4 -0
  665. package/lib/steps/style/index.js.map +1 -0
  666. package/lib/steps/style/label-placement.less +38 -0
  667. package/lib/steps/style/progress-dot.less +80 -0
  668. package/lib/steps/style/vertical.less +74 -0
  669. package/lib/style/color/bezierEasing.less +110 -0
  670. package/lib/style/color/colorPalette.less +75 -0
  671. package/lib/style/color/colors.less +149 -0
  672. package/lib/style/color/tinyColor.less +1184 -0
  673. package/lib/style/core/base.less +510 -0
  674. package/lib/style/core/iconfont.less +19 -0
  675. package/lib/style/core/index.less +4 -0
  676. package/lib/style/core/motion/fade.less +31 -0
  677. package/lib/style/core/motion/move.less +120 -0
  678. package/lib/style/core/motion/other.less +40 -0
  679. package/lib/style/core/motion/slide.less +120 -0
  680. package/lib/style/core/motion/swing.less +34 -0
  681. package/lib/style/core/motion/zoom.less +162 -0
  682. package/lib/style/core/motion.less +20 -0
  683. package/lib/style/index.d.ts +2 -0
  684. package/lib/style/index.d.ts.map +1 -0
  685. package/lib/style/index.js +3 -0
  686. package/lib/style/index.js.map +1 -0
  687. package/lib/style/index.less +2 -0
  688. package/lib/style/mixins/clearfix.less +13 -0
  689. package/lib/style/mixins/compatibility.less +22 -0
  690. package/lib/style/mixins/iconfont.less +43 -0
  691. package/lib/style/mixins/index.less +10 -0
  692. package/lib/style/mixins/motion.less +35 -0
  693. package/lib/style/mixins/operation-unit.less +18 -0
  694. package/lib/style/mixins/reset.less +13 -0
  695. package/lib/style/mixins/size.less +10 -0
  696. package/lib/style/mixins/typography.less +49 -0
  697. package/lib/style/themes/default.less +699 -0
  698. package/lib/style/themes/index.less +1 -0
  699. package/lib/style/v2-compatible-reset.d.ts +2 -0
  700. package/lib/style/v2-compatible-reset.d.ts.map +1 -0
  701. package/lib/style/v2-compatible-reset.js +3 -0
  702. package/lib/style/v2-compatible-reset.js.map +1 -0
  703. package/lib/style/v2-compatible-reset.less +51 -0
  704. package/lib/switch/style/index.d.ts +3 -0
  705. package/lib/switch/style/index.d.ts.map +1 -0
  706. package/lib/switch/style/index.js +4 -0
  707. package/lib/switch/style/index.js.map +1 -0
  708. package/lib/switch/style/index.less +178 -0
  709. package/lib/table/style/index.d.ts +9 -0
  710. package/lib/table/style/index.d.ts.map +1 -0
  711. package/lib/table/style/index.js +10 -0
  712. package/lib/table/style/index.js.map +1 -0
  713. package/lib/table/style/index.less +800 -0
  714. package/lib/table/style/size.less +179 -0
  715. package/lib/tabs/style/card-style.less +186 -0
  716. package/lib/tabs/style/index.d.ts +3 -0
  717. package/lib/tabs/style/index.d.ts.map +1 -0
  718. package/lib/tabs/style/index.js +4 -0
  719. package/lib/tabs/style/index.js.map +1 -0
  720. package/lib/tabs/style/index.less +436 -0
  721. package/lib/tabs/tabs.d.ts +1 -0
  722. package/lib/tabs/tabs.d.ts.map +1 -1
  723. package/lib/tabs/tabs.js +7 -4
  724. package/lib/tabs/tabs.js.map +1 -1
  725. package/lib/tag/style/index.d.ts +3 -0
  726. package/lib/tag/style/index.d.ts.map +1 -0
  727. package/lib/tag/style/index.js +4 -0
  728. package/lib/tag/style/index.js.map +1 -0
  729. package/lib/tag/style/index.less +106 -0
  730. package/lib/time-picker/style/index.d.ts +3 -0
  731. package/lib/time-picker/style/index.d.ts.map +1 -0
  732. package/lib/time-picker/style/index.js +4 -0
  733. package/lib/time-picker/style/index.js.map +1 -0
  734. package/lib/time-picker/style/index.less +246 -0
  735. package/lib/timeline/style/index.d.ts +3 -0
  736. package/lib/timeline/style/index.d.ts.map +1 -0
  737. package/lib/timeline/style/index.js +4 -0
  738. package/lib/timeline/style/index.js.map +1 -0
  739. package/lib/timeline/style/index.less +167 -0
  740. package/lib/tntd-form/TntdForm/components/Item.js +65 -0
  741. package/lib/tntd-form/TntdForm/components/ItemComp.js +215 -0
  742. package/lib/tntd-form/TntdForm/components/List.js +123 -0
  743. package/lib/tntd-form/TntdForm/index.js +72 -0
  744. package/lib/tntd-form/TntdForm/interface.js +5 -0
  745. package/lib/tntd-form/TntdForm/store.js +10 -0
  746. package/lib/tntd-form/TntdForm/utils.js +239 -0
  747. package/lib/tntd-form/tntd-form.stories.d.ts +1 -1
  748. package/lib/tntd-select/_util/DisabledContext.d.ts +10 -0
  749. package/lib/tntd-select/_util/DisabledContext.d.ts.map +1 -0
  750. package/lib/tntd-select/_util/DisabledContext.js +22 -0
  751. package/lib/tntd-select/_util/DisabledContext.js.map +1 -0
  752. package/lib/tntd-select/_util/FormItemInputContext.d.ts +4 -0
  753. package/lib/tntd-select/_util/FormItemInputContext.d.ts.map +1 -0
  754. package/lib/tntd-select/_util/FormItemInputContext.js +12 -0
  755. package/lib/tntd-select/_util/FormItemInputContext.js.map +1 -0
  756. package/lib/tntd-select/_util/PurePanel.d.ts +9 -0
  757. package/lib/tntd-select/_util/PurePanel.d.ts.map +1 -0
  758. package/lib/tntd-select/_util/PurePanel.js +90 -0
  759. package/lib/tntd-select/_util/PurePanel.js.map +1 -0
  760. package/lib/tntd-select/_util/SizeContext.d.ts +4 -0
  761. package/lib/tntd-select/_util/SizeContext.d.ts.map +1 -0
  762. package/lib/tntd-select/_util/SizeContext.js +12 -0
  763. package/lib/tntd-select/_util/SizeContext.js.map +1 -0
  764. package/lib/tntd-select/_util/context.d.ts.map +1 -0
  765. package/lib/tntd-select/_util/context.js.map +1 -0
  766. package/lib/tntd-select/_util/defaultRenderEmpty.d.ts.map +1 -0
  767. package/lib/tntd-select/_util/defaultRenderEmpty.js.map +1 -0
  768. package/lib/tntd-select/_util/getIcons.d.ts +25 -0
  769. package/lib/tntd-select/_util/getIcons.d.ts.map +1 -0
  770. package/lib/tntd-select/_util/getIcons.js +84 -0
  771. package/lib/tntd-select/_util/getIcons.js.map +1 -0
  772. package/lib/tntd-select/_util/interface.d.ts +25 -0
  773. package/lib/tntd-select/_util/interface.d.ts.map +1 -0
  774. package/lib/tntd-select/_util/interface.js +16 -0
  775. package/lib/tntd-select/_util/interface.js.map +1 -0
  776. package/lib/tntd-select/_util/motion.d.ts +9 -0
  777. package/lib/tntd-select/_util/motion.d.ts.map +1 -0
  778. package/lib/tntd-select/_util/motion.js +59 -0
  779. package/lib/tntd-select/_util/motion.js.map +1 -0
  780. package/lib/tntd-select/_util/type.d.ts +10 -0
  781. package/lib/tntd-select/_util/type.d.ts.map +1 -0
  782. package/lib/tntd-select/_util/type.js +21 -0
  783. package/lib/tntd-select/_util/type.js.map +1 -0
  784. package/lib/tntd-select/_util/useCompactItemContext.d.ts +9 -0
  785. package/lib/tntd-select/_util/useCompactItemContext.d.ts.map +1 -0
  786. package/lib/tntd-select/_util/useCompactItemContext.js +35 -0
  787. package/lib/tntd-select/_util/useCompactItemContext.js.map +1 -0
  788. package/lib/tntd-select/_util/warning.d.ts +4 -0
  789. package/lib/tntd-select/_util/warning.d.ts.map +1 -0
  790. package/lib/tntd-select/_util/warning.js +24 -0
  791. package/lib/tntd-select/_util/warning.js.map +1 -0
  792. package/lib/tntd-select/rc-select/BaseSelect.d.ts +114 -0
  793. package/lib/tntd-select/rc-select/BaseSelect.d.ts.map +1 -0
  794. package/lib/tntd-select/rc-select/BaseSelect.js +566 -0
  795. package/lib/tntd-select/rc-select/BaseSelect.js.map +1 -0
  796. package/lib/tntd-select/rc-select/OptGroup.d.ts +13 -0
  797. package/lib/tntd-select/rc-select/OptGroup.d.ts.map +1 -0
  798. package/lib/tntd-select/rc-select/OptGroup.js +13 -0
  799. package/lib/tntd-select/rc-select/OptGroup.js.map +1 -0
  800. package/lib/tntd-select/rc-select/Option.d.ts +15 -0
  801. package/lib/tntd-select/rc-select/Option.d.ts.map +1 -0
  802. package/lib/tntd-select/rc-select/Option.js +13 -0
  803. package/lib/tntd-select/rc-select/Option.js.map +1 -0
  804. package/lib/tntd-select/rc-select/OptionList.d.ts +11 -0
  805. package/lib/tntd-select/rc-select/OptionList.d.ts.map +1 -0
  806. package/lib/tntd-select/rc-select/OptionList.js +372 -0
  807. package/lib/tntd-select/rc-select/OptionList.js.map +1 -0
  808. package/lib/tntd-select/rc-select/Select.d.ts +115 -0
  809. package/lib/tntd-select/rc-select/Select.d.ts.map +1 -0
  810. package/lib/tntd-select/rc-select/Select.js +509 -0
  811. package/lib/tntd-select/rc-select/Select.js.map +1 -0
  812. package/lib/tntd-select/rc-select/SelectContext.d.ts +23 -0
  813. package/lib/tntd-select/rc-select/SelectContext.d.ts.map +1 -0
  814. package/lib/tntd-select/rc-select/SelectContext.js +13 -0
  815. package/lib/tntd-select/rc-select/SelectContext.js.map +1 -0
  816. package/lib/tntd-select/rc-select/SelectTrigger.d.ts +31 -0
  817. package/lib/tntd-select/rc-select/SelectTrigger.d.ts.map +1 -0
  818. package/lib/tntd-select/rc-select/SelectTrigger.js +149 -0
  819. package/lib/tntd-select/rc-select/SelectTrigger.js.map +1 -0
  820. package/lib/tntd-select/rc-select/Selector/Input.d.ts +27 -0
  821. package/lib/tntd-select/rc-select/Selector/Input.d.ts.map +1 -0
  822. package/lib/tntd-select/rc-select/Selector/Input.js +110 -0
  823. package/lib/tntd-select/rc-select/Selector/Input.js.map +1 -0
  824. package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts +17 -0
  825. package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts.map +1 -0
  826. package/lib/tntd-select/rc-select/Selector/MultipleSelector.js +193 -0
  827. package/lib/tntd-select/rc-select/Selector/MultipleSelector.js.map +1 -0
  828. package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts +9 -0
  829. package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts.map +1 -0
  830. package/lib/tntd-select/rc-select/Selector/SingleSelector.js +116 -0
  831. package/lib/tntd-select/rc-select/Selector/SingleSelector.js.map +1 -0
  832. package/lib/tntd-select/rc-select/Selector/index.d.ts +83 -0
  833. package/lib/tntd-select/rc-select/Selector/index.d.ts.map +1 -0
  834. package/lib/tntd-select/rc-select/Selector/index.js +159 -0
  835. package/lib/tntd-select/rc-select/Selector/index.js.map +1 -0
  836. package/lib/tntd-select/rc-select/TransBtn.d.ts +13 -0
  837. package/lib/tntd-select/rc-select/TransBtn.d.ts.map +1 -0
  838. package/lib/tntd-select/rc-select/TransBtn.js +48 -0
  839. package/lib/tntd-select/rc-select/TransBtn.js.map +1 -0
  840. package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts +9 -0
  841. package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts.map +1 -0
  842. package/lib/tntd-select/rc-select/hooks/useAllowClear.js +35 -0
  843. package/lib/tntd-select/rc-select/hooks/useAllowClear.js.map +1 -0
  844. package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts +14 -0
  845. package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts.map +1 -0
  846. package/lib/tntd-select/rc-select/hooks/useBaseProps.js +21 -0
  847. package/lib/tntd-select/rc-select/hooks/useBaseProps.js.map +1 -0
  848. package/lib/tntd-select/rc-select/hooks/useCache.d.ts +8 -0
  849. package/lib/tntd-select/rc-select/hooks/useCache.d.ts.map +1 -0
  850. package/lib/tntd-select/rc-select/hooks/useCache.js +49 -0
  851. package/lib/tntd-select/rc-select/hooks/useCache.js.map +1 -0
  852. package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts +6 -0
  853. package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts.map +1 -0
  854. package/lib/{tntd-form/_util/hooks/useFlexGapSupport.js → tntd-select/rc-select/hooks/useDelayReset.js} +25 -9
  855. package/lib/tntd-select/rc-select/hooks/useDelayReset.js.map +1 -0
  856. package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts +4 -0
  857. package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts.map +1 -0
  858. package/lib/tntd-select/rc-select/hooks/useFilterOptions.js +72 -0
  859. package/lib/tntd-select/rc-select/hooks/useFilterOptions.js.map +1 -0
  860. package/lib/tntd-select/rc-select/hooks/useId.d.ts +6 -0
  861. package/lib/tntd-select/rc-select/hooks/useId.d.ts.map +1 -0
  862. package/lib/{tntd-form/_util/hooks/useForceUpdate.js → tntd-select/rc-select/hooks/useId.js} +32 -8
  863. package/lib/tntd-select/rc-select/hooks/useId.js.map +1 -0
  864. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts +6 -0
  865. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts.map +1 -0
  866. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js +26 -0
  867. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js.map +1 -0
  868. package/lib/tntd-select/rc-select/hooks/useLock.d.ts +8 -0
  869. package/lib/tntd-select/rc-select/hooks/useLock.d.ts.map +1 -0
  870. package/lib/tntd-select/rc-select/hooks/useLock.js +39 -0
  871. package/lib/tntd-select/rc-select/hooks/useLock.js.map +1 -0
  872. package/lib/tntd-select/rc-select/hooks/useOptions.d.ts +12 -0
  873. package/lib/tntd-select/rc-select/hooks/useOptions.d.ts.map +1 -0
  874. package/lib/tntd-select/rc-select/hooks/useOptions.js +53 -0
  875. package/lib/tntd-select/rc-select/hooks/useOptions.js.map +1 -0
  876. package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts +6 -0
  877. package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts.map +1 -0
  878. package/lib/tntd-select/rc-select/hooks/useRefFunc.js +22 -0
  879. package/lib/tntd-select/rc-select/hooks/useRefFunc.js.map +1 -0
  880. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts +2 -0
  881. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts.map +1 -0
  882. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js +43 -0
  883. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +1 -0
  884. package/lib/tntd-select/rc-select/index.d.ts +11 -0
  885. package/lib/tntd-select/rc-select/index.d.ts.map +1 -0
  886. package/lib/tntd-select/rc-select/index.js +38 -0
  887. package/lib/tntd-select/rc-select/index.js.map +1 -0
  888. package/lib/tntd-select/rc-select/interface.d.ts +23 -0
  889. package/lib/tntd-select/rc-select/interface.d.ts.map +1 -0
  890. package/lib/tntd-select/rc-select/interface.js +5 -0
  891. package/lib/tntd-select/rc-select/interface.js.map +1 -0
  892. package/lib/tntd-select/rc-select/utils/commonUtil.d.ts +10 -0
  893. package/lib/tntd-select/rc-select/utils/commonUtil.d.ts.map +1 -0
  894. package/lib/tntd-select/rc-select/utils/commonUtil.js +43 -0
  895. package/lib/tntd-select/rc-select/utils/commonUtil.js.map +1 -0
  896. package/lib/tntd-select/rc-select/utils/keyUtil.d.ts +3 -0
  897. package/lib/tntd-select/rc-select/utils/keyUtil.d.ts.map +1 -0
  898. package/lib/tntd-select/rc-select/utils/keyUtil.js +16 -0
  899. package/lib/tntd-select/rc-select/utils/keyUtil.js.map +1 -0
  900. package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts +4 -0
  901. package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts.map +1 -0
  902. package/lib/tntd-select/rc-select/utils/legacyUtil.js +60 -0
  903. package/lib/tntd-select/rc-select/utils/legacyUtil.js.map +1 -0
  904. package/lib/tntd-select/rc-select/utils/platformUtil.d.ts +2 -0
  905. package/lib/tntd-select/rc-select/utils/platformUtil.d.ts.map +1 -0
  906. package/lib/tntd-select/rc-select/utils/platformUtil.js +10 -0
  907. package/lib/tntd-select/rc-select/utils/platformUtil.js.map +1 -0
  908. package/lib/tntd-select/rc-select/utils/valueUtil.d.ts +24 -0
  909. package/lib/tntd-select/rc-select/utils/valueUtil.d.ts.map +1 -0
  910. package/lib/tntd-select/rc-select/utils/valueUtil.js +132 -0
  911. package/lib/tntd-select/rc-select/utils/valueUtil.js.map +1 -0
  912. package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts +5 -0
  913. package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts.map +1 -0
  914. package/lib/tntd-select/rc-select/utils/warningPropsUtil.js +127 -0
  915. package/lib/tntd-select/rc-select/utils/warningPropsUtil.js.map +1 -0
  916. package/lib/tooltip/style/index.d.ts +3 -0
  917. package/lib/tooltip/style/index.d.ts.map +1 -0
  918. package/lib/tooltip/style/index.js +4 -0
  919. package/lib/tooltip/style/index.js.map +1 -0
  920. package/lib/tooltip/style/index.less +187 -0
  921. package/lib/transfer/style/customize.less +62 -0
  922. package/lib/transfer/style/index.d.ts +7 -0
  923. package/lib/transfer/style/index.d.ts.map +1 -0
  924. package/lib/transfer/style/index.js +8 -0
  925. package/lib/transfer/style/index.js.map +1 -0
  926. package/lib/transfer/style/index.less +191 -0
  927. package/lib/tree/style/directory.less +95 -0
  928. package/lib/tree/style/index.d.ts +3 -0
  929. package/lib/tree/style/index.d.ts.map +1 -0
  930. package/lib/tree/style/index.js +4 -0
  931. package/lib/tree/style/index.js.map +1 -0
  932. package/lib/tree/style/index.less +280 -0
  933. package/lib/tree/style/mixin.less +29 -0
  934. package/lib/tree-select/style/index.d.ts +5 -0
  935. package/lib/tree-select/style/index.d.ts.map +1 -0
  936. package/lib/tree-select/style/index.js +6 -0
  937. package/lib/tree-select/style/index.js.map +1 -0
  938. package/lib/tree-select/style/index.less +191 -0
  939. package/lib/typography/style/index.d.ts +5 -0
  940. package/lib/typography/style/index.d.ts.map +1 -0
  941. package/lib/typography/style/index.js +6 -0
  942. package/lib/typography/style/index.js.map +1 -0
  943. package/lib/typography/style/index.less +204 -0
  944. package/lib/upload/style/index.d.ts +5 -0
  945. package/lib/upload/style/index.d.ts.map +1 -0
  946. package/lib/upload/style/index.js +6 -0
  947. package/lib/upload/style/index.js.map +1 -0
  948. package/lib/upload/style/index.less +542 -0
  949. package/lib/utils/lang.d.ts.map +1 -1
  950. package/lib/utils/lang.js +5 -0
  951. package/lib/utils/lang.js.map +1 -1
  952. package/lib/version/style/index.d.ts +2 -0
  953. package/lib/version/style/index.d.ts.map +1 -0
  954. package/lib/version/style/index.js +3 -0
  955. package/lib/version/style/index.js.map +1 -0
  956. package/package.json +1 -1
  957. package/es/tntd-form/_util/context.js.map +0 -1
  958. package/es/tntd-form/_util/defaultRenderEmpty.js.map +0 -1
  959. package/es/tntd-form/_util/hooks/useFlexGapSupport.js +0 -9
  960. package/es/tntd-form/_util/hooks/useFlexGapSupport.js.map +0 -1
  961. package/es/tntd-form/_util/hooks/useForceUpdate.js +0 -5
  962. package/es/tntd-form/_util/hooks/useForceUpdate.js.map +0 -1
  963. package/es/tntd-form/_util/responsiveObserve.js +0 -59
  964. package/es/tntd-form/_util/responsiveObserve.js.map +0 -1
  965. package/es/tntd-form/_util/styleChecker.js +0 -26
  966. package/es/tntd-form/_util/styleChecker.js.map +0 -1
  967. package/es/tntd-form/grid/RowContext.js.map +0 -1
  968. package/es/tntd-form/grid/col.js.map +0 -1
  969. package/es/tntd-form/grid/hooks/useBreakpoint.js.map +0 -1
  970. package/es/tntd-form/grid/index.js.map +0 -1
  971. package/es/tntd-form/grid/row.js.map +0 -1
  972. package/es/tntd-form/grid/style/index.js.map +0 -1
  973. package/lib/tntd-form/_util/context.d.ts.map +0 -1
  974. package/lib/tntd-form/_util/context.js.map +0 -1
  975. package/lib/tntd-form/_util/defaultRenderEmpty.d.ts.map +0 -1
  976. package/lib/tntd-form/_util/defaultRenderEmpty.js.map +0 -1
  977. package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts +0 -3
  978. package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts.map +0 -1
  979. package/lib/tntd-form/_util/hooks/useFlexGapSupport.js.map +0 -1
  980. package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts +0 -3
  981. package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts.map +0 -1
  982. package/lib/tntd-form/_util/hooks/useForceUpdate.js.map +0 -1
  983. package/lib/tntd-form/_util/responsiveObserve.d.ts +0 -22
  984. package/lib/tntd-form/_util/responsiveObserve.d.ts.map +0 -1
  985. package/lib/tntd-form/_util/responsiveObserve.js +0 -73
  986. package/lib/tntd-form/_util/responsiveObserve.js.map +0 -1
  987. package/lib/tntd-form/_util/styleChecker.d.ts +0 -5
  988. package/lib/tntd-form/_util/styleChecker.d.ts.map +0 -1
  989. package/lib/tntd-form/_util/styleChecker.js +0 -42
  990. package/lib/tntd-form/_util/styleChecker.js.map +0 -1
  991. package/lib/tntd-form/grid/RowContext.d.ts.map +0 -1
  992. package/lib/tntd-form/grid/RowContext.js.map +0 -1
  993. package/lib/tntd-form/grid/col.d.ts.map +0 -1
  994. package/lib/tntd-form/grid/col.js.map +0 -1
  995. package/lib/tntd-form/grid/hooks/useBreakpoint.d.ts.map +0 -1
  996. package/lib/tntd-form/grid/hooks/useBreakpoint.js.map +0 -1
  997. package/lib/tntd-form/grid/index.d.ts.map +0 -1
  998. package/lib/tntd-form/grid/index.js.map +0 -1
  999. package/lib/tntd-form/grid/row.d.ts.map +0 -1
  1000. package/lib/tntd-form/grid/row.js.map +0 -1
  1001. package/lib/tntd-form/grid/style/index.d.ts.map +0 -1
  1002. package/lib/tntd-form/grid/style/index.js.map +0 -1
  1003. /package/es/{tntd-form/grid → affix}/style/index.js +0 -0
  1004. /package/es/{tntd-form/grid → grid-v4}/RowContext.js +0 -0
  1005. /package/es/{tntd-form/grid → grid-v4}/hooks/useBreakpoint.js +0 -0
  1006. /package/es/{tntd-form/grid → grid-v4}/index.js +0 -0
  1007. /package/es/{tntd-form → tntd-select}/_util/context.js +0 -0
  1008. /package/es/{tntd-form → tntd-select}/_util/defaultRenderEmpty.js +0 -0
  1009. /package/lib/{tntd-form/grid → affix}/style/index.d.ts +0 -0
  1010. /package/lib/{tntd-form/grid → affix}/style/index.js +0 -0
  1011. /package/lib/{tntd-form/grid → grid-v4}/RowContext.d.ts +0 -0
  1012. /package/lib/{tntd-form/grid → grid-v4}/RowContext.js +0 -0
  1013. /package/lib/{tntd-form/grid → grid-v4}/col.d.ts +0 -0
  1014. /package/lib/{tntd-form/grid → grid-v4}/col.js +0 -0
  1015. /package/lib/{tntd-form/grid → grid-v4}/hooks/useBreakpoint.d.ts +0 -0
  1016. /package/lib/{tntd-form/grid → grid-v4}/hooks/useBreakpoint.js +0 -0
  1017. /package/lib/{tntd-form/grid → grid-v4}/index.d.ts +0 -0
  1018. /package/lib/{tntd-form/grid → grid-v4}/index.js +0 -0
  1019. /package/lib/{tntd-form/grid → grid-v4}/row.d.ts +0 -0
  1020. /package/lib/{tntd-form → tntd-select}/_util/context.d.ts +0 -0
  1021. /package/lib/{tntd-form → tntd-select}/_util/context.js +0 -0
  1022. /package/lib/{tntd-form → tntd-select}/_util/defaultRenderEmpty.d.ts +0 -0
  1023. /package/lib/{tntd-form → tntd-select}/_util/defaultRenderEmpty.js +0 -0
@@ -0,0 +1,566 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ exports.isMultiple = isMultiple;
8
+ var _classnames = _interopRequireDefault(require("classnames"));
9
+ var _useLayoutEffect = _interopRequireDefault(require("rc-util/lib/hooks/useLayoutEffect"));
10
+ var _useMergedState3 = _interopRequireDefault(require("rc-util/lib/hooks/useMergedState"));
11
+ var _isMobile = _interopRequireDefault(require("rc-util/lib/isMobile"));
12
+ var _KeyCode = _interopRequireDefault(require("rc-util/lib/KeyCode"));
13
+ var _ref2 = require("rc-util/lib/ref");
14
+ var React = _interopRequireWildcard(require("react"));
15
+ var _useAllowClear2 = require("./hooks/useAllowClear");
16
+ var _useBaseProps = require("./hooks/useBaseProps");
17
+ var _useDelayReset3 = _interopRequireDefault(require("./hooks/useDelayReset"));
18
+ var _useLock3 = _interopRequireDefault(require("./hooks/useLock"));
19
+ var _useSelectTriggerControl = _interopRequireDefault(require("./hooks/useSelectTriggerControl"));
20
+ var _Selector = _interopRequireDefault(require("./Selector"));
21
+ var _SelectTrigger = _interopRequireDefault(require("./SelectTrigger"));
22
+ var _TransBtn = _interopRequireDefault(require("./TransBtn"));
23
+ var _valueUtil = require("./utils/valueUtil");
24
+ 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); }
25
+ 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; }
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+ 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); }
28
+ 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; }
29
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
30
+ 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); }
31
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
32
+ 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."); }
33
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
34
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
35
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
36
+ 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."); }
37
+ 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); }
38
+ 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; }
39
+ 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; } }
40
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
42
+ var t = {};
43
+ for (var p in s) {
44
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
45
+ }
46
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
47
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
48
+ }
49
+ return t;
50
+ };
51
+ var DEFAULT_OMIT_PROPS = ['value', 'onChange', 'removeIcon', 'placeholder', 'autoFocus', 'maxTagCount', 'maxTagTextLength', 'maxTagPlaceholder', 'choiceTransitionName', 'onInputKeyDown', 'onPopupScroll', 'tabIndex'];
52
+ function isMultiple(mode) {
53
+ return mode === 'tags' || mode === 'multiple';
54
+ }
55
+ var BaseSelect = React.forwardRef(function (props, ref) {
56
+ var _classNames2;
57
+ var _a;
58
+ var id = props.id,
59
+ prefixCls = props.prefixCls,
60
+ className = props.className,
61
+ showSearch = props.showSearch,
62
+ tagRender = props.tagRender,
63
+ direction = props.direction,
64
+ omitDomProps = props.omitDomProps,
65
+ displayValues = props.displayValues,
66
+ onDisplayValuesChange = props.onDisplayValuesChange,
67
+ emptyOptions = props.emptyOptions,
68
+ _props$notFoundConten = props.notFoundContent,
69
+ notFoundContent = _props$notFoundConten === void 0 ? 'Not Found' : _props$notFoundConten,
70
+ onClear = props.onClear,
71
+ mode = props.mode,
72
+ disabled = props.disabled,
73
+ loading = props.loading,
74
+ getInputElement = props.getInputElement,
75
+ getRawInputElement = props.getRawInputElement,
76
+ open = props.open,
77
+ defaultOpen = props.defaultOpen,
78
+ onDropdownVisibleChange = props.onDropdownVisibleChange,
79
+ activeValue = props.activeValue,
80
+ onActiveValueChange = props.onActiveValueChange,
81
+ activeDescendantId = props.activeDescendantId,
82
+ searchValue = props.searchValue,
83
+ autoClearSearchValue = props.autoClearSearchValue,
84
+ onSearch = props.onSearch,
85
+ onSearchSplit = props.onSearchSplit,
86
+ tokenSeparators = props.tokenSeparators,
87
+ allowClear = props.allowClear,
88
+ suffixIcon = props.suffixIcon,
89
+ clearIcon = props.clearIcon,
90
+ OptionList = props.OptionList,
91
+ animation = props.animation,
92
+ transitionName = props.transitionName,
93
+ dropdownStyle = props.dropdownStyle,
94
+ dropdownClassName = props.dropdownClassName,
95
+ dropdownMatchSelectWidth = props.dropdownMatchSelectWidth,
96
+ dropdownRender = props.dropdownRender,
97
+ dropdownAlign = props.dropdownAlign,
98
+ placement = props.placement,
99
+ builtinPlacements = props.builtinPlacements,
100
+ getPopupContainer = props.getPopupContainer,
101
+ _props$showAction = props.showAction,
102
+ showAction = _props$showAction === void 0 ? [] : _props$showAction,
103
+ onFocus = props.onFocus,
104
+ onBlur = props.onBlur,
105
+ onKeyUp = props.onKeyUp,
106
+ onKeyDown = props.onKeyDown,
107
+ onMouseDown = props.onMouseDown,
108
+ restProps = __rest(props, ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"]);
109
+ // ============================== MISC ==============================
110
+ var multiple = isMultiple(mode);
111
+ var mergedShowSearch = (showSearch !== undefined ? showSearch : multiple) || mode === 'combobox';
112
+ var domProps = Object.assign({}, restProps);
113
+ DEFAULT_OMIT_PROPS.forEach(function (propName) {
114
+ delete domProps[propName];
115
+ });
116
+ omitDomProps === null || omitDomProps === void 0 ? void 0 : omitDomProps.forEach(function (propName) {
117
+ delete domProps[propName];
118
+ });
119
+ // ============================= Mobile =============================
120
+ var _React$useState = React.useState(false),
121
+ _React$useState2 = _slicedToArray(_React$useState, 2),
122
+ mobile = _React$useState2[0],
123
+ setMobile = _React$useState2[1];
124
+ React.useEffect(function () {
125
+ // Only update on the client side
126
+ setMobile((0, _isMobile["default"])());
127
+ }, []);
128
+ // ============================== Refs ==============================
129
+ var containerRef = React.useRef(null);
130
+ var selectorDomRef = React.useRef(null);
131
+ var triggerRef = React.useRef(null);
132
+ var selectorRef = React.useRef(null);
133
+ var listRef = React.useRef(null);
134
+ var blurRef = React.useRef(false);
135
+ /** Used for component focused management */
136
+ var _useDelayReset = (0, _useDelayReset3["default"])(),
137
+ _useDelayReset2 = _slicedToArray(_useDelayReset, 3),
138
+ mockFocused = _useDelayReset2[0],
139
+ setMockFocused = _useDelayReset2[1],
140
+ cancelSetMockFocused = _useDelayReset2[2];
141
+ // =========================== Imperative ===========================
142
+ React.useImperativeHandle(ref, function () {
143
+ var _a, _b;
144
+ return {
145
+ focus: (_a = selectorRef.current) === null || _a === void 0 ? void 0 : _a.focus,
146
+ blur: (_b = selectorRef.current) === null || _b === void 0 ? void 0 : _b.blur,
147
+ scrollTo: function scrollTo(arg) {
148
+ var _a;
149
+ return (_a = listRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo(arg);
150
+ }
151
+ };
152
+ });
153
+ // ========================== Search Value ==========================
154
+ var mergedSearchValue = React.useMemo(function () {
155
+ var _a;
156
+ if (mode !== 'combobox') {
157
+ return searchValue;
158
+ }
159
+ var val = (_a = displayValues[0]) === null || _a === void 0 ? void 0 : _a.value;
160
+ return typeof val === 'string' || typeof val === 'number' ? String(val) : '';
161
+ }, [searchValue, mode, displayValues]);
162
+ // ========================== Custom Input ==========================
163
+ // Only works in `combobox`
164
+ var customizeInputElement = mode === 'combobox' && typeof getInputElement === 'function' && getInputElement() || null;
165
+ // Used for customize replacement for `rc-cascader`
166
+ var customizeRawInputElement = typeof getRawInputElement === 'function' && getRawInputElement();
167
+ var customizeRawInputRef = (0, _ref2.useComposeRef)(selectorDomRef, (_a = customizeRawInputElement === null || customizeRawInputElement === void 0 ? void 0 : customizeRawInputElement.props) === null || _a === void 0 ? void 0 : _a.ref);
168
+ // ============================== Open ==============================
169
+ // SSR not support Portal which means we need delay `open` for the first time render
170
+ var _React$useState3 = React.useState(false),
171
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
172
+ rendered = _React$useState4[0],
173
+ setRendered = _React$useState4[1];
174
+ (0, _useLayoutEffect["default"])(function () {
175
+ setRendered(true);
176
+ }, []);
177
+ var _useMergedState = (0, _useMergedState3["default"])(false, {
178
+ defaultValue: defaultOpen,
179
+ value: open
180
+ }),
181
+ _useMergedState2 = _slicedToArray(_useMergedState, 2),
182
+ innerOpen = _useMergedState2[0],
183
+ setInnerOpen = _useMergedState2[1];
184
+ var mergedOpen = rendered ? innerOpen : false;
185
+ // Not trigger `open` in `combobox` when `notFoundContent` is empty
186
+ var emptyListContent = !notFoundContent && emptyOptions;
187
+ if (disabled || emptyListContent && mergedOpen && mode === 'combobox') {
188
+ mergedOpen = false;
189
+ }
190
+ var triggerOpen = emptyListContent ? false : mergedOpen;
191
+ var onToggleOpen = React.useCallback(function (newOpen) {
192
+ var nextOpen = newOpen !== undefined ? newOpen : !mergedOpen;
193
+ if (!disabled) {
194
+ setInnerOpen(nextOpen);
195
+ if (mergedOpen !== nextOpen) {
196
+ onDropdownVisibleChange === null || onDropdownVisibleChange === void 0 ? void 0 : onDropdownVisibleChange(nextOpen);
197
+ }
198
+ }
199
+ }, [disabled, mergedOpen, setInnerOpen, onDropdownVisibleChange]);
200
+ // ============================= Search =============================
201
+ var tokenWithEnter = React.useMemo(function () {
202
+ return (tokenSeparators || []).some(function (tokenSeparator) {
203
+ return ['\n', '\r\n'].includes(tokenSeparator);
204
+ });
205
+ }, [tokenSeparators]);
206
+ var onInternalSearch = function onInternalSearch(searchText, fromTyping, isCompositing) {
207
+ var ret = true;
208
+ var newSearchText = searchText;
209
+ onActiveValueChange === null || onActiveValueChange === void 0 ? void 0 : onActiveValueChange(null);
210
+ // Check if match the `tokenSeparators`
211
+ var patchLabels = isCompositing ? null : (0, _valueUtil.getSeparatedContent)(searchText, tokenSeparators);
212
+ // Ignore combobox since it's not split-able
213
+ if (mode !== 'combobox' && patchLabels) {
214
+ newSearchText = '';
215
+ onSearchSplit === null || onSearchSplit === void 0 ? void 0 : onSearchSplit(patchLabels);
216
+ // Should close when paste finish
217
+ onToggleOpen(false);
218
+ // Tell Selector that break next actions
219
+ ret = false;
220
+ }
221
+ if (onSearch && mergedSearchValue !== newSearchText) {
222
+ onSearch(newSearchText, {
223
+ source: fromTyping ? 'typing' : 'effect'
224
+ });
225
+ }
226
+ return ret;
227
+ };
228
+ // Only triggered when menu is closed & mode is tags
229
+ // If menu is open, OptionList will take charge
230
+ // If mode isn't tags, press enter is not meaningful when you can't see any option
231
+ var onInternalSearchSubmit = function onInternalSearchSubmit(searchText) {
232
+ // prevent empty tags from appearing when you click the Enter button
233
+ if (!searchText || !searchText.trim()) {
234
+ return;
235
+ }
236
+ onSearch(searchText, {
237
+ source: 'submit'
238
+ });
239
+ };
240
+ // Close will clean up single mode search text
241
+ React.useEffect(function () {
242
+ if (!mergedOpen && !multiple && mode !== 'combobox') {
243
+ onInternalSearch('', false, false);
244
+ }
245
+ }, [mergedOpen]);
246
+ // ============================ Disabled ============================
247
+ // Close dropdown & remove focus state when disabled change
248
+ React.useEffect(function () {
249
+ if (innerOpen && disabled) {
250
+ setInnerOpen(false);
251
+ }
252
+ // After onBlur is triggered, the focused does not need to be reset
253
+ if (disabled && !blurRef.current) {
254
+ setMockFocused(false);
255
+ }
256
+ }, [disabled]);
257
+ // ============================ Keyboard ============================
258
+ /**
259
+ * We record input value here to check if can press to clean up by backspace
260
+ * - null: Key is not down, this is reset by key up
261
+ * - true: Search text is empty when first time backspace down
262
+ * - false: Search text is not empty when first time backspace down
263
+ */
264
+ var _useLock = (0, _useLock3["default"])(),
265
+ _useLock2 = _slicedToArray(_useLock, 2),
266
+ getClearLock = _useLock2[0],
267
+ setClearLock = _useLock2[1];
268
+ // KeyDown
269
+ var onInternalKeyDown = function onInternalKeyDown(event) {
270
+ var clearLock = getClearLock();
271
+ var which = event.which;
272
+ if (which === _KeyCode["default"].ENTER) {
273
+ // Do not submit form when type in the input
274
+ if (mode !== 'combobox') {
275
+ event.preventDefault();
276
+ }
277
+ // We only manage open state here, close logic should handle by list component
278
+ if (!mergedOpen) {
279
+ onToggleOpen(true);
280
+ }
281
+ }
282
+ setClearLock(!!mergedSearchValue);
283
+ // Remove value by `backspace`
284
+ if (which === _KeyCode["default"].BACKSPACE && !clearLock && multiple && !mergedSearchValue && displayValues.length) {
285
+ var cloneDisplayValues = _toConsumableArray(displayValues);
286
+ var removedDisplayValue = null;
287
+ for (var i = cloneDisplayValues.length - 1; i >= 0; i -= 1) {
288
+ var current = cloneDisplayValues[i];
289
+ if (!current.disabled) {
290
+ cloneDisplayValues.splice(i, 1);
291
+ removedDisplayValue = current;
292
+ break;
293
+ }
294
+ }
295
+ if (removedDisplayValue) {
296
+ onDisplayValuesChange(cloneDisplayValues, {
297
+ type: 'remove',
298
+ values: [removedDisplayValue]
299
+ });
300
+ }
301
+ }
302
+ for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
303
+ rest[_key - 1] = arguments[_key];
304
+ }
305
+ if (mergedOpen && listRef.current) {
306
+ var _listRef$current;
307
+ (_listRef$current = listRef.current).onKeyDown.apply(_listRef$current, [event].concat(rest));
308
+ }
309
+ onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown.apply(void 0, [event].concat(rest));
310
+ };
311
+ // KeyUp
312
+ var onInternalKeyUp = function onInternalKeyUp(event) {
313
+ for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
314
+ rest[_key2 - 1] = arguments[_key2];
315
+ }
316
+ if (mergedOpen && listRef.current) {
317
+ var _listRef$current2;
318
+ (_listRef$current2 = listRef.current).onKeyUp.apply(_listRef$current2, [event].concat(rest));
319
+ }
320
+ onKeyUp === null || onKeyUp === void 0 ? void 0 : onKeyUp.apply(void 0, [event].concat(rest));
321
+ };
322
+ // ============================ Selector ============================
323
+ var onSelectorRemove = function onSelectorRemove(val) {
324
+ var newValues = displayValues.filter(function (i) {
325
+ return i !== val;
326
+ });
327
+ onDisplayValuesChange(newValues, {
328
+ type: 'remove',
329
+ values: [val]
330
+ });
331
+ };
332
+ // ========================== Focus / Blur ==========================
333
+ /** Record real focus status */
334
+ var focusRef = React.useRef(false);
335
+ var onContainerFocus = function onContainerFocus() {
336
+ setMockFocused(true);
337
+ if (!disabled) {
338
+ if (onFocus && !focusRef.current) {
339
+ onFocus.apply(void 0, arguments);
340
+ }
341
+ // `showAction` should handle `focus` if set
342
+ if (showAction.includes('focus')) {
343
+ onToggleOpen(true);
344
+ }
345
+ }
346
+ focusRef.current = true;
347
+ };
348
+ var onContainerBlur = function onContainerBlur() {
349
+ blurRef.current = true;
350
+ setMockFocused(false, function () {
351
+ focusRef.current = false;
352
+ blurRef.current = false;
353
+ onToggleOpen(false);
354
+ });
355
+ if (disabled) {
356
+ return;
357
+ }
358
+ if (mergedSearchValue) {
359
+ // `tags` mode should move `searchValue` into values
360
+ if (mode === 'tags') {
361
+ onSearch(mergedSearchValue, {
362
+ source: 'submit'
363
+ });
364
+ } else if (mode === 'multiple') {
365
+ // `multiple` mode only clean the search value but not trigger event
366
+ onSearch('', {
367
+ source: 'blur'
368
+ });
369
+ }
370
+ }
371
+ if (onBlur) {
372
+ onBlur.apply(void 0, arguments);
373
+ }
374
+ };
375
+ // Give focus back of Select
376
+ var activeTimeoutIds = [];
377
+ React.useEffect(function () {
378
+ return function () {
379
+ activeTimeoutIds.forEach(function (timeoutId) {
380
+ return clearTimeout(timeoutId);
381
+ });
382
+ activeTimeoutIds.splice(0, activeTimeoutIds.length);
383
+ };
384
+ }, []);
385
+ var onInternalMouseDown = function onInternalMouseDown(event) {
386
+ var _a;
387
+ var target = event.target;
388
+ var popupElement = (_a = triggerRef.current) === null || _a === void 0 ? void 0 : _a.getPopupElement();
389
+ // We should give focus back to selector if clicked item is not focusable
390
+ if (popupElement && popupElement.contains(target)) {
391
+ var timeoutId = setTimeout(function () {
392
+ var _a;
393
+ var index = activeTimeoutIds.indexOf(timeoutId);
394
+ if (index !== -1) {
395
+ activeTimeoutIds.splice(index, 1);
396
+ }
397
+ cancelSetMockFocused();
398
+ if (!mobile && !popupElement.contains(document.activeElement)) {
399
+ (_a = selectorRef.current) === null || _a === void 0 ? void 0 : _a.focus();
400
+ }
401
+ });
402
+ activeTimeoutIds.push(timeoutId);
403
+ }
404
+ for (var _len3 = arguments.length, restArgs = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
405
+ restArgs[_key3 - 1] = arguments[_key3];
406
+ }
407
+ onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown.apply(void 0, [event].concat(restArgs));
408
+ };
409
+ // ============================ Dropdown ============================
410
+ var _React$useState5 = React.useState({}),
411
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
412
+ forceUpdate = _React$useState6[1];
413
+ // We need force update here since popup dom is render async
414
+ function onPopupMouseEnter() {
415
+ forceUpdate({});
416
+ }
417
+ // Used for raw custom input trigger
418
+ var onTriggerVisibleChange;
419
+ if (customizeRawInputElement) {
420
+ onTriggerVisibleChange = function onTriggerVisibleChange(newOpen) {
421
+ onToggleOpen(newOpen);
422
+ };
423
+ }
424
+ // Close when click on non-select element
425
+ (0, _useSelectTriggerControl["default"])(function () {
426
+ var _a;
427
+ return [containerRef.current, (_a = triggerRef.current) === null || _a === void 0 ? void 0 : _a.getPopupElement()];
428
+ }, triggerOpen, onToggleOpen, !!customizeRawInputElement);
429
+ // ============================ Context =============================
430
+ var baseSelectContext = React.useMemo(function () {
431
+ return Object.assign(Object.assign({}, props), {
432
+ notFoundContent: notFoundContent,
433
+ open: mergedOpen,
434
+ triggerOpen: triggerOpen,
435
+ id: id,
436
+ showSearch: mergedShowSearch,
437
+ multiple: multiple,
438
+ toggleOpen: onToggleOpen
439
+ });
440
+ }, [props, notFoundContent, triggerOpen, mergedOpen, id, mergedShowSearch, multiple, onToggleOpen]);
441
+ // ==================================================================
442
+ // == Render ==
443
+ // ==================================================================
444
+ // ============================= Arrow ==============================
445
+ var showSuffixIcon = !!suffixIcon || loading;
446
+ var arrowNode;
447
+ if (showSuffixIcon) {
448
+ arrowNode = React.createElement(_TransBtn["default"], {
449
+ className: (0, _classnames["default"])("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
450
+ customizeIcon: suffixIcon,
451
+ customizeIconProps: {
452
+ loading: loading,
453
+ searchValue: mergedSearchValue,
454
+ open: mergedOpen,
455
+ focused: mockFocused,
456
+ showSearch: mergedShowSearch
457
+ }
458
+ });
459
+ }
460
+ // ============================= Clear ==============================
461
+ var onClearMouseDown = function onClearMouseDown() {
462
+ var _a;
463
+ onClear === null || onClear === void 0 ? void 0 : onClear();
464
+ (_a = selectorRef.current) === null || _a === void 0 ? void 0 : _a.focus();
465
+ onDisplayValuesChange([], {
466
+ type: 'clear',
467
+ values: displayValues
468
+ });
469
+ onInternalSearch('', false, false);
470
+ };
471
+ var _useAllowClear = (0, _useAllowClear2.useAllowClear)(prefixCls, onClearMouseDown, displayValues, allowClear, clearIcon, disabled, mergedSearchValue, mode),
472
+ mergedAllowClear = _useAllowClear.allowClear,
473
+ clearNode = _useAllowClear.clearIcon;
474
+ // =========================== OptionList ===========================
475
+ var optionList = React.createElement(OptionList, {
476
+ ref: listRef
477
+ });
478
+ // ============================= Select =============================
479
+ var mergedClassName = (0, _classnames["default"])(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), _defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), multiple), _defineProperty(_classNames2, "".concat(prefixCls, "-single"), !multiple), _defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), showSuffixIcon), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), _defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), _defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
480
+ // >>> Selector
481
+ var selectorNode = React.createElement(_SelectTrigger["default"], {
482
+ ref: triggerRef,
483
+ disabled: disabled,
484
+ prefixCls: prefixCls,
485
+ visible: triggerOpen,
486
+ popupElement: optionList,
487
+ animation: animation,
488
+ transitionName: transitionName,
489
+ dropdownStyle: dropdownStyle,
490
+ dropdownClassName: dropdownClassName,
491
+ direction: direction,
492
+ dropdownMatchSelectWidth: dropdownMatchSelectWidth,
493
+ dropdownRender: dropdownRender,
494
+ dropdownAlign: dropdownAlign,
495
+ placement: placement,
496
+ builtinPlacements: builtinPlacements,
497
+ getPopupContainer: getPopupContainer,
498
+ empty: emptyOptions,
499
+ getTriggerDOMNode: function getTriggerDOMNode() {
500
+ return selectorDomRef.current;
501
+ },
502
+ onPopupVisibleChange: onTriggerVisibleChange,
503
+ onPopupMouseEnter: onPopupMouseEnter
504
+ }, customizeRawInputElement ? React.cloneElement(customizeRawInputElement, {
505
+ ref: customizeRawInputRef
506
+ }) : React.createElement(_Selector["default"], Object.assign({}, props, {
507
+ domRef: selectorDomRef,
508
+ prefixCls: prefixCls,
509
+ inputElement: customizeInputElement,
510
+ ref: selectorRef,
511
+ id: id,
512
+ showSearch: mergedShowSearch,
513
+ autoClearSearchValue: autoClearSearchValue,
514
+ mode: mode,
515
+ activeDescendantId: activeDescendantId,
516
+ tagRender: tagRender,
517
+ values: displayValues,
518
+ open: mergedOpen,
519
+ onToggleOpen: onToggleOpen,
520
+ activeValue: activeValue,
521
+ searchValue: mergedSearchValue,
522
+ onSearch: onInternalSearch,
523
+ onSearchSubmit: onInternalSearchSubmit,
524
+ onRemove: onSelectorRemove,
525
+ tokenWithEnter: tokenWithEnter
526
+ })));
527
+ // >>> Render
528
+ var renderNode;
529
+ // Render raw
530
+ if (customizeRawInputElement) {
531
+ renderNode = selectorNode;
532
+ } else {
533
+ renderNode = React.createElement("div", Object.assign({
534
+ className: mergedClassName
535
+ }, domProps, {
536
+ ref: containerRef,
537
+ onMouseDown: onInternalMouseDown,
538
+ onKeyDown: onInternalKeyDown,
539
+ onKeyUp: onInternalKeyUp,
540
+ onFocus: onContainerFocus,
541
+ onBlur: onContainerBlur
542
+ }), mockFocused && !mergedOpen && React.createElement("span", {
543
+ style: {
544
+ width: 0,
545
+ height: 0,
546
+ position: 'absolute',
547
+ overflow: 'hidden',
548
+ opacity: 0
549
+ },
550
+ "aria-live": "polite"
551
+ }, "".concat(displayValues.map(function (_ref) {
552
+ var label = _ref.label,
553
+ value = _ref.value;
554
+ return ['number', 'string'].includes(_typeof(label)) ? label : value;
555
+ }).join(', '))), selectorNode, arrowNode, mergedAllowClear && clearNode);
556
+ }
557
+ return React.createElement(_useBaseProps.BaseSelectContext.Provider, {
558
+ value: baseSelectContext
559
+ }, renderNode);
560
+ });
561
+ // Set display name for dev
562
+ if (process.env.NODE_ENV !== 'production') {
563
+ BaseSelect.displayName = 'BaseSelect';
564
+ }
565
+ var _default = BaseSelect;
566
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseSelect.js","sourceRoot":"","sources":["../../../src/tntd-select/rc-select/BaseSelect.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4DAAoC;AACpC,wFAAgE;AAChE,sFAA8D;AAC9D,oEAA4C;AAC5C,kEAA0C;AAC1C,yCAAgD;AAEhD,6CAA+B;AAC/B,yDAAsD;AACtD,uDAAyD;AACzD,0EAAkD;AAClD,8DAAsC;AACtC,8FAAsE;AAWtE,0DAAkC;AAElC,oEAA4C;AAC5C,0DAAkC;AAClC,iDAAwD;AAYxD,MAAM,kBAAkB,GAAG;IACzB,OAAO;IACP,UAAU;IACV,YAAY;IACZ,aAAa;IACb,WAAW;IACX,aAAa;IACb,kBAAkB;IAClB,mBAAmB;IACnB,sBAAsB;IACtB,gBAAgB;IAChB,eAAe;IACf,UAAU;CACF,CAAC;AA0JX,SAAgB,UAAU,CAAC,IAAU;IACnC,OAAO,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,UAAU,CAAC;AAChD,CAAC;AAFD,gCAEC;AAED,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAsB,EAAE,GAA6B,EAAE,EAAE;;IAC5F,MAAM,EACJ,EAAE,EACF,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,YAAY;IAEZ,QAAQ;IACR,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,eAAe,GAAG,WAAW,EAC7B,OAAO;IAEP,OAAO;IACP,IAAI;IAEJ,SAAS;IACT,QAAQ,EACR,OAAO;IAEP,kBAAkB;IAClB,eAAe,EACf,kBAAk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AwB,EAAE;QAC5B,UAAU,GAAG,YAAY,CAAC;KAC3B;SAAM;QACL,UAAU,GAAG,CACX,2CACE,SAAS,EAAE,eAAe,IACtB,QAAQ,IACZ,GAAG,EAAE,YAAY,EACjB,WAAW,EAAE,mBAAmB,EAChC,SAAS,EAAE,iBAAiB,EAC5B,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,eAAe;YAEtB,WAAW,IAAI,CAAC,UAAU,IAAI,CAC7B,8BACE,KAAK,EAAE;oBACL,KAAK,EAAE,CAAC;oBACR,MAAM,EAAE,CAAC;oBACT,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,QAAQ;oBAClB,OAAO,EAAE,CAAC;iBACX,eACS,QAAQ,IAGjB,GAAG,aAAa;iBACd,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CACxB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAC5D;iBACA,IAAI,CAAC,IAAI,CAAC,EAAE,CACV,CACR;YACA,YAAY;YACZ,SAAS;YACT,gBAAgB,IAAI,SAAS,CAC1B,CACP,CAAC;KACH;IAED,OAAO,CACL,oBAAC,gCAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,iBAAiB,IAAG,UAAU,CAA8B,CAChG,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,2BAA2B;AAC3B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;CACvC;AAED,kBAAe,UAAU,CAAC","sourcesContent":["import type { AlignType, BuildInPlacements } from '@rc-component/trigger/lib/interface';\nimport classNames from 'classnames';\nimport useLayoutEffect from 'rc-util/lib/hooks/useLayoutEffect';\nimport useMergedState from 'rc-util/lib/hooks/useMergedState';\nimport isMobile from 'rc-util/lib/isMobile';\nimport KeyCode from 'rc-util/lib/KeyCode';\nimport { useComposeRef } from 'rc-util/lib/ref';\nimport type { ScrollConfig, ScrollTo } from 'rc-virtual-list/lib/List';\nimport * as React from 'react';\nimport { useAllowClear } from './hooks/useAllowClear';\nimport { BaseSelectContext } from './hooks/useBaseProps';\nimport useDelayReset from './hooks/useDelayReset';\nimport useLock from './hooks/useLock';\nimport useSelectTriggerControl from './hooks/useSelectTriggerControl';\nimport type {\n DisplayInfoType,\n DisplayValueType,\n Mode,\n Placement,\n RawValueType,\n RenderDOMFunc,\n RenderNode,\n} from './interface';\nimport type { RefSelectorProps } from './Selector';\nimport Selector from './Selector';\nimport type { RefTriggerProps } from './SelectTrigger';\nimport SelectTrigger from './SelectTrigger';\nimport TransBtn from './TransBtn';\nimport { getSeparatedContent } from './utils/valueUtil';\n\nexport type {\n DisplayInfoType,\n DisplayValueType,\n Mode,\n Placement,\n RenderDOMFunc,\n RenderNode,\n RawValueType,\n};\n\nconst DEFAULT_OMIT_PROPS = [\n 'value',\n 'onChange',\n 'removeIcon',\n 'placeholder',\n 'autoFocus',\n 'maxTagCount',\n 'maxTagTextLength',\n 'maxTagPlaceholder',\n 'choiceTransitionName',\n 'onInputKeyDown',\n 'onPopupScroll',\n 'tabIndex',\n] as const;\nexport interface RefOptionListProps {\n onKeyDown: React.KeyboardEventHandler;\n onKeyUp: React.KeyboardEventHandler;\n scrollTo?: (args: number | ScrollConfig) => void;\n}\n\nexport type CustomTagProps = {\n label: React.ReactNode;\n value: any;\n disabled: boolean;\n onClose: (event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n closable: boolean;\n};\n\nexport interface BaseSelectRef {\n focus: () => void;\n blur: () => void;\n scrollTo: ScrollTo;\n}\n\nexport interface BaseSelectPrivateProps {\n // >>> MISC\n id: string;\n prefixCls: string;\n omitDomProps?: string[];\n\n // >>> Value\n displayValues: DisplayValueType[];\n onDisplayValuesChange: (\n values: DisplayValueType[],\n info: {\n type: DisplayInfoType;\n values: DisplayValueType[];\n },\n ) => void;\n\n // >>> Active\n /** Current dropdown list active item string value */\n activeValue?: string;\n /** Link search input with target element */\n activeDescendantId?: string;\n onActiveValueChange?: (value: string | null) => void;\n\n // >>> Search\n searchValue: string;\n autoClearSearchValue?: boolean;\n /** Trigger onSearch, return false to prevent trigger open event */\n onSearch: (\n searchValue: string,\n info: {\n source:\n | 'typing' //User typing\n | 'effect' // Code logic trigger\n | 'submit' // tag mode only\n | 'blur'; // Not trigger event\n },\n ) => void;\n /** Trigger when search text match the `tokenSeparators`. Will provide split content */\n onSearchSplit?: (words: string[]) => void;\n\n // >>> Dropdown\n OptionList: React.ForwardRefExoticComponent<\n React.PropsWithoutRef<any> & React.RefAttributes<RefOptionListProps>\n >;\n /** Tell if provided `options` is empty */\n emptyOptions: boolean;\n}\n\nexport type BaseSelectPropsWithoutPrivate = Omit<BaseSelectProps, keyof BaseSelectPrivateProps>;\n\nexport interface BaseSelectProps extends BaseSelectPrivateProps, React.AriaAttributes {\n className?: string;\n style?: React.CSSProperties;\n title?: string;\n showSearch?: boolean;\n tagRender?: (props: CustomTagProps) => React.ReactElement;\n direction?: 'ltr' | 'rtl';\n maxLength?: number;\n\n // MISC\n tabIndex?: number;\n autoFocus?: boolean;\n notFoundContent?: React.ReactNode;\n placeholder?: React.ReactNode;\n onClear?: () => void;\n\n choiceTransitionName?: string;\n\n // >>> Mode\n mode?: Mode;\n\n // >>> Status\n disabled?: boolean;\n loading?: boolean;\n\n // >>> Open\n open?: boolean;\n defaultOpen?: boolean;\n onDropdownVisibleChange?: (open: boolean) => void;\n\n // >>> Customize Input\n /** @private Internal usage. Do not use in your production. */\n getInputElement?: () => JSX.Element;\n /** @private Internal usage. Do not use in your production. */\n getRawInputElement?: () => JSX.Element;\n\n // >>> Selector\n maxTagTextLength?: number;\n maxTagCount?: number | 'responsive';\n maxTagPlaceholder?: React.ReactNode | ((omittedValues: DisplayValueType[]) => React.ReactNode);\n\n // >>> Search\n tokenSeparators?: string[];\n\n // >>> Icons\n allowClear?: boolean | { clearIcon?: RenderNode };\n suffixIcon?: RenderNode;\n /**\n * Clear all icon\n * @deprecated Please use `allowClear` instead\n **/\n clearIcon?: RenderNode;\n /** Selector remove icon */\n removeIcon?: RenderNode;\n\n // >>> Dropdown\n animation?: string;\n transitionName?: string;\n dropdownStyle?: React.CSSProperties;\n dropdownClassName?: string;\n dropdownMatchSelectWidth?: boolean | number;\n dropdownRender?: (menu: React.ReactElement) => React.ReactElement;\n dropdownAlign?: AlignType;\n placement?: Placement;\n builtinPlacements?: BuildInPlacements;\n getPopupContainer?: RenderDOMFunc;\n\n // >>> Focus\n showAction?: ('focus' | 'click')[];\n onBlur?: React.FocusEventHandler<HTMLElement>;\n onFocus?: React.FocusEventHandler<HTMLElement>;\n\n // >>> Rest Events\n onKeyUp?: React.KeyboardEventHandler<HTMLDivElement>;\n onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;\n onMouseDown?: React.MouseEventHandler<HTMLDivElement>;\n onPopupScroll?: React.UIEventHandler<HTMLDivElement>;\n onInputKeyDown?: React.KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;\n onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;\n onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;\n onClick?: React.MouseEventHandler<HTMLDivElement>;\n}\n\nexport function isMultiple(mode: Mode) {\n return mode === 'tags' || mode === 'multiple';\n}\n\nconst BaseSelect = React.forwardRef((props: BaseSelectProps, ref: React.Ref<BaseSelectRef>) => {\n const {\n id,\n prefixCls,\n className,\n showSearch,\n tagRender,\n direction,\n omitDomProps,\n\n // Value\n displayValues,\n onDisplayValuesChange,\n emptyOptions,\n notFoundContent = 'Not Found',\n onClear,\n\n // Mode\n mode,\n\n // Status\n disabled,\n loading,\n\n // Customize Input\n getInputElement,\n getRawInputElement,\n\n // Open\n open,\n defaultOpen,\n onDropdownVisibleChange,\n\n // Active\n activeValue,\n onActiveValueChange,\n activeDescendantId,\n\n // Search\n searchValue,\n autoClearSearchValue,\n onSearch,\n onSearchSplit,\n tokenSeparators,\n\n // Icons\n allowClear,\n suffixIcon,\n clearIcon,\n\n // Dropdown\n OptionList,\n animation,\n transitionName,\n dropdownStyle,\n dropdownClassName,\n dropdownMatchSelectWidth,\n dropdownRender,\n dropdownAlign,\n placement,\n builtinPlacements,\n getPopupContainer,\n\n // Focus\n showAction = [],\n onFocus,\n onBlur,\n\n // Rest Events\n onKeyUp,\n onKeyDown,\n onMouseDown,\n\n // Rest Props\n ...restProps\n } = props;\n\n // ============================== MISC ==============================\n const multiple = isMultiple(mode);\n const mergedShowSearch =\n (showSearch !== undefined ? showSearch : multiple) || mode === 'combobox';\n\n const domProps = {\n ...restProps,\n } as Omit<keyof typeof restProps, (typeof DEFAULT_OMIT_PROPS)[number]>;\n\n DEFAULT_OMIT_PROPS.forEach((propName) => {\n delete domProps[propName];\n });\n\n omitDomProps?.forEach((propName) => {\n delete domProps[propName];\n });\n\n // ============================= Mobile =============================\n const [mobile, setMobile] = React.useState(false);\n React.useEffect(() => {\n // Only update on the client side\n setMobile(isMobile());\n }, []);\n\n // ============================== Refs ==============================\n const containerRef = React.useRef<HTMLDivElement>(null);\n const selectorDomRef = React.useRef<HTMLDivElement>(null);\n const triggerRef = React.useRef<RefTriggerProps>(null);\n const selectorRef = React.useRef<RefSelectorProps>(null);\n const listRef = React.useRef<RefOptionListProps>(null);\n const blurRef = React.useRef<boolean>(false);\n\n /** Used for component focused management */\n const [mockFocused, setMockFocused, cancelSetMockFocused] = useDelayReset();\n\n // =========================== Imperative ===========================\n React.useImperativeHandle(ref, () => ({\n focus: selectorRef.current?.focus,\n blur: selectorRef.current?.blur,\n scrollTo: (arg) => listRef.current?.scrollTo(arg),\n }));\n\n // ========================== Search Value ==========================\n const mergedSearchValue = React.useMemo(() => {\n if (mode !== 'combobox') {\n return searchValue;\n }\n\n const val = displayValues[0]?.value;\n\n return typeof val === 'string' || typeof val === 'number' ? String(val) : '';\n }, [searchValue, mode, displayValues]);\n\n // ========================== Custom Input ==========================\n // Only works in `combobox`\n const customizeInputElement: React.ReactElement =\n (mode === 'combobox' && typeof getInputElement === 'function' && getInputElement()) || null;\n\n // Used for customize replacement for `rc-cascader`\n const customizeRawInputElement: React.ReactElement =\n typeof getRawInputElement === 'function' && getRawInputElement();\n\n const customizeRawInputRef = useComposeRef<HTMLElement>(\n selectorDomRef,\n customizeRawInputElement?.props?.ref,\n );\n\n // ============================== Open ==============================\n // SSR not support Portal which means we need delay `open` for the first time render\n const [rendered, setRendered] = React.useState(false);\n useLayoutEffect(() => {\n setRendered(true);\n }, []);\n\n const [innerOpen, setInnerOpen] = useMergedState<boolean>(false, {\n defaultValue: defaultOpen,\n value: open,\n });\n\n let mergedOpen = rendered ? innerOpen : false;\n\n // Not trigger `open` in `combobox` when `notFoundContent` is empty\n const emptyListContent = !notFoundContent && emptyOptions;\n if (disabled || (emptyListContent && mergedOpen && mode === 'combobox')) {\n mergedOpen = false;\n }\n const triggerOpen = emptyListContent ? false : mergedOpen;\n\n const onToggleOpen = React.useCallback(\n (newOpen?: boolean) => {\n const nextOpen = newOpen !== undefined ? newOpen : !mergedOpen;\n\n if (!disabled) {\n setInnerOpen(nextOpen);\n\n if (mergedOpen !== nextOpen) {\n onDropdownVisibleChange?.(nextOpen);\n }\n }\n },\n [disabled, mergedOpen, setInnerOpen, onDropdownVisibleChange],\n );\n\n // ============================= Search =============================\n const tokenWithEnter = React.useMemo(\n () => (tokenSeparators || []).some((tokenSeparator) => ['\\n', '\\r\\n'].includes(tokenSeparator)),\n [tokenSeparators],\n );\n\n const onInternalSearch = (searchText: string, fromTyping: boolean, isCompositing: boolean) => {\n let ret = true;\n let newSearchText = searchText;\n onActiveValueChange?.(null);\n\n // Check if match the `tokenSeparators`\n const patchLabels: string[] = isCompositing\n ? null\n : getSeparatedContent(searchText, tokenSeparators);\n\n // Ignore combobox since it's not split-able\n if (mode !== 'combobox' && patchLabels) {\n newSearchText = '';\n\n onSearchSplit?.(patchLabels);\n\n // Should close when paste finish\n onToggleOpen(false);\n\n // Tell Selector that break next actions\n ret = false;\n }\n\n if (onSearch && mergedSearchValue !== newSearchText) {\n onSearch(newSearchText, {\n source: fromTyping ? 'typing' : 'effect',\n });\n }\n\n return ret;\n };\n\n // Only triggered when menu is closed & mode is tags\n // If menu is open, OptionList will take charge\n // If mode isn't tags, press enter is not meaningful when you can't see any option\n const onInternalSearchSubmit = (searchText: string) => {\n // prevent empty tags from appearing when you click the Enter button\n if (!searchText || !searchText.trim()) {\n return;\n }\n onSearch(searchText, { source: 'submit' });\n };\n\n // Close will clean up single mode search text\n React.useEffect(() => {\n if (!mergedOpen && !multiple && mode !== 'combobox') {\n onInternalSearch('', false, false);\n }\n }, [mergedOpen]);\n\n // ============================ Disabled ============================\n // Close dropdown & remove focus state when disabled change\n React.useEffect(() => {\n if (innerOpen && disabled) {\n setInnerOpen(false);\n }\n\n // After onBlur is triggered, the focused does not need to be reset\n if (disabled && !blurRef.current) {\n setMockFocused(false);\n }\n }, [disabled]);\n\n // ============================ Keyboard ============================\n /**\n * We record input value here to check if can press to clean up by backspace\n * - null: Key is not down, this is reset by key up\n * - true: Search text is empty when first time backspace down\n * - false: Search text is not empty when first time backspace down\n */\n const [getClearLock, setClearLock] = useLock();\n\n // KeyDown\n const onInternalKeyDown: React.KeyboardEventHandler<HTMLDivElement> = (event, ...rest) => {\n const clearLock = getClearLock();\n const { which } = event;\n\n if (which === KeyCode.ENTER) {\n // Do not submit form when type in the input\n if (mode !== 'combobox') {\n event.preventDefault();\n }\n\n // We only manage open state here, close logic should handle by list component\n if (!mergedOpen) {\n onToggleOpen(true);\n }\n }\n\n setClearLock(!!mergedSearchValue);\n\n // Remove value by `backspace`\n if (\n which === KeyCode.BACKSPACE &&\n !clearLock &&\n multiple &&\n !mergedSearchValue &&\n displayValues.length\n ) {\n const cloneDisplayValues = [...displayValues];\n let removedDisplayValue = null;\n\n for (let i = cloneDisplayValues.length - 1; i >= 0; i -= 1) {\n const current = cloneDisplayValues[i];\n\n if (!current.disabled) {\n cloneDisplayValues.splice(i, 1);\n removedDisplayValue = current;\n break;\n }\n }\n\n if (removedDisplayValue) {\n onDisplayValuesChange(cloneDisplayValues, {\n type: 'remove',\n values: [removedDisplayValue],\n });\n }\n }\n\n if (mergedOpen && listRef.current) {\n listRef.current.onKeyDown(event, ...rest);\n }\n\n onKeyDown?.(event, ...rest);\n };\n\n // KeyUp\n const onInternalKeyUp: React.KeyboardEventHandler<HTMLDivElement> = (event, ...rest) => {\n if (mergedOpen && listRef.current) {\n listRef.current.onKeyUp(event, ...rest);\n }\n\n onKeyUp?.(event, ...rest);\n };\n\n // ============================ Selector ============================\n const onSelectorRemove = (val: DisplayValueType) => {\n const newValues = displayValues.filter((i) => i !== val);\n\n onDisplayValuesChange(newValues, {\n type: 'remove',\n values: [val],\n });\n };\n\n // ========================== Focus / Blur ==========================\n /** Record real focus status */\n const focusRef = React.useRef<boolean>(false);\n\n const onContainerFocus: React.FocusEventHandler<HTMLElement> = (...args) => {\n setMockFocused(true);\n\n if (!disabled) {\n if (onFocus && !focusRef.current) {\n onFocus(...args);\n }\n\n // `showAction` should handle `focus` if set\n if (showAction.includes('focus')) {\n onToggleOpen(true);\n }\n }\n\n focusRef.current = true;\n };\n\n const onContainerBlur: React.FocusEventHandler<HTMLElement> = (...args) => {\n blurRef.current = true;\n\n setMockFocused(false, () => {\n focusRef.current = false;\n blurRef.current = false;\n onToggleOpen(false);\n });\n\n if (disabled) {\n return;\n }\n\n if (mergedSearchValue) {\n // `tags` mode should move `searchValue` into values\n if (mode === 'tags') {\n onSearch(mergedSearchValue, { source: 'submit' });\n } else if (mode === 'multiple') {\n // `multiple` mode only clean the search value but not trigger event\n onSearch('', {\n source: 'blur',\n });\n }\n }\n\n if (onBlur) {\n onBlur(...args);\n }\n };\n\n // Give focus back of Select\n const activeTimeoutIds: any[] = [];\n React.useEffect(\n () => () => {\n activeTimeoutIds.forEach((timeoutId) => clearTimeout(timeoutId));\n activeTimeoutIds.splice(0, activeTimeoutIds.length);\n },\n [],\n );\n\n const onInternalMouseDown: React.MouseEventHandler<HTMLDivElement> = (event, ...restArgs) => {\n const { target } = event;\n const popupElement: HTMLDivElement = triggerRef.current?.getPopupElement();\n\n // We should give focus back to selector if clicked item is not focusable\n if (popupElement && popupElement.contains(target as HTMLElement)) {\n const timeoutId = setTimeout(() => {\n const index = activeTimeoutIds.indexOf(timeoutId);\n if (index !== -1) {\n activeTimeoutIds.splice(index, 1);\n }\n\n cancelSetMockFocused();\n\n if (!mobile && !popupElement.contains(document.activeElement)) {\n selectorRef.current?.focus();\n }\n });\n\n activeTimeoutIds.push(timeoutId);\n }\n\n onMouseDown?.(event, ...restArgs);\n };\n\n // ============================ Dropdown ============================\n const [, forceUpdate] = React.useState({});\n // We need force update here since popup dom is render async\n function onPopupMouseEnter() {\n forceUpdate({});\n }\n\n // Used for raw custom input trigger\n let onTriggerVisibleChange: null | ((newOpen: boolean) => void);\n if (customizeRawInputElement) {\n onTriggerVisibleChange = (newOpen: boolean) => {\n onToggleOpen(newOpen);\n };\n }\n\n // Close when click on non-select element\n useSelectTriggerControl(\n () => [containerRef.current, triggerRef.current?.getPopupElement()],\n triggerOpen,\n onToggleOpen,\n !!customizeRawInputElement,\n );\n\n // ============================ Context =============================\n const baseSelectContext = React.useMemo(\n () => ({\n ...props,\n notFoundContent,\n open: mergedOpen,\n triggerOpen,\n id,\n showSearch: mergedShowSearch,\n multiple,\n toggleOpen: onToggleOpen,\n }),\n [props, notFoundContent, triggerOpen, mergedOpen, id, mergedShowSearch, multiple, onToggleOpen],\n );\n\n // ==================================================================\n // == Render ==\n // ==================================================================\n\n // ============================= Arrow ==============================\n const showSuffixIcon = !!suffixIcon || loading;\n let arrowNode: React.ReactNode;\n\n if (showSuffixIcon) {\n arrowNode = (\n <TransBtn\n className={classNames(`${prefixCls}-arrow`, {\n [`${prefixCls}-arrow-loading`]: loading,\n })}\n customizeIcon={suffixIcon}\n customizeIconProps={{\n loading,\n searchValue: mergedSearchValue,\n open: mergedOpen,\n focused: mockFocused,\n showSearch: mergedShowSearch,\n }}\n />\n );\n }\n\n // ============================= Clear ==============================\n const onClearMouseDown: React.MouseEventHandler<HTMLSpanElement> = () => {\n onClear?.();\n\n selectorRef.current?.focus();\n\n onDisplayValuesChange([], {\n type: 'clear',\n values: displayValues,\n });\n onInternalSearch('', false, false);\n };\n\n const { allowClear: mergedAllowClear, clearIcon: clearNode } = useAllowClear(\n prefixCls,\n onClearMouseDown,\n displayValues,\n allowClear,\n clearIcon,\n disabled,\n\n mergedSearchValue,\n mode,\n );\n\n // =========================== OptionList ===========================\n const optionList = <OptionList ref={listRef} />;\n\n // ============================= Select =============================\n const mergedClassName = classNames(prefixCls, className, {\n [`${prefixCls}-focused`]: mockFocused,\n [`${prefixCls}-multiple`]: multiple,\n [`${prefixCls}-single`]: !multiple,\n [`${prefixCls}-allow-clear`]: allowClear,\n [`${prefixCls}-show-arrow`]: showSuffixIcon,\n [`${prefixCls}-disabled`]: disabled,\n [`${prefixCls}-loading`]: loading,\n [`${prefixCls}-open`]: mergedOpen,\n [`${prefixCls}-customize-input`]: customizeInputElement,\n [`${prefixCls}-show-search`]: mergedShowSearch,\n });\n\n // >>> Selector\n const selectorNode = (\n <SelectTrigger\n ref={triggerRef}\n disabled={disabled}\n prefixCls={prefixCls}\n visible={triggerOpen}\n popupElement={optionList}\n animation={animation}\n transitionName={transitionName}\n dropdownStyle={dropdownStyle}\n dropdownClassName={dropdownClassName}\n direction={direction}\n dropdownMatchSelectWidth={dropdownMatchSelectWidth}\n dropdownRender={dropdownRender}\n dropdownAlign={dropdownAlign}\n placement={placement}\n builtinPlacements={builtinPlacements}\n getPopupContainer={getPopupContainer}\n empty={emptyOptions}\n getTriggerDOMNode={() => selectorDomRef.current}\n onPopupVisibleChange={onTriggerVisibleChange}\n onPopupMouseEnter={onPopupMouseEnter}\n >\n {customizeRawInputElement ? (\n React.cloneElement(customizeRawInputElement, {\n ref: customizeRawInputRef,\n })\n ) : (\n <Selector\n {...props}\n domRef={selectorDomRef}\n prefixCls={prefixCls}\n inputElement={customizeInputElement}\n ref={selectorRef}\n id={id}\n showSearch={mergedShowSearch}\n autoClearSearchValue={autoClearSearchValue}\n mode={mode}\n activeDescendantId={activeDescendantId}\n tagRender={tagRender}\n values={displayValues}\n open={mergedOpen}\n onToggleOpen={onToggleOpen}\n activeValue={activeValue}\n searchValue={mergedSearchValue}\n onSearch={onInternalSearch}\n onSearchSubmit={onInternalSearchSubmit}\n onRemove={onSelectorRemove}\n tokenWithEnter={tokenWithEnter}\n />\n )}\n </SelectTrigger>\n );\n\n // >>> Render\n let renderNode: React.ReactNode;\n\n // Render raw\n if (customizeRawInputElement) {\n renderNode = selectorNode;\n } else {\n renderNode = (\n <div\n className={mergedClassName}\n {...domProps}\n ref={containerRef}\n onMouseDown={onInternalMouseDown}\n onKeyDown={onInternalKeyDown}\n onKeyUp={onInternalKeyUp}\n onFocus={onContainerFocus}\n onBlur={onContainerBlur}\n >\n {mockFocused && !mergedOpen && (\n <span\n style={{\n width: 0,\n height: 0,\n position: 'absolute',\n overflow: 'hidden',\n opacity: 0,\n }}\n aria-live=\"polite\"\n >\n {/* Merge into one string to make screen reader work as expect */}\n {`${displayValues\n .map(({ label, value }) =>\n ['number', 'string'].includes(typeof label) ? label : value,\n )\n .join(', ')}`}\n </span>\n )}\n {selectorNode}\n {arrowNode}\n {mergedAllowClear && clearNode}\n </div>\n );\n }\n\n return (\n <BaseSelectContext.Provider value={baseSelectContext}>{renderNode}</BaseSelectContext.Provider>\n );\n});\n\n// Set display name for dev\nif (process.env.NODE_ENV !== 'production') {\n BaseSelect.displayName = 'BaseSelect';\n}\n\nexport default BaseSelect;\n"]}