@aloudata/aloudata-design 0.2.5 → 0.3.0-beta.1

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 (391) hide show
  1. package/es/Avatar/index.d.ts +15 -0
  2. package/es/Avatar/index.js +33 -0
  3. package/es/Avatar/style/index.d.ts +2 -0
  4. package/es/Avatar/style/index.js +2 -0
  5. package/es/Avatar/style/index.less +34 -0
  6. package/es/Breadcrumb/index.d.ts +8 -0
  7. package/es/Breadcrumb/index.js +36 -0
  8. package/es/Breadcrumb/style/index.d.ts +2 -0
  9. package/es/Breadcrumb/style/index.js +2 -0
  10. package/es/Breadcrumb/style/index.less +28 -0
  11. package/es/Button/index.d.ts +4 -4
  12. package/es/Button/index.js +28 -23
  13. package/es/Button/style/index.less +158 -125
  14. package/es/Button/style/variables.less +60 -0
  15. package/es/Checkbox/style/index.less +16 -1
  16. package/es/ConfigProvider/index.d.ts +1 -0
  17. package/es/ConfigProvider/index.js +1 -0
  18. package/es/Dropdown/Button.js +1 -1
  19. package/es/Dropdown/style/index.less +41 -8
  20. package/es/Empty/image/Authority.d.ts +3 -0
  21. package/es/Empty/image/Authority.js +360 -0
  22. package/es/Empty/image/Dataspace.d.ts +3 -0
  23. package/es/Empty/image/Dataspace.js +271 -0
  24. package/es/Empty/image/Search.d.ts +3 -0
  25. package/es/Empty/image/Search.js +156 -0
  26. package/es/Empty/image/Simple.d.ts +3 -0
  27. package/es/Empty/image/Simple.js +20 -0
  28. package/es/Empty/image/Worksheet.d.ts +3 -0
  29. package/es/Empty/image/Worksheet.js +270 -0
  30. package/es/Empty/image/empty.d.ts +3 -0
  31. package/es/Empty/image/empty.js +139 -0
  32. package/es/Empty/index.d.ts +21 -5
  33. package/es/Empty/index.js +84 -54
  34. package/es/Empty/style/index.less +56 -11
  35. package/es/Icon/index.d.ts +2 -2
  36. package/es/Icon/index.js +10 -2
  37. package/es/Input/components/Group/index.d.ts +4 -2
  38. package/es/Input/components/Group/index.js +23 -1
  39. package/es/Input/components/Input/index.d.ts +1 -1
  40. package/es/Input/components/Input/index.js +12 -0
  41. package/es/Input/components/Password/index.d.ts +7 -1
  42. package/es/Input/components/Password/index.js +25 -3
  43. package/es/Input/style/index.less +278 -43
  44. package/es/InputNumber/index.d.ts +4 -0
  45. package/es/InputNumber/index.js +32 -0
  46. package/es/InputNumber/style/index.d.ts +2 -0
  47. package/es/InputNumber/style/index.js +2 -0
  48. package/es/InputNumber/style/index.less +152 -0
  49. package/es/Menu/Divider.d.ts +2 -1
  50. package/es/Menu/MenuItem.d.ts +2 -1
  51. package/es/Menu/SubMenu.d.ts +2 -1
  52. package/es/Menu/SubMenu.js +1 -1
  53. package/es/Menu/index.d.ts +2 -1
  54. package/es/Menu/style/index.less +0 -1
  55. package/es/Modal/index.d.ts +21 -0
  56. package/es/Modal/index.js +93 -0
  57. package/es/Modal/style/index.d.ts +2 -0
  58. package/es/Modal/style/index.js +2 -0
  59. package/es/Modal/style/index.less +206 -0
  60. package/es/Navigator/components/Header/index.d.ts +9 -0
  61. package/es/Navigator/components/Header/index.js +18 -0
  62. package/es/Navigator/components/Menu/index.d.ts +7 -13
  63. package/es/Navigator/components/Menu/index.js +26 -162
  64. package/es/Navigator/components/MenuItem/index.d.ts +21 -0
  65. package/es/Navigator/components/MenuItem/index.js +39 -0
  66. package/es/Navigator/index.d.ts +19 -8
  67. package/es/Navigator/index.js +6 -15
  68. package/es/Navigator/style/bg.png +0 -0
  69. package/es/Navigator/style/index.less +66 -176
  70. package/es/Popover/index.d.ts +5 -0
  71. package/es/Popover/index.js +22 -0
  72. package/es/Popover/style/index.d.ts +2 -0
  73. package/es/Popover/style/index.js +2 -0
  74. package/es/Popover/style/index.less +37 -0
  75. package/es/Radio/index.d.ts +2 -3
  76. package/es/Select/index.d.ts +36 -9
  77. package/es/Select/index.js +154 -7
  78. package/es/Select/rc-select/BaseSelect.d.ts +116 -0
  79. package/es/Select/rc-select/BaseSelect.js +641 -0
  80. package/es/Select/rc-select/OptGroup.d.ts +12 -0
  81. package/es/Select/{OptionsList → rc-select}/OptGroup.js +1 -0
  82. package/es/Select/rc-select/Option.d.ts +14 -0
  83. package/es/Select/{OptionsList/Options.js → rc-select/Option.js} +1 -0
  84. package/es/Select/rc-select/OptionList.d.ts +10 -0
  85. package/es/Select/rc-select/OptionList.js +401 -0
  86. package/es/Select/rc-select/Select.d.ts +109 -0
  87. package/es/Select/rc-select/Select.js +547 -0
  88. package/es/Select/rc-select/SelectContext.d.ts +20 -0
  89. package/es/Select/rc-select/SelectContext.js +4 -0
  90. package/es/Select/rc-select/SelectTrigger.d.ts +30 -0
  91. package/es/Select/rc-select/SelectTrigger.js +136 -0
  92. package/es/Select/rc-select/Selector/Input.d.ts +26 -0
  93. package/es/Select/rc-select/Selector/Input.js +114 -0
  94. package/es/Select/rc-select/Selector/MultipleSelector.d.ts +16 -0
  95. package/es/Select/rc-select/Selector/MultipleSelector.js +236 -0
  96. package/es/Select/rc-select/Selector/SingleSelector.d.ts +8 -0
  97. package/es/Select/rc-select/Selector/SingleSelector.js +112 -0
  98. package/es/Select/rc-select/Selector/index.d.ts +80 -0
  99. package/es/Select/rc-select/Selector/index.js +194 -0
  100. package/es/Select/rc-select/TransBtn.d.ts +12 -0
  101. package/es/Select/rc-select/TransBtn.js +42 -0
  102. package/es/Select/rc-select/hooks/useBaseProps.d.ts +13 -0
  103. package/es/Select/rc-select/hooks/useBaseProps.js +11 -0
  104. package/es/Select/rc-select/hooks/useCache.d.ts +7 -0
  105. package/es/Select/rc-select/hooks/useCache.js +49 -0
  106. package/es/Select/rc-select/hooks/useDelayReset.d.ts +5 -0
  107. package/es/Select/rc-select/hooks/useDelayReset.js +50 -0
  108. package/es/Select/rc-select/hooks/useFilterOptions.d.ts +3 -0
  109. package/es/Select/rc-select/hooks/useFilterOptions.js +75 -0
  110. package/es/Select/rc-select/hooks/useId.d.ts +5 -0
  111. package/es/Select/rc-select/hooks/useId.js +47 -0
  112. package/es/Select/rc-select/hooks/useLayoutEffect.d.ts +5 -0
  113. package/es/Select/rc-select/hooks/useLayoutEffect.js +17 -0
  114. package/es/Select/rc-select/hooks/useLock.d.ts +7 -0
  115. package/es/Select/rc-select/hooks/useLock.js +35 -0
  116. package/es/Select/rc-select/hooks/useOptions.d.ts +11 -0
  117. package/es/Select/rc-select/hooks/useOptions.js +53 -0
  118. package/es/Select/rc-select/hooks/useRefFunc.d.ts +5 -0
  119. package/es/Select/rc-select/hooks/useRefFunc.js +15 -0
  120. package/es/Select/rc-select/hooks/useSelectTriggerControl.d.ts +1 -0
  121. package/es/Select/rc-select/hooks/useSelectTriggerControl.js +40 -0
  122. package/es/Select/rc-select/index.d.ts +10 -0
  123. package/es/Select/rc-select/index.js +7 -0
  124. package/es/Select/rc-select/interface.d.ts +10 -0
  125. package/es/Select/{interface.js → rc-select/interface.js} +0 -0
  126. package/es/Select/rc-select/utils/commonUtil.d.ts +4 -0
  127. package/es/Select/rc-select/utils/commonUtil.js +12 -0
  128. package/es/Select/rc-select/utils/keyUtil.d.ts +2 -0
  129. package/es/Select/rc-select/utils/keyUtil.js +8 -0
  130. package/es/Select/rc-select/utils/legacyUtil.d.ts +3 -0
  131. package/es/Select/rc-select/utils/legacyUtil.js +58 -0
  132. package/es/Select/rc-select/utils/platformUtil.d.ts +1 -0
  133. package/es/Select/rc-select/utils/platformUtil.js +4 -0
  134. package/es/Select/rc-select/utils/valueUtil.d.ts +22 -0
  135. package/es/Select/rc-select/utils/valueUtil.js +157 -0
  136. package/es/Select/rc-select/utils/warningPropsUtil.d.ts +3 -0
  137. package/es/Select/rc-select/utils/warningPropsUtil.js +114 -0
  138. package/es/Select/style/index.d.ts +2 -0
  139. package/es/Select/style/index.js +4 -1
  140. package/es/Select/style/index.less +173 -494
  141. package/es/Select/style/multiple.less +222 -0
  142. package/es/Select/style/rtl.less +168 -0
  143. package/es/Select/style/select.less +337 -0
  144. package/es/Select/style/single.less +179 -0
  145. package/es/Select/style/status.less +48 -0
  146. package/es/Select/style/variables.less +56 -0
  147. package/es/Select/style/variables.less.d.ts +97 -0
  148. package/es/Select/utils/iconUtil.d.ts +24 -0
  149. package/es/Select/utils/iconUtil.js +87 -0
  150. package/es/Space/index.d.ts +1 -1
  151. package/es/Space/index.js +0 -1
  152. package/es/Table/Table.d.ts +6 -0
  153. package/es/Table/Table.js +464 -0
  154. package/es/Table/components/Empty/empty-img.png +0 -0
  155. package/es/Table/components/Empty/index.d.ts +4 -0
  156. package/es/Table/components/Empty/index.js +16 -0
  157. package/es/Table/components/Empty/index.less +24 -0
  158. package/es/Table/index.d.ts +2 -4
  159. package/es/Table/index.js +2 -463
  160. package/es/Table/interface.d.ts +11 -15
  161. package/es/Table/style/index.less +44 -21
  162. package/es/Tabs/style/index.less +39 -7
  163. package/es/Tooltip/style/index.less +1 -0
  164. package/es/index.d.ts +14 -2
  165. package/es/index.js +7 -1
  166. package/es/style/index.less +2 -1
  167. package/es/style/mixins/index.less +8 -0
  168. package/es/style/themes/default/index.less +1 -1
  169. package/es/style/themes/default/themeColor.module.less +58 -94
  170. package/es/style/themes/default/themeColor.module.less.d.ts +1 -17
  171. package/lib/Avatar/index.d.ts +15 -0
  172. package/lib/Avatar/index.js +57 -0
  173. package/lib/Avatar/style/index.d.ts +2 -0
  174. package/lib/Avatar/style/index.js +5 -0
  175. package/lib/Avatar/style/index.less +34 -0
  176. package/lib/Breadcrumb/index.d.ts +8 -0
  177. package/lib/Breadcrumb/index.js +50 -0
  178. package/lib/Breadcrumb/style/index.d.ts +2 -0
  179. package/lib/Breadcrumb/style/index.js +5 -0
  180. package/lib/Breadcrumb/style/index.less +28 -0
  181. package/lib/Button/index.d.ts +4 -4
  182. package/lib/Button/index.js +28 -24
  183. package/lib/Button/style/index.less +158 -125
  184. package/lib/Button/style/variables.less +60 -0
  185. package/lib/Checkbox/style/index.less +16 -1
  186. package/lib/ConfigProvider/index.d.ts +1 -0
  187. package/lib/ConfigProvider/index.js +26 -0
  188. package/lib/Dropdown/Button.js +1 -1
  189. package/lib/Dropdown/style/index.less +41 -8
  190. package/lib/Empty/image/Authority.d.ts +3 -0
  191. package/lib/Empty/image/Authority.js +374 -0
  192. package/lib/Empty/image/Dataspace.d.ts +3 -0
  193. package/lib/Empty/image/Dataspace.js +285 -0
  194. package/lib/Empty/image/Search.d.ts +3 -0
  195. package/lib/Empty/image/Search.js +170 -0
  196. package/lib/Empty/image/Simple.d.ts +3 -0
  197. package/lib/Empty/image/Simple.js +34 -0
  198. package/lib/Empty/image/Worksheet.d.ts +3 -0
  199. package/lib/Empty/image/Worksheet.js +284 -0
  200. package/lib/Empty/image/empty.d.ts +3 -0
  201. package/lib/Empty/image/empty.js +153 -0
  202. package/lib/Empty/index.d.ts +21 -5
  203. package/lib/Empty/index.js +94 -53
  204. package/lib/Empty/style/index.less +56 -11
  205. package/lib/Icon/index.d.ts +2 -2
  206. package/lib/Icon/index.js +10 -2
  207. package/lib/Input/components/Group/index.d.ts +4 -2
  208. package/lib/Input/components/Group/index.js +24 -1
  209. package/lib/Input/components/Input/index.d.ts +1 -1
  210. package/lib/Input/components/Input/index.js +13 -0
  211. package/lib/Input/components/Password/index.d.ts +7 -1
  212. package/lib/Input/components/Password/index.js +25 -2
  213. package/lib/Input/style/index.less +278 -43
  214. package/lib/InputNumber/index.d.ts +4 -0
  215. package/lib/InputNumber/index.js +45 -0
  216. package/lib/InputNumber/style/index.d.ts +2 -0
  217. package/lib/InputNumber/style/index.js +5 -0
  218. package/lib/InputNumber/style/index.less +152 -0
  219. package/lib/Menu/Divider.d.ts +2 -1
  220. package/lib/Menu/MenuItem.d.ts +2 -1
  221. package/lib/Menu/SubMenu.d.ts +2 -1
  222. package/lib/Menu/SubMenu.js +1 -1
  223. package/lib/Menu/index.d.ts +2 -1
  224. package/lib/Menu/style/index.less +0 -1
  225. package/lib/Modal/index.d.ts +21 -0
  226. package/lib/Modal/index.js +119 -0
  227. package/lib/Modal/style/index.d.ts +2 -0
  228. package/lib/Modal/style/index.js +5 -0
  229. package/lib/Modal/style/index.less +206 -0
  230. package/lib/Navigator/components/Header/index.d.ts +9 -0
  231. package/lib/Navigator/components/Header/index.js +28 -0
  232. package/lib/Navigator/components/Menu/index.d.ts +7 -13
  233. package/lib/Navigator/components/Menu/index.js +25 -162
  234. package/lib/Navigator/components/MenuItem/index.d.ts +21 -0
  235. package/lib/Navigator/components/MenuItem/index.js +56 -0
  236. package/lib/Navigator/index.d.ts +19 -8
  237. package/lib/Navigator/index.js +7 -15
  238. package/lib/Navigator/style/bg.png +0 -0
  239. package/lib/Navigator/style/index.less +66 -176
  240. package/lib/Popover/index.d.ts +5 -0
  241. package/lib/Popover/index.js +35 -0
  242. package/lib/Popover/style/index.d.ts +2 -0
  243. package/lib/Popover/style/index.js +5 -0
  244. package/lib/Popover/style/index.less +37 -0
  245. package/lib/Radio/index.d.ts +2 -3
  246. package/lib/Select/index.d.ts +36 -9
  247. package/lib/Select/index.js +166 -18
  248. package/lib/Select/rc-select/BaseSelect.d.ts +116 -0
  249. package/lib/Select/rc-select/BaseSelect.js +672 -0
  250. package/lib/Select/rc-select/OptGroup.d.ts +12 -0
  251. package/lib/Select/{OptionsList → rc-select}/OptGroup.js +1 -0
  252. package/lib/Select/rc-select/Option.d.ts +14 -0
  253. package/lib/Select/{OptionsList/Options.js → rc-select/Option.js} +1 -0
  254. package/lib/Select/rc-select/OptionList.d.ts +10 -0
  255. package/lib/Select/rc-select/OptionList.js +427 -0
  256. package/lib/Select/rc-select/Select.d.ts +109 -0
  257. package/lib/Select/rc-select/Select.js +545 -0
  258. package/lib/Select/rc-select/SelectContext.d.ts +20 -0
  259. package/lib/Select/rc-select/SelectContext.js +19 -0
  260. package/lib/Select/rc-select/SelectTrigger.d.ts +30 -0
  261. package/lib/Select/rc-select/SelectTrigger.js +153 -0
  262. package/lib/Select/rc-select/Selector/Input.d.ts +26 -0
  263. package/lib/Select/rc-select/Selector/Input.js +132 -0
  264. package/lib/Select/rc-select/Selector/MultipleSelector.d.ts +16 -0
  265. package/lib/Select/rc-select/Selector/MultipleSelector.js +257 -0
  266. package/lib/Select/rc-select/Selector/SingleSelector.d.ts +8 -0
  267. package/lib/Select/rc-select/Selector/SingleSelector.js +129 -0
  268. package/lib/Select/rc-select/Selector/index.d.ts +80 -0
  269. package/lib/Select/rc-select/Selector/index.js +203 -0
  270. package/lib/Select/rc-select/TransBtn.d.ts +12 -0
  271. package/lib/Select/rc-select/TransBtn.js +59 -0
  272. package/lib/Select/rc-select/hooks/useBaseProps.d.ts +13 -0
  273. package/lib/Select/rc-select/hooks/useBaseProps.js +28 -0
  274. package/lib/Select/rc-select/hooks/useCache.d.ts +7 -0
  275. package/lib/Select/rc-select/hooks/useCache.js +63 -0
  276. package/lib/Select/rc-select/hooks/useDelayReset.d.ts +5 -0
  277. package/lib/Select/rc-select/hooks/useDelayReset.js +62 -0
  278. package/lib/Select/rc-select/hooks/useFilterOptions.d.ts +3 -0
  279. package/lib/Select/rc-select/hooks/useFilterOptions.js +91 -0
  280. package/lib/Select/rc-select/hooks/useId.d.ts +5 -0
  281. package/lib/Select/rc-select/hooks/useId.js +68 -0
  282. package/lib/Select/rc-select/hooks/useLayoutEffect.d.ts +5 -0
  283. package/lib/Select/rc-select/hooks/useLayoutEffect.js +32 -0
  284. package/lib/Select/rc-select/hooks/useLock.d.ts +7 -0
  285. package/lib/Select/rc-select/hooks/useLock.js +49 -0
  286. package/lib/Select/rc-select/hooks/useOptions.d.ts +11 -0
  287. package/lib/Select/rc-select/hooks/useOptions.js +68 -0
  288. package/lib/Select/rc-select/hooks/useRefFunc.d.ts +5 -0
  289. package/lib/Select/rc-select/hooks/useRefFunc.js +29 -0
  290. package/lib/Select/rc-select/hooks/useSelectTriggerControl.d.ts +1 -0
  291. package/lib/Select/rc-select/hooks/useSelectTriggerControl.js +54 -0
  292. package/lib/Select/rc-select/index.d.ts +10 -0
  293. package/lib/Select/rc-select/index.js +45 -0
  294. package/lib/Select/rc-select/interface.d.ts +10 -0
  295. package/lib/Select/{interface.js → rc-select/interface.js} +0 -0
  296. package/lib/Select/rc-select/utils/commonUtil.d.ts +4 -0
  297. package/lib/Select/rc-select/utils/commonUtil.js +23 -0
  298. package/lib/Select/rc-select/utils/keyUtil.d.ts +2 -0
  299. package/lib/Select/rc-select/utils/keyUtil.js +17 -0
  300. package/lib/Select/rc-select/utils/legacyUtil.d.ts +3 -0
  301. package/lib/Select/rc-select/utils/legacyUtil.js +73 -0
  302. package/lib/Select/rc-select/utils/platformUtil.d.ts +1 -0
  303. package/lib/Select/rc-select/utils/platformUtil.js +11 -0
  304. package/lib/Select/rc-select/utils/valueUtil.d.ts +22 -0
  305. package/lib/Select/rc-select/utils/valueUtil.js +172 -0
  306. package/lib/Select/rc-select/utils/warningPropsUtil.d.ts +3 -0
  307. package/lib/Select/rc-select/utils/warningPropsUtil.js +132 -0
  308. package/lib/Select/style/index.d.ts +2 -0
  309. package/lib/Select/style/index.js +4 -0
  310. package/lib/Select/style/index.less +173 -494
  311. package/lib/Select/style/multiple.less +222 -0
  312. package/lib/Select/style/rtl.less +168 -0
  313. package/lib/Select/style/select.less +337 -0
  314. package/lib/Select/style/single.less +179 -0
  315. package/lib/Select/style/status.less +48 -0
  316. package/lib/Select/style/variables.less +56 -0
  317. package/lib/Select/style/variables.less.d.ts +97 -0
  318. package/lib/Select/utils/iconUtil.d.ts +24 -0
  319. package/lib/Select/utils/iconUtil.js +109 -0
  320. package/lib/Space/index.d.ts +1 -1
  321. package/lib/Space/index.js +0 -6
  322. package/lib/Table/Table.d.ts +6 -0
  323. package/lib/Table/Table.js +491 -0
  324. package/lib/Table/components/Empty/empty-img.png +0 -0
  325. package/lib/Table/components/Empty/index.d.ts +4 -0
  326. package/lib/Table/components/Empty/index.js +30 -0
  327. package/lib/Table/components/Empty/index.less +24 -0
  328. package/lib/Table/index.d.ts +2 -4
  329. package/lib/Table/index.js +2 -478
  330. package/lib/Table/interface.d.ts +11 -15
  331. package/lib/Table/style/index.less +44 -21
  332. package/lib/Tabs/style/index.less +39 -7
  333. package/lib/Tooltip/style/index.less +1 -0
  334. package/lib/index.d.ts +14 -2
  335. package/lib/index.js +48 -0
  336. package/lib/style/index.less +2 -1
  337. package/lib/style/mixins/index.less +8 -0
  338. package/lib/style/themes/default/index.less +1 -1
  339. package/lib/style/themes/default/themeColor.module.less +58 -94
  340. package/lib/style/themes/default/themeColor.module.less.d.ts +1 -17
  341. package/package.json +3 -2
  342. package/es/Select/BaseSelect.d.ts +0 -5
  343. package/es/Select/BaseSelect.js +0 -413
  344. package/es/Select/OptionsList/OptGroup.d.ts +0 -7
  345. package/es/Select/OptionsList/OptionItem/RenderGroup.d.ts +0 -9
  346. package/es/Select/OptionsList/OptionItem/RenderGroup.js +0 -16
  347. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +0 -10
  348. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +0 -45
  349. package/es/Select/OptionsList/OptionItem/RenderOption.d.ts +0 -16
  350. package/es/Select/OptionsList/OptionItem/RenderOption.js +0 -79
  351. package/es/Select/OptionsList/OptionItem/RenderTooltip.d.ts +0 -8
  352. package/es/Select/OptionsList/OptionItem/RenderTooltip.js +0 -25
  353. package/es/Select/OptionsList/OptionItem.d.ts +0 -4
  354. package/es/Select/OptionsList/OptionItem.js +0 -4
  355. package/es/Select/OptionsList/Options.d.ts +0 -7
  356. package/es/Select/OptionsList/index.d.ts +0 -4
  357. package/es/Select/OptionsList/index.js +0 -176
  358. package/es/Select/Selector/index.d.ts +0 -4
  359. package/es/Select/Selector/index.js +0 -252
  360. package/es/Select/VirtualList.d.ts +0 -5
  361. package/es/Select/VirtualList.js +0 -29
  362. package/es/Select/hooks/useCacheOption.d.ts +0 -9
  363. package/es/Select/hooks/useCacheOption.js +0 -107
  364. package/es/Select/interface.d.ts +0 -235
  365. package/es/Select/utils.d.ts +0 -21
  366. package/es/Select/utils.js +0 -193
  367. package/lib/Select/BaseSelect.d.ts +0 -5
  368. package/lib/Select/BaseSelect.js +0 -446
  369. package/lib/Select/OptionsList/OptGroup.d.ts +0 -7
  370. package/lib/Select/OptionsList/OptionItem/RenderGroup.d.ts +0 -9
  371. package/lib/Select/OptionsList/OptionItem/RenderGroup.js +0 -27
  372. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +0 -10
  373. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +0 -60
  374. package/lib/Select/OptionsList/OptionItem/RenderOption.d.ts +0 -16
  375. package/lib/Select/OptionsList/OptionItem/RenderOption.js +0 -94
  376. package/lib/Select/OptionsList/OptionItem/RenderTooltip.d.ts +0 -8
  377. package/lib/Select/OptionsList/OptionItem/RenderTooltip.js +0 -37
  378. package/lib/Select/OptionsList/OptionItem.d.ts +0 -4
  379. package/lib/Select/OptionsList/OptionItem.js +0 -39
  380. package/lib/Select/OptionsList/Options.d.ts +0 -7
  381. package/lib/Select/OptionsList/index.d.ts +0 -4
  382. package/lib/Select/OptionsList/index.js +0 -195
  383. package/lib/Select/Selector/index.d.ts +0 -4
  384. package/lib/Select/Selector/index.js +0 -276
  385. package/lib/Select/VirtualList.d.ts +0 -5
  386. package/lib/Select/VirtualList.js +0 -42
  387. package/lib/Select/hooks/useCacheOption.d.ts +0 -9
  388. package/lib/Select/hooks/useCacheOption.js +0 -113
  389. package/lib/Select/interface.d.ts +0 -235
  390. package/lib/Select/utils.d.ts +0 -21
  391. package/lib/Select/utils.js +0 -233
@@ -1,14 +1,14 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import Menu from './components/Menu';
4
+ import Header from './components/Header';
4
5
 
5
6
  function Navigator(props) {
6
- var menuList = props.menuList,
7
+ var logoSrc = props.logoSrc,
8
+ menuList = props.menuList,
7
9
  selectedKey = props.selectedKey,
8
- logoSrc = props.logoSrc,
9
10
  _props$footer = props.footer,
10
11
  footer = _props$footer === void 0 ? null : _props$footer,
11
- onLogoClick = props.onLogoClick,
12
12
  onMenuSelect = props.onMenuSelect;
13
13
  var renderMenu = useCallback(function () {
14
14
  return /*#__PURE__*/React.createElement(Menu, {
@@ -19,18 +19,9 @@ function Navigator(props) {
19
19
  }, [selectedKey, menuList, onMenuSelect]);
20
20
  return /*#__PURE__*/React.createElement("div", {
21
21
  className: classNames('ald-nav')
22
- }, /*#__PURE__*/React.createElement("div", {
23
- className: classNames('ald-nav-logo', {
24
- 'ald-nav-logo-able-click': onLogoClick
25
- })
26
- }, logoSrc && /*#__PURE__*/React.createElement("div", {
27
- onClick: onLogoClick,
28
- className: "ald-nav-logo-wrap"
29
- }, /*#__PURE__*/React.createElement("img", {
30
- src: logoSrc,
31
- alt: "",
32
- draggable: false
33
- }))), /*#__PURE__*/React.createElement("div", {
22
+ }, /*#__PURE__*/React.createElement(Header, {
23
+ logoSrc: logoSrc
24
+ }), /*#__PURE__*/React.createElement("div", {
34
25
  className: classNames('ald-nav-menu', {
35
26
  'ald-nav-menu-has-footer': !!footer
36
27
  })
Binary file
@@ -1,228 +1,118 @@
1
1
  @import '../../style/index.less';
2
2
  @import '../../Icon/index.less';
3
3
 
4
- /* stylelint-disable */
5
-
6
- @ald-prefix:ant;
7
-
8
- .supTitle() {
9
- font-family: 'PingFang SC';
10
- font-style: normal;
11
- font-weight: 500;
12
- font-size: 14px;
13
- line-height: 20px;
14
- }
15
-
16
- .subTitle() {
17
- font-family: 'PingFang SC';
18
- font-style: normal;
19
- font-weight: 400;
20
- font-size: 12px;
21
- line-height: 16px;
22
- }
4
+ @ald-prefix: ant;
5
+ @header-height: 80px;
6
+ @footer-height: 88px;
23
7
 
24
8
  .ald-nav {
25
- width: 216px;
26
- background-color: @BBG15;
27
- height: 100%;
28
9
  display: flex;
29
10
  flex-direction: column;
11
+ width: 240px;
12
+ height: 100%;
30
13
  overflow: hidden;
14
+ color: @ND0;
15
+ background-image: url('./bg.png');
16
+ background-repeat: no-repeat;
17
+ background-size: cover;
31
18
  user-select: none;
32
19
 
33
- &-logo {
34
- height: 72px;
35
- padding: 24px;
36
- width: 100%;
20
+ &-header {
21
+ display: flex;
22
+ align-items: center;
23
+ height: @header-height;
24
+ padding: 0 24px;
25
+ background: @B20;
26
+
27
+ &-content {
28
+ display: flex;
29
+ width: 154px;
30
+ height: 40px;
37
31
 
38
- &-able-click {
39
- cursor: pointer;
32
+ .ald-nav-logo-img {
33
+ width: 100%;
34
+ height: 100%;
35
+ object-fit: fill;
36
+ }
40
37
  }
41
- }
42
38
 
43
- &-menu-icon-right.anticon {
44
- color: @ND60;
39
+ &-select {
40
+ display: none;
41
+ width: 24px;
42
+ height: 24px;
43
+ }
45
44
  }
46
45
 
47
46
  &-menu {
48
47
  flex: 1;
49
- overflow-y: auto;
48
+ padding: 24px 12px;
50
49
  overflow-x: hidden;
51
-
52
- .ant-menu-sub.ant-menu-inline {
53
- background-color: unset;
54
- }
55
-
56
- .anticon.ant-menu-item-icon {
57
- font-size: 20px !important;
58
- width: 20px !important;
59
- height: 20px !important;
60
- }
50
+ overflow-y: auto;
61
51
 
62
52
  &::-webkit-scrollbar-thumb {
63
- border-radius: 6px;
64
53
  background: @ND90;
65
- border: 3px solid transparent;
66
54
  background-clip: padding-box;
55
+ border: 3px solid transparent;
56
+ border-radius: 6px;
67
57
  }
68
58
 
69
59
  &::-webkit-scrollbar {
70
- background-color: transparent;
71
60
  width: 12px;
72
61
  height: 12px;
62
+ background-color: transparent;
73
63
  }
74
64
 
75
- .ant-menu-inline,
76
- .ant-menu-vertical,
77
- .ant-menu-vertical-left {
78
- border-right: unset;
65
+ .ald-nav-group {
66
+ &-title {
67
+ height: 48px;
68
+ margin-top: 12px;
69
+ padding: 0 12px;
70
+ .textStyle(@BG60, 14px, 48px, 600, normal);
71
+ }
79
72
  }
80
73
 
81
- .ant-menu {
82
- background: @BBG15;
83
- color: @ND0;
84
-
85
- &.ant-menu-root {
74
+ .ald-nav-menu-item {
75
+ display: flex;
76
+ align-items: center;
77
+ height: 48px;
78
+ padding: 0 12px;
79
+ line-height: 48px;
80
+ border-radius: 8px;
86
81
 
87
- .ant-menu-item {
88
- margin-bottom: 16px;
89
- padding: 0 12px !important;
90
- }
91
-
92
- li:nth-last-child(1) {
93
- margin-bottom: 0;
94
- }
82
+ &-icon {
83
+ margin-right: 12px;
95
84
  }
96
85
 
97
- &.ant-menu-sub {
98
- .ant-menu-item {
99
- margin-top: 4px;
100
- margin-bottom: 0;
101
- padding: 0 12px 0 44px!important;
102
- }
103
- }
104
-
105
- // 只有子级菜单相关颜色操作
106
- .ant-menu-item-only-child {
107
- color: @ND30;
108
- height: 32px !important;
109
- line-height: 32px !important;
110
- font-size: 12px !important;
111
- .subTitle();
112
-
113
- &:hover {
114
- color: @ND30 !important;
115
- }
86
+ &-content {
87
+ flex: 1;
88
+ overflow: hidden;
89
+ .textStyle(@B95, 16px, 24px, 600, normal);
116
90
 
117
- &.ant-menu-item-selected {
118
- font-weight: 500;
119
-
120
- &:hover {
121
- color: @ND0 !important;
122
- }
91
+ &-text {
92
+ white-space: nowrap;
123
93
  }
124
94
  }
125
95
 
126
- .ant-menu-item {
127
- height: 40px;
128
- width: 100%;
129
- border-radius: 8px;
130
- .supTitle();
131
-
132
- ::before {
133
- width: 4px;
134
- content: '';
135
- background: transparent;
136
- height: 100%;
137
- position: absolute;
138
- top: 0;
139
- left: -12px;
140
- border-radius: 1px;
141
- transition: all .3s;
142
- }
143
-
144
- &-selected {
145
- background-color: @BBG20 !important;
146
- color: @ND0;
147
- position: relative;
148
- overflow: unset;
149
-
150
- ::before {
151
- background: @B40;
152
- }
153
- }
154
-
155
- &::after {
156
- display: none !important;
157
- }
96
+ &:hover {
97
+ cursor: pointer;
158
98
  }
159
99
 
160
- .ant-menu-submenu {
161
- margin-bottom: 16px;
162
-
163
- .ant-menu-submenu-title {
164
- padding: 0 12px !important;
165
- height: 40px;
166
- line-height: 40px;
167
- .supTitle();
168
-
169
- &:hover {
170
- color: @ND0;
171
- }
172
- }
173
-
174
- &-selected {
175
- color: @ND0;
176
- }
100
+ &.ald-nav-menu-item-selected {
101
+ background-color: @B60;
177
102
 
178
- &-active {
179
- color: @ND0;
103
+ .ald-nav-menu-item-content {
104
+ .textStyle(@ND0, 16px, 24px, 600, normal);
180
105
  }
181
106
  }
182
-
183
- // 修改icon和文字的margin
184
- .ant-menu-item .ant-menu-item-icon + span,
185
- .ant-menu-submenu-title .ant-menu-item-icon + span,
186
- .ant-menu-item .anticon + span,
187
- .ant-menu-submenu-title .anticon + span {
188
- margin-left: 12px;
189
- }
190
-
191
- // 取消item点击时的高亮背景色
192
- .ant-menu-item:active,
193
- .ant-menu-submenu-title:active {
194
- background: unset;
195
- }
196
-
197
- .ant-menu-inline .ant-menu-item,
198
- .ant-menu-inline .ant-menu-submenu-title {
199
- width: 100% !important;
200
- }
201
-
202
- // 删除右侧的高亮
203
- .ant-menu-vertical .ant-menu-item::after,
204
- .ant-menu-vertical-left .ant-menu-item::after,
205
- .ant-menu-vertical-right .ant-menu-item::after,
206
- .ant-menu-inline .ant-menu-item::after {
207
- display: none;
208
- }
209
- }
210
-
211
- .ant-menu-light .ant-menu-item:hover,
212
- .ant-menu-light .ant-menu-item-active,
213
- .ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,
214
- .ant-menu-light .ant-menu-submenu-active,
215
- .ant-menu-light .ant-menu-submenu-title:hover {
216
- color: unset;
217
107
  }
218
108
  }
219
109
 
220
110
  &-footer {
221
- height: 72px;
111
+ height: 88px;
222
112
 
223
113
  &-wrap {
224
- color: @ND0;
225
114
  height: 100%;
115
+ color: @ND0;
226
116
  }
227
117
  }
228
- }
118
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { PopoverProps } from 'antd';
3
+ export type { PopoverProps };
4
+ declare function Popover(props: PopoverProps): JSX.Element;
5
+ export default Popover;
@@ -0,0 +1,22 @@
1
+ import "antd/es/popover/style";
2
+ import _Popover from "antd/es/popover";
3
+ var _excluded = ["overlayClassName", "children"];
4
+
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
7
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
9
+ import React from 'react';
10
+ import classnames from 'classnames';
11
+
12
+ function Popover(props) {
13
+ var overlayClassName = props.overlayClassName,
14
+ children = props.children,
15
+ restProps = _objectWithoutProperties(props, _excluded);
16
+
17
+ return /*#__PURE__*/React.createElement(_Popover, Object.assign({
18
+ overlayClassName: classnames('ald-popover', overlayClassName)
19
+ }, restProps), children);
20
+ }
21
+
22
+ export default Popover;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,37 @@
1
+ @import '../../style/index.less';
2
+
3
+ .ald-popover {
4
+ .ant-popover-arrow {
5
+ display: none;
6
+ }
7
+
8
+ .ant-popover-title {
9
+ min-width: 312px;
10
+ height: 24px;
11
+ min-height: 24px;
12
+ padding: 0;
13
+ color: @NL0;
14
+ font-weight: 600;
15
+ font-size: 16px;
16
+ font-family: 'PingFang SC', sans-serif;
17
+ font-style: normal;
18
+ line-height: 24px;
19
+ border-bottom-width: 0;
20
+ }
21
+
22
+ .ant-popover-inner-content {
23
+ min-height: 112px;
24
+ padding: 24px 0 0;
25
+ color: @NL0;
26
+ font-weight: 400;
27
+ font-size: 14px;
28
+ font-family: 'PingFang SC', sans-serif;
29
+ font-style: normal;
30
+ line-height: 20px;
31
+ }
32
+
33
+ .ant-popover-inner {
34
+ padding: 16px 24px;
35
+ border-radius: 8px;
36
+ }
37
+ }
@@ -1,4 +1,3 @@
1
- import { Radio, RadioProps, RadioChangeEvent, RadioGroupProps } from 'antd';
2
- export { RadioGroupButtonStyle, RadioGroupOptionType, RadioGroupContextProps, RadioChangeEventTarget, } from 'antd/lib/radio';
3
- export { RadioProps, RadioChangeEvent, RadioGroupProps };
1
+ import { Radio } from 'antd';
2
+ export { RadioGroupButtonStyle, RadioGroupOptionType, RadioGroupProps, RadioGroupContextProps, RadioProps, RadioChangeEventTarget, RadioChangeEvent, } from 'antd/lib/radio';
4
3
  export default Radio;
@@ -1,11 +1,38 @@
1
- import BaseSelect from './BaseSelect';
2
- import { IOption as Option, ISelectProps as SelectProps, IOptGroupProps as OptGroupProps, IOptionProps as OptionProps } from './interface';
3
- import Options from './OptionsList/Options';
4
- import OptGroup from './OptionsList/OptGroup';
5
- export declare type TSelect = typeof BaseSelect & {
6
- Group: typeof OptGroup;
7
- Option: typeof Options;
1
+ import type { SelectProps as RcSelectProps } from './rc-select';
2
+ import { BaseSelectRef, OptGroup, Option } from './rc-select';
3
+ import { OptionProps } from './rc-select/Option';
4
+ import type { BaseOptionType, DefaultOptionType } from './rc-select/Select';
5
+ import * as React from 'react';
6
+ import type { SizeType } from 'antd/lib/config-provider/SizeContext';
7
+ import { SelectCommonPlacement } from 'antd/lib/_util/motion';
8
+ import type { InputStatus } from 'antd/lib/_util/statusUtils';
9
+ declare type RawValue = string | number;
10
+ export type { OptionProps, BaseSelectRef as RefSelectProps, BaseOptionType, DefaultOptionType };
11
+ export interface LabeledValue {
12
+ key?: string;
13
+ value: RawValue;
14
+ label: React.ReactNode;
15
+ }
16
+ export declare type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined;
17
+ export interface InternalSelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<RcSelectProps<ValueType, OptionType>, 'mode'> {
18
+ suffixIcon?: React.ReactNode;
19
+ size?: SizeType;
20
+ disabled?: boolean;
21
+ mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
22
+ bordered?: boolean;
23
+ }
24
+ export interface SelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<InternalSelectProps<ValueType, OptionType>, 'inputIcon' | 'mode' | 'getInputElement' | 'getRawInputElement' | 'backfill' | 'placement'> {
25
+ placement?: SelectCommonPlacement;
26
+ mode?: 'multiple' | 'tags';
27
+ status?: InputStatus;
28
+ }
29
+ declare const Select: (<ValueType = any, OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
30
+ children?: React.ReactNode;
31
+ } & {
32
+ ref?: ((instance: BaseSelectRef | null) => void) | React.RefObject<BaseSelectRef> | null | undefined;
33
+ }) => React.ReactElement) & {
34
+ SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
35
+ Option: typeof Option;
36
+ OptGroup: typeof OptGroup;
8
37
  };
9
- declare const Select: TSelect;
10
- export { Options as Option, OptGroup as Group, SelectProps, OptionProps, Option as SelectOptions, OptGroupProps as GroupProps, };
11
38
  export default Select;
@@ -1,8 +1,155 @@
1
- import BaseSelect from './BaseSelect';
2
- import Options from './OptionsList/Options';
3
- import OptGroup from './OptionsList/OptGroup';
4
- var Select = BaseSelect;
5
- Select.Option = Options;
6
- Select.Group = OptGroup;
7
- export { Options as Option, OptGroup as Group };
1
+ var _excluded = ["prefixCls", "bordered", "className", "getPopupContainer", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "showArrow"];
2
+
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+
7
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
+
9
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
+
11
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
+
13
+ // @ts-nocheck
14
+ // TODO: 4.0 - codemod should help to change `filterOption` to support node props.
15
+ import classNames from 'classnames';
16
+ import RcSelect, { OptGroup, Option } from './rc-select';
17
+ import omit from 'rc-util/lib/omit';
18
+ import * as React from 'react';
19
+ import { useContext } from 'react';
20
+ import { ConfigContext } from 'antd/lib/config-provider';
21
+ import SizeContext from 'antd/lib/config-provider/SizeContext';
22
+ import DisabledContext from 'antd/lib/config-provider/DisabledContext';
23
+ import { FormItemInputContext } from 'antd/lib/form/context';
24
+ import { getTransitionDirection, getTransitionName } from 'antd/lib/_util/motion';
25
+ import { getMergedStatus, getStatusClassNames } from 'antd/lib/_util/statusUtils';
26
+ import defaultRenderEmpty from 'antd/lib/config-provider/defaultRenderEmpty';
27
+ import getIcons from './utils/iconUtil';
28
+ var SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
29
+
30
+ var InternalSelect = function InternalSelect(_ref, ref) {
31
+ var _classNames2;
32
+
33
+ var customizePrefixCls = _ref.prefixCls,
34
+ _ref$bordered = _ref.bordered,
35
+ bordered = _ref$bordered === void 0 ? true : _ref$bordered,
36
+ className = _ref.className,
37
+ getPopupContainer = _ref.getPopupContainer,
38
+ dropdownClassName = _ref.dropdownClassName,
39
+ _ref$listHeight = _ref.listHeight,
40
+ listHeight = _ref$listHeight === void 0 ? 256 : _ref$listHeight,
41
+ placement = _ref.placement,
42
+ _ref$listItemHeight = _ref.listItemHeight,
43
+ listItemHeight = _ref$listItemHeight === void 0 ? 24 : _ref$listItemHeight,
44
+ customizeSize = _ref.size,
45
+ customDisabled = _ref.disabled,
46
+ notFoundContent = _ref.notFoundContent,
47
+ customStatus = _ref.status,
48
+ showArrow = _ref.showArrow,
49
+ props = _objectWithoutProperties(_ref, _excluded);
50
+
51
+ var _React$useContext = React.useContext(ConfigContext),
52
+ getContextPopupContainer = _React$useContext.getPopupContainer,
53
+ getPrefixCls = _React$useContext.getPrefixCls,
54
+ renderEmpty = _React$useContext.renderEmpty,
55
+ direction = _React$useContext.direction,
56
+ virtual = _React$useContext.virtual,
57
+ dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth;
58
+
59
+ var size = React.useContext(SizeContext);
60
+ var prefixCls = getPrefixCls('select', customizePrefixCls);
61
+ var rootPrefixCls = getPrefixCls();
62
+ var mode = React.useMemo(function () {
63
+ var m = props.mode;
64
+
65
+ if (m === 'combobox') {
66
+ return undefined;
67
+ }
68
+
69
+ if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
70
+ return 'combobox';
71
+ }
72
+
73
+ return m;
74
+ }, [props.mode]);
75
+ var isMultiple = mode === 'multiple' || mode === 'tags';
76
+ var mergedShowArrow = showArrow !== undefined ? showArrow : props.loading || !(isMultiple || mode === 'combobox'); // ===================== Form Status =====================
77
+
78
+ var _useContext = useContext(FormItemInputContext),
79
+ contextStatus = _useContext.status,
80
+ hasFeedback = _useContext.hasFeedback,
81
+ isFormItemInput = _useContext.isFormItemInput,
82
+ feedbackIcon = _useContext.feedbackIcon;
83
+
84
+ var mergedStatus = getMergedStatus(contextStatus, customStatus); // ===================== Empty =====================
85
+
86
+ var mergedNotFound;
87
+
88
+ if (notFoundContent !== undefined) {
89
+ mergedNotFound = notFoundContent;
90
+ } else if (mode === 'combobox') {
91
+ mergedNotFound = null;
92
+ } else {
93
+ mergedNotFound = (renderEmpty || defaultRenderEmpty)('Select');
94
+ } // ===================== Icons =====================
95
+
96
+
97
+ var _getIcons = getIcons(_objectSpread(_objectSpread({}, props), {}, {
98
+ multiple: isMultiple,
99
+ hasFeedback: hasFeedback,
100
+ feedbackIcon: feedbackIcon,
101
+ showArrow: mergedShowArrow,
102
+ prefixCls: prefixCls
103
+ })),
104
+ suffixIcon = _getIcons.suffixIcon,
105
+ itemIcon = _getIcons.itemIcon,
106
+ removeIcon = _getIcons.removeIcon,
107
+ clearIcon = _getIcons.clearIcon;
108
+
109
+ var selectProps = omit(props, ['suffixIcon', 'itemIcon']);
110
+ var rcSelectRtlDropdownClassName = classNames(dropdownClassName, _defineProperty({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
111
+ var mergedSize = customizeSize || size; // ===================== Disabled =====================
112
+
113
+ var disabled = React.useContext(DisabledContext);
114
+ var mergedDisabled = customDisabled || disabled;
115
+ var mergedClassName = classNames('ald-select', (_classNames2 = {}, _defineProperty(_classNames2, "ald-select-large", mergedSize === 'large'), _defineProperty(_classNames2, "ald-select-small", mergedSize === 'small'), _defineProperty(_classNames2, 'ald-select-mini', mergedSize === 'mini'), _defineProperty(_classNames2, 'ald-select-middle', !['large', 'small', 'mini'].includes(mergedSize)), _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), _defineProperty(_classNames2, "".concat(prefixCls, "-in-form-item"), isFormItemInput), _classNames2), getStatusClassNames(prefixCls, mergedStatus, hasFeedback), className); // ===================== Placement =====================
116
+
117
+ var getPlacement = function getPlacement() {
118
+ if (placement !== undefined) {
119
+ return placement;
120
+ }
121
+
122
+ return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
123
+ };
124
+
125
+ return /*#__PURE__*/React.createElement(RcSelect, Object.assign({
126
+ ref: ref,
127
+ virtual: virtual,
128
+ dropdownMatchSelectWidth: dropdownMatchSelectWidth
129
+ }, selectProps, {
130
+ transitionName: getTransitionName(rootPrefixCls, getTransitionDirection(placement), props.transitionName),
131
+ listHeight: listHeight,
132
+ listItemHeight: listItemHeight,
133
+ mode: mode,
134
+ prefixCls: prefixCls,
135
+ size: mergedSize,
136
+ placement: getPlacement(),
137
+ direction: direction,
138
+ inputIcon: suffixIcon,
139
+ menuItemSelectedIcon: itemIcon,
140
+ removeIcon: removeIcon,
141
+ clearIcon: clearIcon,
142
+ notFoundContent: mergedNotFound,
143
+ className: mergedClassName,
144
+ getPopupContainer: getPopupContainer || getContextPopupContainer,
145
+ dropdownClassName: rcSelectRtlDropdownClassName,
146
+ showArrow: hasFeedback || showArrow,
147
+ disabled: mergedDisabled
148
+ }));
149
+ };
150
+
151
+ var Select = /*#__PURE__*/React.forwardRef(InternalSelect);
152
+ Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
153
+ Select.Option = Option;
154
+ Select.OptGroup = OptGroup;
8
155
  export default Select;