@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
package/es/Empty/index.js CHANGED
@@ -1,56 +1,86 @@
1
- // @ts-nocheck
2
- import React from 'react';
3
- import usePrefixCls from '../_utils/hooks/usePrefixCls';
4
- export default (function (_ref) {
5
- var description = _ref.description,
6
- children = _ref.children;
7
- var prefixCls = usePrefixCls('empty');
8
- return /*#__PURE__*/React.createElement("div", {
9
- className: prefixCls
10
- }, /*#__PURE__*/React.createElement("div", {
11
- className: "".concat(prefixCls, "-content")
12
- }, /*#__PURE__*/React.createElement("svg", {
13
- width: "75",
14
- height: "79",
15
- viewBox: "0 0 75 79",
16
- fill: "none",
17
- xmlns: "http://www.w3.org/2000/svg"
18
- }, /*#__PURE__*/React.createElement("path", {
19
- d: "M37.4999 78.9999C58.2106 78.9999 74.9999 62.2106 74.9999 41.4999C74.9999\n 20.7893 58.2106 4 37.4999 4C16.7893 4 0 20.7893 0 41.4999C0 62.2106 16.7893 78.9999 37.4999 78.9999Z",
20
- fill: "#EBF3FF"
21
- }), /*#__PURE__*/React.createElement("path", {
22
- d: "M58.9999 25.5H16C14.6193 25.5 13.5 26.5414 13.5 27.8261V76.6738C13.5\n 77.9585 14.6193 78.9999 16 78.9999H58.9999C60.3806 78.9999 61.4999\n 77.9585 61.4999 76.6738V27.8261C61.4999 26.5414 60.3806 25.5 58.9999 25.5Z",
23
- fill: "white"
24
- }), /*#__PURE__*/React.createElement("path", {
25
- d: "M32.5 33H19.5C18.6716 33 18 33.6716 18 34.5C18 35.3284 18.6716 36 19.5\n 36H32.5C33.3284 36 34 35.3284 34 34.5C34 33.6716 33.3284 33 32.5 33Z",
26
- fill: "#D7E7FE"
27
- }), /*#__PURE__*/React.createElement("path", {
28
- d: "M41.5 39.5H19.5C18.6716 39.5 18 40.1716 18 41C18 41.8284 18.6716 42.5\n 19.5 42.5H41.5C42.3284 42.5 43 41.8284 43 41C43 40.1716 42.3284 39.5 41.5 39.5Z",
29
- fill: "#F3F8FF"
30
- }), /*#__PURE__*/React.createElement("path", {
31
- d: "M32.5 46.5H19.5C18.6716 46.5 18 47.1716 18 48C18 48.8284 18.6716 49.5\n 19.5 49.5H32.5C33.3284 49.5 34 48.8284 34 48C34 47.1716 33.3284 46.5 32.5 46.5Z",
32
- fill: "#D7E7FE"
33
- }), /*#__PURE__*/React.createElement("path", {
34
- d: "M41.5 53H19.5C18.6716 53 18 53.6716 18 54.5C18 55.3284 18.6716 56 19.5\n 56H41.5C42.3284 56 43 55.3284 43 54.5C43 53.6716 42.3284 53 41.5 53Z",
35
- fill: "#F3F8FF"
36
- }), /*#__PURE__*/React.createElement("path", {
37
- d: "M32.5 60H19.5C18.6716 60 18 60.6716 18 61.5C18 62.3284 18.6716 63 19.5\n 63H32.5C33.3284 63 34 62.3284 34 61.5C34 60.6716 33.3284 60 32.5 60Z",
38
- fill: "#D7E7FE"
39
- }), /*#__PURE__*/React.createElement("path", {
40
- d: "M41.5 66.5H19.5C18.6716 66.5 18 67.1716 18 68C18 68.8284 18.6716 69.5\n 19.5 69.5H41.5C42.3284 69.5 43 68.8284 43 68C43 67.1716 42.3284 66.5 41.5 66.5Z",
41
- fill: "#F3F8FF"
42
- }), /*#__PURE__*/React.createElement("path", {
43
- d: "M58.9998 0H15.9999C14.6192 0 13.4999 1.11929 13.4999 2.5V17.5C13.4999\n 18.8807 14.6192 20 15.9999 20H58.9998C60.3805 20 61.4998 18.8807 61.4998\n 17.5V2.5C61.4998 1.11929 60.3805 0 58.9998 0Z",
44
- fill: "#A0B5D5"
45
- }), /*#__PURE__*/React.createElement("path", {
46
- d: "M32.5 5.49902H19.5C18.6716 5.49902 18 6.1706 18 6.99902C18 7.82745\n 18.6716 8.49902 19.5 8.49902H32.5C33.3284 8.49902 34 7.82745 34 6.99902C34 6.1706 33.3284 5.49902 32.5 5.49902Z",
47
- fill: "#D7E7FE"
48
- }), /*#__PURE__*/React.createElement("path", {
49
- d: "M41.5 12H19.5C18.6716 12 18 12.6716 18 13.5C18 14.3284 18.6716 15\n 19.5 15H41.5C42.3284 15 43 14.3284 43 13.5C43 12.6716 42.3284 12 41.5 12Z",
50
- fill: "white"
51
- })), description && /*#__PURE__*/React.createElement("div", {
1
+ var _excluded = ["className", "prefixCls", "image", "description", "title", "size", "children", "imageStyle"];
2
+
3
+ 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; }
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 * as React from 'react';
10
+ import classNames from 'classnames';
11
+ import DefaultEmptyImg from './image/empty';
12
+ import AuthorityEmptyImg from './image/Authority';
13
+ import DataSpaceEmptyImg from './image/Dataspace';
14
+ import SearchEmptyImg from './image/Search';
15
+ import SimpleEmptyImg from './image/Simple';
16
+ import WorksheetEmptyImg from './image/Worksheet';
17
+ var defaultEmptyImg = /*#__PURE__*/React.createElement(DefaultEmptyImg, null);
18
+ var dataSpaceEmptyImg = /*#__PURE__*/React.createElement(DataSpaceEmptyImg, null);
19
+ var searchEmptyImg = /*#__PURE__*/React.createElement(SearchEmptyImg, null);
20
+ var simpleEmptyImg = /*#__PURE__*/React.createElement(SimpleEmptyImg, null);
21
+ var worksheetEmptyImg = /*#__PURE__*/React.createElement(WorksheetEmptyImg, null);
22
+ var authorityEmptyImg = /*#__PURE__*/React.createElement(AuthorityEmptyImg, null);
23
+
24
+ var Empty = function Empty(props) {
25
+ var className = props.className,
26
+ customizePrefixCls = props.prefixCls,
27
+ _props$image = props.image,
28
+ image = _props$image === void 0 ? defaultEmptyImg : _props$image,
29
+ description = props.description,
30
+ title = props.title,
31
+ size = props.size,
32
+ children = props.children,
33
+ imageStyle = props.imageStyle,
34
+ restProps = _objectWithoutProperties(props, _excluded);
35
+
36
+ var prefixCls = 'ald-empty';
37
+ var des = typeof description !== 'undefined' ? description : null;
38
+ var alt = typeof des === 'string' ? des : 'empty';
39
+ var imageNode = null;
40
+
41
+ if (typeof image === 'string') {
42
+ imageNode = /*#__PURE__*/React.createElement("img", {
43
+ alt: alt,
44
+ src: image
45
+ });
46
+ } else {
47
+ imageNode = image;
48
+ }
49
+
50
+ var getSize = function getSize(ESize) {
51
+ if (ESize === undefined) {
52
+ if (image === simpleEmptyImg) {
53
+ return 'small';
54
+ }
55
+
56
+ return 'large';
57
+ }
58
+
59
+ if (['small', 'large'].includes(ESize)) {
60
+ return ESize;
61
+ }
62
+
63
+ return 'large';
64
+ };
65
+
66
+ return /*#__PURE__*/React.createElement("div", Object.assign({
67
+ className: classNames(prefixCls, _defineProperty({}, "".concat(prefixCls, "-").concat(getSize(size)), getSize(size)), className)
68
+ }, restProps), /*#__PURE__*/React.createElement("div", {
69
+ className: "".concat(prefixCls, "-image"),
70
+ style: imageStyle
71
+ }, imageNode), title && /*#__PURE__*/React.createElement("div", {
72
+ className: "".concat(prefixCls, "-title")
73
+ }, title), des && /*#__PURE__*/React.createElement("div", {
52
74
  className: "".concat(prefixCls, "-description")
53
- }, description), children && /*#__PURE__*/React.createElement("div", {
75
+ }, des), children && /*#__PURE__*/React.createElement("div", {
54
76
  className: "".concat(prefixCls, "-footer")
55
- }, children)));
56
- });
77
+ }, children));
78
+ };
79
+
80
+ Empty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
81
+ Empty.PRESENTED_IMAGE_DATASPACE = dataSpaceEmptyImg;
82
+ Empty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
83
+ Empty.PRESENTED_IMAGE_WORKSHEET = worksheetEmptyImg;
84
+ Empty.PRESENTED_IMAGE_SEARCH = searchEmptyImg;
85
+ Empty.PRESENTED_IMAGE_AUTHORITY = authorityEmptyImg;
86
+ export default Empty;
@@ -3,22 +3,67 @@
3
3
  @ald-prefix: ant;
4
4
  @ald-iconfont-css-prefix: anticon;
5
5
 
6
- .ant-empty {
6
+ .ald-empty {
7
7
  display: flex;
8
+ flex-direction: column;
8
9
  align-items: center;
9
10
  justify-content: center;
10
- height: 100%;
11
- padding: 46px 0;
12
11
 
13
- &-content {
14
- text-align: center;
12
+ &.ald-empty-large {
13
+ .ald-empty-image {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+
18
+ .ald-empty-img {
19
+ display: block;
20
+ width: 264px;
21
+ max-width: fit-content;
22
+ height: auto;
23
+ }
24
+ }
25
+
26
+ .ald-empty-title {
27
+ margin-top: 12px;
28
+ color: @NL0;
29
+ font-size: 16px;
30
+ line-height: 24px;
31
+ }
32
+
33
+ .ald-empty-description {
34
+ margin-top: 16px;
35
+ color: @NL30;
36
+ font-size: 14px;
37
+ line-height: 20px;
38
+ }
15
39
  }
16
40
 
17
- &-description {
18
- color: @NL0;
19
- font-weight: 500;
20
- font-size: 12px;
21
- line-height: 16px;
22
- text-align: center;
41
+ &.ald-empty-small {
42
+ .ald-empty-image {
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+
47
+ .ald-empty-img {
48
+ display: block;
49
+ width: 48px;
50
+ max-width: fit-content;
51
+ height: auto;
52
+ }
53
+ }
54
+
55
+ .ald-empty-title {
56
+ margin-top: 12px;
57
+ color: @NL50;
58
+ font-size: 14px;
59
+ line-height: 20px;
60
+ }
61
+
62
+ .ald-empty-description {
63
+ margin-top: 16px;
64
+ color: @NL50;
65
+ font-size: 14px;
66
+ line-height: 20px;
67
+ }
23
68
  }
24
69
  }
@@ -5,9 +5,9 @@ declare const Icon: (props: IIconProps) => JSX.Element;
5
5
  export default Icon;
6
6
  export type { IconFontProps };
7
7
  export { createFromIconfontCN };
8
- export interface IIconProps extends IconFontProps {
8
+ export interface IIconProps extends Omit<IconFontProps, 'size'> {
9
9
  className?: string;
10
- size?: number;
10
+ size?: number | string;
11
11
  style?: React.CSSProperties;
12
12
  color?: string;
13
13
  type: string;
package/es/Icon/index.js CHANGED
@@ -1,9 +1,15 @@
1
+ var _excluded = ["className", "size", "style", "color"];
2
+
1
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; }
2
4
 
3
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; }
4
6
 
5
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; }
6
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
+
7
13
  import React from 'react';
8
14
  import { createFromIconfontCN } from '@ant-design/icons'; // @ts-ignore iconfont.js 没有ts类型定义
9
15
  // import iconfontJs from './iconfont/iconfont';
@@ -21,7 +27,9 @@ var Icon = function Icon(props) {
21
27
  size = _props$size === void 0 ? DEFAULT_SIZE : _props$size,
22
28
  _props$style = props.style,
23
29
  style = _props$style === void 0 ? {} : _props$style,
24
- color = props.color; // 添加一个前缀
30
+ color = props.color,
31
+ restProps = _objectWithoutProperties(props, _excluded); // 添加一个前缀
32
+
25
33
 
26
34
  var prefix = '';
27
35
  var type = "".concat(prefix).concat(props.type);
@@ -34,7 +42,7 @@ var Icon = function Icon(props) {
34
42
  width: size
35
43
  }, style);
36
44
 
37
- return /*#__PURE__*/React.createElement(IconFont, Object.assign({}, props, {
45
+ return /*#__PURE__*/React.createElement(IconFont, Object.assign({}, restProps, {
38
46
  style: finalStyle,
39
47
  type: type,
40
48
  className: className
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { GroupProps } from 'antd/lib/input';
3
- export interface IGroupProps extends GroupProps {
3
+ import { TSize } from '../Input';
4
+ export interface IGroupProps extends Omit<GroupProps, 'size'> {
4
5
  /**
5
6
  * @description 是否用紧凑模式
6
7
  * @default false
@@ -8,8 +9,9 @@ export interface IGroupProps extends GroupProps {
8
9
  compact?: boolean;
9
10
  /**
10
11
  * @description Input.Group 中所有的 Input 的大小,可选 large default small
12
+ * @type 'mini'|'small' | 'default' | 'large';
11
13
  * @default default
12
14
  */
13
- size?: 'large' | 'default' | 'small';
15
+ size?: TSize;
14
16
  }
15
17
  export default function Group(props: IGroupProps): JSX.Element;
@@ -1,6 +1,28 @@
1
+ var _excluded = ["size"];
2
+
3
+ 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; }
4
+
5
+ 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; }
6
+
1
7
  import React from 'react';
2
8
  import AntdInput from 'antd/lib/input';
9
+ import classnames from 'classnames';
3
10
  var AntdGroup = AntdInput.Group;
4
11
  export default function Group(props) {
5
- return /*#__PURE__*/React.createElement(AntdGroup, Object.assign({}, props));
12
+ var _props$size = props.size,
13
+ size = _props$size === void 0 ? 'default' : _props$size,
14
+ rest = _objectWithoutProperties(props, _excluded);
15
+
16
+ var getClassName = function getClassName(groupSize) {
17
+ return classnames('ald-input-group', {
18
+ 'ald-input-group-large': groupSize === 'large',
19
+ 'ald-input-group-small': groupSize === 'small',
20
+ 'ald-input-group-mini': groupSize === 'mini',
21
+ 'ald-input-group-middle': !['mini', 'small', 'large'].includes(groupSize)
22
+ });
23
+ };
24
+
25
+ return /*#__PURE__*/React.createElement(AntdGroup, Object.assign({
26
+ className: getClassName(size)
27
+ }, rest));
6
28
  }
@@ -7,7 +7,7 @@ interface IShowCountProps {
7
7
  maxLength?: number;
8
8
  }) => string;
9
9
  }
10
- export declare type TSize = 'small' | 'default' | 'large';
10
+ export declare type TSize = 'mini' | 'small' | 'default' | 'large';
11
11
  export type { InputRef };
12
12
  declare type ChangeEventHandler = (e: React.ChangeEvent<HTMLInputElement>) => void;
13
13
  export interface IInputProps extends Omit<InputProps, 'size' | 'id' | 'prefix' | 'allowClear' | 'disabled' | 'showCount' | 'maxLength' | 'value' | 'defaultValue' | 'onPressEnter' | 'onChange'> {
@@ -6,6 +6,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
6
6
 
7
7
  import React from 'react';
8
8
  import AntdInput from 'antd/lib/input/Input';
9
+ import classnames from 'classnames';
9
10
  var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
11
  var _props$size = props.size,
11
12
  size = _props$size === void 0 ? 'default' : _props$size,
@@ -19,11 +20,22 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
19
20
  return 'middle';
20
21
  };
21
22
 
23
+ var getClassName = function getClassName(inputSize) {
24
+ return classnames('ald-input', {
25
+ 'ald-input-small': inputSize === 'small',
26
+ 'ald-input-large': inputSize === 'large',
27
+ 'ald-input-mini': inputSize === 'mini',
28
+ 'ald-input-middle': !['small', 'mini', 'large'].includes(inputSize),
29
+ 'ald-input-showCount': props.showCount
30
+ });
31
+ };
32
+
22
33
  return /*#__PURE__*/React.createElement(AntdInput, Object.assign({}, rest, {
23
34
  // @ts-ignore
24
35
  ref: ref,
25
36
  size: getInputSize(size),
26
37
  bordered: true,
38
+ className: getClassName(size),
27
39
  addonAfter: null,
28
40
  addonBefore: null,
29
41
  suffix: null
@@ -1,11 +1,17 @@
1
1
  import React from 'react';
2
2
  import { PasswordProps } from 'antd/lib/input/Password';
3
- export interface IPasswordProps extends PasswordProps {
3
+ import { TSize } from '../Input';
4
+ export interface IPasswordProps extends Omit<PasswordProps, 'size'> {
4
5
  /**
5
6
  * @description 是否显示切换按钮
6
7
  * @default true
7
8
  */
8
9
  visibilityToggle?: boolean;
10
+ /**
11
+ * @description 尺寸大学
12
+ * @default default
13
+ */
14
+ size?: TSize;
9
15
  }
10
16
  declare const _default: React.ForwardRefExoticComponent<IPasswordProps & React.RefAttributes<any>>;
11
17
  export default _default;
@@ -1,14 +1,36 @@
1
+ var _excluded = ["size"];
2
+
3
+ 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; }
4
+
5
+ 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; }
6
+
1
7
  import React from 'react';
2
8
  import Icon from '../../../Icon';
3
- import AntdPassword from 'antd/lib/input/Password'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
+ import AntdPassword from 'antd/lib/input/Password';
10
+ import classnames from 'classnames'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
4
11
 
5
12
  export default /*#__PURE__*/React.forwardRef(function (props, ref) {
6
- return /*#__PURE__*/React.createElement(AntdPassword, Object.assign({}, props, {
13
+ var _props$size = props.size,
14
+ size = _props$size === void 0 ? 'default' : _props$size,
15
+ restProps = _objectWithoutProperties(props, _excluded);
16
+
17
+ var getClassName = function getClassName(inputSize) {
18
+ return classnames('ald-input', {
19
+ 'ald-input-small': inputSize === 'small',
20
+ 'ald-input-large': inputSize === 'large',
21
+ 'ald-input-mini': inputSize === 'mini',
22
+ 'ald-input-middle': !['small', 'mini', 'large'].includes(inputSize)
23
+ });
24
+ };
25
+
26
+ return /*#__PURE__*/React.createElement(AntdPassword, Object.assign({}, restProps, {
7
27
  ref: ref,
28
+ className: getClassName(size),
8
29
  iconRender: function iconRender(visible) {
9
30
  var type = visible ? 'eye' : 'eye_off';
10
31
  return /*#__PURE__*/React.createElement(Icon, {
11
- type: type
32
+ type: type,
33
+ size: "1em"
12
34
  });
13
35
  }
14
36
  }));