@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,565 +1,244 @@
1
- // @import './variables.less';
2
- @import '../../style/index.less';
3
-
4
- // @component-prefix:ant-;
5
- .font(@style: normal, @weight: 400, @size: @size-font-base) {
6
- font-weight: @weight;
7
- font-size: @size;
8
- font-family: @font-family-primary;
9
- font-style: @style;
10
- }
1
+ /* stylelint-disable no-descending-specificity */
2
+ @import './select.less';
3
+ @import './variables.less';
11
4
 
12
- // The prefix to use for components classes
13
- @component-prefix: ant;
14
- @ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
15
- // vertical margins
16
- @margin-lg: 24px; // containers
17
- @margin-md: 16px; // small containers and buttons
18
- @margin-sm: 12px; // Form controls and items
19
- @margin-xs: 8px; // small items
20
- @margin-xss: 4px; // more small
21
-
22
- @border-color-base: #a3adc8;
23
- @border-color-split: hsv(0, 0, 94%); // split border inside a component
24
- @border-color-inverse: #fff;
25
- @border-width-base: 1px; // width of the border for a component
26
- @border-style-base: solid; // style of a components border
27
- @border-color-disabled: #dfe2ed;
28
- @select-option-height-lg: @height-lg;
29
- @select-option-line-height-lg: 16px;
30
- @select-option-height-base: @height-base;
31
- @select-option-height-sm: @height-sm;
32
- @line-height-base: 1.5715;
33
- // @mode: compact;
34
-
35
- // Base Text
36
- // @text-color-base: #313e75;
37
- // @text-color-disabled: #313e75;
38
- @text-font-base-size: 14px;
39
- // @text-lint-height-base: 22px;
40
-
41
- //Background Color
42
- // @background-color-base: #fff;
43
- // @background-color-disabled: #f7f8fc;
44
-
45
- @ald-prefix: ~'@{component-prefix}';
46
- @select-prefix-cls-legacy: ~'@{component-prefix}-select-legacy';
47
- @select-input-fontSize: @text-font-base-size;
48
- @select-input-fontSize-sm: @text-font-base-size - 2px;
49
- // @color-font-list-primary-normal: @palette-black-6; // $color-black-6
50
- // @color-box-shadow-focused: #c0c4d3;
51
- // @color-background-matchHeight: #ffcf3c;
52
- .@{select-prefix-cls-legacy} {
53
- position: relative;
54
- display: inline-block;
55
- min-width: 120px;
56
- padding: 0 36px 0 11px;
57
- overflow: hidden;
58
- border: 1px solid transparent;
59
- border-radius: @border-radius-base;
60
- outline: none;
61
- cursor: pointer;
62
- transition: all 0.2s;
63
- user-select: none;
64
-
65
- &-selector-wrap {
66
- display: flex;
67
- align-items: center;
68
- }
5
+ .ald-select {
6
+ .ant-select-selector:not(.ant-select-customize-input) {
7
+ border-color: @selector-borderColor-default;
69
8
 
70
- &-selector {
71
- box-sizing: border-box;
72
- width: 100%;
73
- min-height: @height-base;
74
- max-height: @height-base * 3.5px;
75
- overflow-x: hidden;
76
- overflow-y: auto;
77
- border-radius: @border-radius-base;
78
- transition: all 0.2s;
79
-
80
- &::-webkit-scrollbar {
81
- width: 2px;
82
- background-color: transparent;
9
+ .ald-select-selector-prefix {
10
+ color: @selector-labelColor-default;
83
11
  }
84
12
 
85
- // &::-webkit-scrollbar-thumb {
86
- // // background: @palette-gray-3;
87
- // }
88
- }
89
-
90
- &-selector-label {
91
- display: flex;
92
- flex-shrink: 0;
93
- align-items: center;
94
- max-width: 50%;
95
- height: @height-base;
96
- margin-right: @select-label-margin-right;
97
- overflow: hidden;
98
- color: @NL30;
99
- font-size: @select-input-fontSize;
100
- line-height: @height-base;
101
- }
102
-
103
- &-values-wrapper {
104
- position: relative;
105
- width: 100%;
106
- color: @NL0;
107
- line-height: @height-base;
108
- }
109
-
110
- &-bordered {
111
- border: 1px solid @NL90;
112
- }
113
-
114
- &-bordered:not(&-disabled):not(&-focused):hover {
115
- border: 1px solid @B40;
116
- }
117
-
118
- // &:not(&-bordered):not(&-disabled):hover {
119
- // // background-color: @palette-gray-2;
120
- // // border: 1px solid transparent;
121
- // }
122
-
123
- &-focused:not(&-bordered):not(&-disabled) {
124
- // background-color: @color-background-tree-normal;
125
- // border: 1px solid @color-background-button-primary-hover;
126
- border-radius: 4px;
127
- }
128
-
129
- &-focused {
130
- // box-shadow: 0 0 6px 0 @color-box-shadow-focused;
13
+ .ant-select-selection-placeholder {
14
+ color: @selector-placeholderColor-default;
15
+ }
131
16
 
132
- .@{select-prefix-cls-legacy} {
133
- &-item-all,
134
- &-item {
135
- opacity: 0.5;
136
- }
17
+ .ant-select-selection-item {
18
+ color: @selector-valueColor-default;
19
+ background-color: initial;
20
+ border: none;
137
21
  }
138
22
  }
139
23
 
140
- &-arrow,
141
- &-close {
142
- position: absolute;
143
- top: 0;
144
- right: 8px;
145
- display: flex;
146
- align-items: center;
147
- justify-content: center;
148
- height: 100%;
149
- // color: @color-text-table-empty;
150
- // transition: all 0.2s;
24
+ &.ant-select-disabled .ant-select-selector:not(.ant-select-customize-input) {
25
+ border-color: @selector-borderColor-disabled;
26
+ cursor: initial;
151
27
 
152
- &-focused {
153
- transform: rotate(-180deg);
28
+ .ald-select-selector-prefix {
29
+ color: @selector-labelColor-disabled;
154
30
  }
155
- }
156
31
 
157
- &-item {
158
- max-width: 100%;
159
- overflow: hidden;
160
- font-size: @select-input-fontSize;
161
- transition: margin 0.2s;
162
-
163
- &-text {
164
- overflow: hidden;
165
- color: @NL0;
166
- font-size: @select-input-fontSize-sm;
167
- line-height: 22px;
168
- white-space: nowrap;
169
- text-overflow: ellipsis;
32
+ .ant-select-selection-placeholder {
33
+ color: @selector-placeholderColor-disabled;
170
34
  }
171
- }
172
-
173
- &-tag-item {
174
- max-width: 100%;
175
- margin-right: 8px;
176
- margin-bottom: 5px;
177
- }
178
-
179
- &-item-all {
180
- display: inline-flex;
181
- width: 100%;
182
- font-size: @select-input-fontSize;
183
- transition: margin 0.2s;
184
- .@{select-prefix-cls-legacy}-overflow-item {
185
- white-space: nowrap;
186
-
187
- &:not(:first-child)::before {
188
- content: ',';
189
- }
190
35
 
191
- &-rest {
192
- &::before {
193
- content: '' !important;
194
- }
195
- }
36
+ .ant-select-selection-item {
37
+ color: @selector-valueColor-disabled;
38
+ background-color: initial;
39
+ border: none;
196
40
  }
197
41
 
198
- &-text {
199
- overflow: hidden;
200
- font-size: @select-input-fontSize-sm;
201
- line-height: 22px;
202
- white-space: nowrap;
203
- text-overflow: ellipsis;
42
+ input {
43
+ cursor: initial;
204
44
  }
205
45
  }
206
46
 
207
- &-placeholder {
208
- position: absolute;
209
- top: 0;
210
- left: 0;
211
- color: @select-placeholder-color;
212
- font-size: @select-input-fontSize-sm;
213
- }
214
-
215
- &-input {
216
- position: absolute;
217
- top: 9px;
218
- left: 0;
219
- box-sizing: content-box;
220
- padding: 0;
221
- background: none;
222
- border: none;
223
- outline: none;
224
- }
225
-
226
- &-input-tags {
227
- position: relative;
228
- top: 0;
229
- }
230
-
231
- &-input-reference {
232
- position: absolute;
233
- top: 0;
234
- left: 0;
235
- z-index: -1;
236
- visibility: hidden;
237
- }
238
-
239
- &-small {
240
- border-radius: @border-radius-sm;
241
- .@{select-prefix-cls-legacy} {
242
- &-selector {
243
- min-height: @height-sm;
244
- max-height: @height-sm * 3.5px;
245
- border-radius: @border-radius-sm;
246
- }
47
+ &:not(.ant-select-disabled):hover,
48
+ &.ant-select.ant-select-focused:not(.ant-select-disabled) {
49
+ .ant-select-selector {
50
+ border-color: @selector-borderColor-active;
51
+ box-shadow: none;
247
52
 
248
- &-selector-label {
249
- height: @height-sm;
250
- color: @NL30;
251
- font-size: @select-input-fontSize-sm;
252
- line-height: @height-sm;
53
+ &:focus-visible {
54
+ outline: none;
253
55
  }
254
56
 
255
- &-values-wrapper {
256
- font-size: @select-input-fontSize-sm;
257
- line-height: @height-sm;
57
+ .ald-select-selector-prefix {
58
+ color: @selector-labelColor-active;
258
59
  }
259
60
 
260
- &-item-all {
261
- font-size: @select-input-fontSize-sm;
262
-
263
- &-text {
264
- font-size: @select-input-fontSize-sm;
265
- }
61
+ .ant-select-selection-placeholder {
62
+ color: @selector-placeholderColor-active;
266
63
  }
267
64
 
268
- &-placeholder {
269
- font-size: @select-input-fontSize-sm;
270
- }
271
-
272
- &-tag-item {
273
- margin-bottom: 2px;
274
- }
275
-
276
- &-input {
277
- top: 6px;
278
- }
279
-
280
- &-input-tags {
281
- top: 0;
65
+ .ant-select-selection-overflow,
66
+ .ant-select-selection-item {
67
+ color: @selector-valueColor-active;
68
+ background-color: initial;
69
+ border: none;
282
70
  }
283
71
  }
284
72
  }
285
73
 
286
- &-default {
287
- height: 28px;
288
- .@{select-prefix-cls-legacy} {
289
- &-selector {
290
- height: 26px;
291
- min-height: 26px;
292
- }
74
+ &.ald-select-large {
75
+ .ant-select-selector {
76
+ align-items: center;
77
+ height: @selector-height-large;
78
+ padding: 0 @selector-paddingLeft;
79
+ font-size: @selector-fontSize-large;
80
+ line-height: @selector-lineHeight-large;
81
+ border-radius: @selector-borderRadius-large;
293
82
 
294
- &-values-wrapper {
295
- font-size: 12px;
296
- line-height: 26px;
83
+ .ald-select-selector-prefix {
84
+ display: flex;
85
+ align-items: center;
86
+ margin-right: @prefix-marginRight-large;
297
87
  }
298
88
 
299
- &-selector-label {
300
- height: 26px;
301
- font-size: 12px;
89
+ .ant-select-selection-item,
90
+ .ant-select-selection-placeholder {
91
+ line-height: @selector-lineHeight-large;
302
92
  }
303
93
  }
304
94
  }
305
95
 
306
- &-large {
307
- height: @height-lg;
308
- .@{select-prefix-cls-legacy} {
309
- &-selector {
310
- min-height: @height-lg;
311
- max-height: @height-lg * 3.5px;
312
- }
313
-
314
- &-selector-label {
315
- height: @height-lg;
316
- font-size: @select-input-fontSize;
317
- line-height: @height-lg;
318
- }
96
+ &.ald-select-middle {
97
+ .ant-select-selector {
98
+ align-items: center;
99
+ height: @selector-height-middle;
100
+ padding: 0 @selector-paddingLeft;
101
+ font-size: @selector-fontSize-middle;
102
+ line-height: @selector-lineHeight-middle;
103
+ border-radius: @selector-borderRadius-middle;
319
104
 
320
- &-values-wrapper {
321
- line-height: @height-lg;
105
+ .ald-select-selector-prefix {
106
+ display: flex;
107
+ align-items: center;
108
+ margin-right: @prefix-marginRight-middle;
322
109
  }
323
110
 
324
- &-tag-item {
325
- margin-bottom: 7px;
111
+ .ant-select-selection-item,
112
+ .ant-select-selection-placeholder {
113
+ line-height: @selector-lineHeight-middle;
326
114
  }
115
+ }
116
+ }
327
117
 
328
- &-input {
329
- top: 11px;
330
- }
118
+ &.ald-select-small {
119
+ .ant-select-selector {
120
+ align-items: center;
121
+ height: @selector-height-small;
122
+ padding: 0 @selector-paddingLeft;
123
+ font-size: @selector-fontSize-small;
124
+ line-height: @selector-lineHeight-small;
125
+ border-radius: @selector-borderRadius-small;
331
126
 
332
- &-input-tags {
333
- top: 0;
127
+ .ald-select-selector-prefix {
128
+ display: flex;
129
+ align-items: center;
130
+ margin-right: @prefix-marginRight-small;
334
131
  }
335
132
 
336
- &-placeholder {
337
- font-size: @select-input-fontSize;
338
- }
339
-
340
- &-item-text {
341
- font-size: @select-input-fontSize;
133
+ .ant-select-selection-item,
134
+ .ant-select-selection-placeholder {
135
+ line-height: @selector-lineHeight-small;
342
136
  }
343
137
  }
344
138
  }
345
139
 
346
- &-disabled {
347
- color: @NL80;
348
- text-shadow: none;
349
- background: @NL95;
350
- cursor: not-allowed !important;
351
- .@{select-prefix-cls-legacy} {
352
- &-selector-label {
353
- color: inherit;
354
- }
140
+ &.ald-select-mini {
141
+ .ant-select-selector {
142
+ align-items: center;
143
+ height: @selector-height-mini;
144
+ padding: 0 @selector-paddingLeft;
145
+ font-size: @selector-fontSize-mini;
146
+ line-height: @selector-lineHeight-mini;
147
+ border-radius: @selector-borderRadius-mini;
355
148
 
356
- &-values-wrapper {
357
- color: inherit;
149
+ .ald-select-selector-prefix {
150
+ display: flex;
151
+ align-items: center;
152
+ margin-right: @prefix-marginRight-mini;
358
153
  }
359
154
 
360
- &-placeholder {
361
- color: inherit;
155
+ .ant-select-selection-item,
156
+ .ant-select-selection-placeholder {
157
+ line-height: @selector-lineHeight-mini;
362
158
  }
363
159
  }
364
160
  }
365
161
 
366
- &-bordered&-disabled {
367
- border-color: @NL90;
368
- }
162
+ &.ant-select-multiple {
163
+ .ant-select-selection-search {
164
+ margin-inline-start: 0;
165
+ }
369
166
 
370
- // &-focused&-bordered {
371
- // // border: 1px solid @color-border-input-active;
372
- // }
167
+ .ant-select-selection-overflow {
168
+ .ant-select-selection-overflow-item {
169
+ display: flex;
170
+ align-items: center;
171
+ line-height: inherit;
172
+
173
+ .ant-select-selection-item {
174
+ height: auto;
175
+ margin-top: 0;
176
+
177
+ .ant-select-selection-item-content {
178
+ display: flex;
179
+ align-items: center;
180
+ margin: 0;
181
+ }
182
+
183
+ .ant-select-selection-item-remove {
184
+ display: flex;
185
+ align-items: center;
186
+ margin: 0;
187
+ font-size: inherit;
188
+ }
189
+ }
373
190
 
374
- // &-focused:not(&-bordered) {
375
- // background-color: @palette-gray-2;
376
- // }
191
+ .ald-select-multiple-tag-default {
192
+ color: inherit;
377
193
 
378
- &-single {
379
- .@{select-prefix-cls-legacy} {
380
- &-item {
381
- display: inline-flex;
194
+ &::before {
195
+ content: ',';
196
+ }
197
+ }
382
198
  }
383
- }
384
- }
385
199
 
386
- // rc-trigger
387
- &-dropdown {
388
- position: absolute;
389
- padding: 4px 0;
390
- background: @BG100;
391
- border: 1px solid @NL90;
392
- border-radius: @border-radius-base;
393
- box-shadow: @shadow-actionsheet;
394
- &.@{select-prefix-cls-legacy}-hidden {
395
- display: none;
200
+ .ant-select-selection-overflow-item:first-of-type {
201
+ .ald-select-multiple-tag-default::before {
202
+ content: '';
203
+ }
204
+ }
396
205
  }
397
206
  }
207
+ }
398
208
 
399
- // &-search-highlight {
400
- // // background-color: @color-background-matchHeight;
401
- // }
402
-
403
- &-not-found {
404
- width: 100%;
405
- // color: @color-text-table-empty;
406
- text-align: center;
407
-
408
- &-icon {
409
- margin-bottom: 40px;
209
+ .ald-select-dropdown {
210
+ .ald-select-item {
211
+ display: flex;
212
+ align-items: center;
213
+ padding: 0 4px;
214
+ font-size: 14px;
215
+ background-color: @select-option-bgColor;
216
+
217
+ .ald-select-single-check {
218
+ display: flex;
219
+ align-items: center;
220
+ justify-content: center;
221
+ // width: 26px;
222
+ width: 1em;
223
+ margin-right: 8px;
224
+ margin-left: 12px;
410
225
  }
411
- }
412
-
413
- &-gap-10 {
414
- width: 10px;
415
- }
416
-
417
- &-gap-10 + div {
418
- overflow: hidden;
419
- white-space: nowrap;
420
- text-overflow: ellipsis;
421
- }
422
-
423
- &-button {
424
- margin-right: 8px;
425
- }
426
226
 
427
- // &-button-active {
428
- // color: @color-text-button-text-hover;
429
- // background: @palette-gray-4;
430
- // border-color: @palette-gray-4;
431
- // }
432
- }
227
+ .ald-select-multiple-checkbox {
228
+ width: 16px;
229
+ height: 16px;
230
+ margin-right: 10px;
231
+ margin-left: 14px;
232
+ pointer-events: none;
433
233
 
434
- .@{select-prefix-cls-legacy}-list {
435
- box-sizing: border-box;
436
- overflow-y: scroll;
437
- overflow-y: overlay;
438
- // min-width: 160px;
439
- // padding: 16px 0 16px 8px;
440
- outline: none;
441
- }
442
-
443
- .@{select-prefix-cls-legacy}-list-option {
444
- position: relative;
445
- display: flex;
446
- align-items: center;
447
- box-sizing: border-box;
448
- max-width: 100%;
449
- height: @select-option-height-lg;
450
- // margin-top: 4px;
451
- padding: 8px 12px 8px 36px;
452
- overflow: hidden;
453
- color: @NL0;
454
- font-size: 12px;
455
- line-height: @select-option-line-height-lg;
456
- white-space: nowrap;
457
- text-overflow: ellipsis;
458
- cursor: pointer;
459
- transition: background-color 0.3s ease;
460
- user-select: none;
461
-
462
- &-icon,
463
- &-all-icon {
464
- position: absolute;
465
- top: 50%;
466
- left: 12px;
467
- margin-top: -2px;
468
- color: @B40;
469
- transform: translateY(-50%);
470
-
471
- &-checkbox {
472
- .@{component-prefix}-checkbox-inner {
473
- border-color: @NL90;
474
- // background-color: @BG100;
475
- border-radius: 4px;
476
- box-shadow: none;
477
- // &::after {
478
- // // border-color: @B40;
479
- // }
234
+ .ant-checkbox {
235
+ top: 0;
480
236
  }
481
237
  }
482
- // .@{component-prefix}-checkbox-indeterminate {
483
- // .@{component-prefix}-checkbox-inner {
484
- // &::after {
485
- // border-color: green;
486
- // }
487
- // }
488
- // }
489
- }
490
-
491
- &-isHover {
492
- background-color: @NL97;
493
- }
494
-
495
- &-nomargin {
496
- margin-top: 0;
497
- }
498
-
499
- &-disabled {
500
- color: @NL80;
501
- text-shadow: none;
502
- background-color: @white;
503
- cursor: not-allowed !important;
504
- }
505
-
506
- &-isSelected,
507
- &-all-isSelected {
508
- color: @NL0;
509
- font-weight: normal;
510
- // background-color: @NL97;
511
- }
512
- }
513
238
 
514
- .@{select-prefix-cls-legacy}-list-option-all {
515
- position: relative;
516
- display: flex;
517
- align-items: center;
518
- box-sizing: border-box;
519
- max-width: 100%;
520
- height: @select-option-height-lg;
521
- // margin-right: 8px;
522
- padding: 8px 12px 8px 36px;
523
- overflow: hidden;
524
- color: @NL0;
525
- font-size: 12px;
526
- line-height: @select-option-line-height-lg;
527
- white-space: nowrap;
528
- text-overflow: ellipsis;
529
- cursor: pointer;
530
- transition: background-color 0.3s ease;
531
- user-select: none;
532
-
533
- &:not(&-disabled):hover {
534
- background-color: @NL97;
239
+ .ant-select-item-option-content {
240
+ color: @select-option-color;
241
+ font-weight: 400;
242
+ }
535
243
  }
536
244
  }
537
-
538
- .@{select-prefix-cls-legacy}-footer-button-group {
539
- display: flex;
540
- align-items: center;
541
- justify-content: flex-end;
542
- box-sizing: border-box;
543
- width: 100%;
544
- height: 52px;
545
- margin-top: 4px;
546
- padding: 0 20px;
547
- }
548
-
549
- .@{select-prefix-cls-legacy}-footer-button-group:first-child button {
550
- margin-right: 8px;
551
- }
552
-
553
- .@{select-prefix-cls-legacy}-list-search-bar {
554
- box-sizing: border-box;
555
- max-width: 100%;
556
- padding: 0 20px 16px 12px;
557
- }
558
-
559
- .@{select-prefix-cls-legacy}-list-group {
560
- padding: 6px 12px;
561
- // color: @color-background-button-primary-hover;
562
- font-weight: normal;
563
- font-size: 12px;
564
- line-height: 20px;
565
- }