@aloudata/aloudata-design 0.2.7 → 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 +163 -130
  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 +1 -2
  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 -119
  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 +58 -166
  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 +2 -1
  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 +10 -10
  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 +163 -130
  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 +1 -2
  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 -118
  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 +58 -166
  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 +2 -1
  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 +10 -10
  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,39 +1,71 @@
1
1
  @import '../../style/index.less';
2
2
 
3
+ //status- default
4
+ @Tabs-color: @NL30;
5
+ @Tabs-fontWeight: 400;
6
+ //active
7
+ @Tabs-color-active: @B60;
8
+ @Tabs-fontWeight-active: 600;
9
+
10
+ //middle - default
11
+ @Tabs-fontSize: 14px;
12
+ @Tabs-lineHeight: 20px;
13
+ @Tabs-ink-link-bar-height: 2px;
14
+ //large
15
+ @Tabs-fontSize-large: 16px;
16
+ @Tabs-lineHeight-large: 24px;
17
+ @Tabs-ink-link-bar-height-large: 3px;
18
+ // @Tabs-
3
19
  .ant-tabs.ald-tabs {
4
20
  &.ant-tabs {
5
21
  color: @NL30;
6
22
  }
7
23
 
8
24
  .ant-tabs-tab {
9
- font-size: 14px;
10
- line-height: 20px;
25
+ padding: 8px 0;
26
+ color: @Tabs-color;
27
+ font-weight: @Tabs-fontWeight;
28
+ font-size: @Tabs-fontSize;
29
+ line-height: @Tabs-lineHeight;
11
30
 
12
31
  &:hover {
13
32
  color: inherit;
14
33
  }
15
34
 
16
35
  &.ant-tabs-tab-active {
17
- font-weight: 500;
36
+ font-weight: @Tabs-fontWeight-active;
18
37
  }
19
38
  }
20
39
 
21
40
  .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
41
+ color: @Tabs-color-active;
42
+ font-weight: @Tabs-fontWeight-active;
22
43
  text-shadow: none;
23
44
  }
24
45
 
46
+ .ant-tabs-ink-bar {
47
+ height: @Tabs-ink-link-bar-height;
48
+ background: @Tabs-color-active;
49
+ border-top-left-radius: 2px;
50
+ border-top-right-radius: 2px;
51
+ }
52
+
25
53
  /* large size */
26
54
  &.ant-tabs-large {
27
55
  .ant-tabs-tab {
28
- font-size: 16px;
29
- line-height: 24px;
56
+ font-size: @Tabs-fontSize-large;
57
+ line-height: @Tabs-lineHeight-large;
58
+ }
59
+
60
+ .ant-tabs-ink-bar {
61
+ height: @Tabs-ink-link-bar-height-large;
30
62
  }
31
63
  }
32
64
 
33
65
  &.ald-tabs-default {
34
66
  .ant-tabs-tab {
35
- font-size: 14px;
36
- line-height: 20px;
67
+ font-size: @Tabs-fontSize;
68
+ line-height: @Tabs-lineHeight;
37
69
  }
38
70
  }
39
71
 
@@ -3,8 +3,9 @@
3
3
  .ald-tooltip-overlay {
4
4
  .ant-tooltip-inner {
5
5
  padding: 6px 12px;
6
+ line-height: 20px;
6
7
  background: @BG10;
7
- border-radius: @ald-border-radius-base;
8
+ border-radius: @border-radius-base;
8
9
  box-shadow: none;
9
10
  }
10
11
 
package/es/index.d.ts CHANGED
@@ -12,12 +12,12 @@ export { default as Tabs } from './Tabs';
12
12
  export type { ITabsProps as TabsProps, TabsSize } from './Tabs';
13
13
  export { default as Tooltip } from './Tooltip';
14
14
  export type { ITooltipProps as TooltipProps, ActionType as TooltipActionType } from './Tooltip';
15
+ export type { SelectProps } from './Select';
15
16
  export { default as Select } from './Select';
16
- export type { ISelectProps as SelectProps, IOption } from './Select/interface';
17
17
  export { default as Table } from './Table';
18
18
  export type { ISort, TSortOrder, ITableProps, IColumn } from './Table/interface';
19
19
  export { default as Navigator } from './Navigator';
20
- export type { INavigatorProps as NavigatorProps, IMenuItem as NavigatorMenu } from './Navigator';
20
+ export type { INavigatorProps as NavigatorProps, IMenuItem as NavigatorMenu, ISelectedMenuInfo as SelectedMenuInfo, } from './Navigator';
21
21
  export { default as Alert } from './Alert';
22
22
  export type { AlertProps } from './Alert';
23
23
  export { default as Col } from './Col';
@@ -56,3 +56,15 @@ export { default as Radio } from './Radio';
56
56
  export type { RadioProps, RadioChangeEvent, RadioGroupProps } from './Radio';
57
57
  export { default as Checkbox } from './Checkbox';
58
58
  export type { CheckboxProps, CheckboxOptionType } from './Checkbox';
59
+ export { default as Modal } from './Modal';
60
+ export type { ModalProps, ModalFuncProps } from './Modal';
61
+ export { default as Popover } from './Popover';
62
+ export type { PopoverProps } from './Popover';
63
+ export type { InputNumberProps } from './InputNumber';
64
+ export { default as InputNumber } from './InputNumber';
65
+ export { default as Breadcrumb } from './Breadcrumb';
66
+ export type { BreadcrumbProps, BreadcrumbItemProps } from './Breadcrumb';
67
+ export { default as Empty } from './Empty';
68
+ export type { IEmptyProps as EmptyProps } from './Empty';
69
+ export { default as Avatar } from './Avatar';
70
+ export type { IAvatarProps as AvatarProps } from './Avatar';
package/es/index.js CHANGED
@@ -27,4 +27,10 @@ export { default as Steps } from './Steps';
27
27
  export { default as Form } from './Form';
28
28
  export { default as Divider } from './Divider';
29
29
  export { default as Radio } from './Radio';
30
- export { default as Checkbox } from './Checkbox';
30
+ export { default as Checkbox } from './Checkbox';
31
+ export { default as Modal } from './Modal';
32
+ export { default as Popover } from './Popover';
33
+ export { default as InputNumber } from './InputNumber';
34
+ export { default as Breadcrumb } from './Breadcrumb';
35
+ export { default as Empty } from './Empty';
36
+ export { default as Avatar } from './Avatar';
@@ -1,3 +1,4 @@
1
1
  @root-entry-name: default;
2
2
  @import './mixins/index.less';
3
- @import './themes/default/index.less';
3
+ @import './themes/default/index.less';
4
+ @import './mixins/index.less';
@@ -0,0 +1,8 @@
1
+ // 1. 字体样式
2
+ .textStyle(@color: @NL50, @font-size: 14px, @line-height: 20px, @font-weight: normal, @font-style: normal) {
3
+ color: @color;
4
+ font-weight: @font-weight;
5
+ font-size: @font-size;
6
+ font-style: @font-style;
7
+ line-height: @line-height;
8
+ }
@@ -1,20 +1,20 @@
1
1
  @import './themeColor.module.less';
2
- @font-family:sans-serif,-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol','Noto Color Emoji';
2
+ @font-family:Inter, -apple-system, PingFang SC, BlinkMacSystemFont,"Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
3
3
  @ald-prefix: ant;
4
4
 
5
5
 
6
6
  // height rules
7
- @ald-height-base: 28px;
8
- @ald-height-lg: 32px;
9
- @ald-height-sm: 22px;
7
+ @height-base: 28px;
8
+ @height-lg: 32px;
9
+ @height-sm: 22px;
10
10
 
11
11
 
12
- @ald-border-radius-base: 8px;
13
- @ald-border-radius-sm: 6px;
14
- @ald-border-color-base: #e7e8e9; // 边框的基础色
12
+ @border-radius-base: 8px;
13
+ @border-radius-sm: 6px;
14
+ @border-color-base: #e7e8e9; // 边框的基础色
15
15
 
16
16
  // color
17
- @primary-color: @B60; // 主色调
17
+ @primary-color: @B40; // 主色调
18
18
  @error-color: @SC40; // 错误色
19
19
  @success-color: @SA40; // 成功色
20
20
  @warning-color: @SB40; // 警告色
@@ -32,5 +32,5 @@
32
32
 
33
33
  //Select
34
34
 
35
- @ald-select-placeholder-color: @NL50;
36
- @ald-select-label-margin-right:4px;
35
+ @select-placeholder-color: @NL50;
36
+ @select-label-margin-right:4px;
@@ -2,7 +2,7 @@
2
2
  *中性浅色背景 Neutral Light
3
3
  * 主要用于文字颜色
4
4
  **/
5
- @NL0: #121212;
5
+ @NL0: #001A33;
6
6
  @NL97: fade(@NL0, 3%);
7
7
  @NL95: fade(@NL0, 5%);
8
8
  @NL90: fade(@NL0, 10%);
@@ -36,101 +36,84 @@
36
36
  * 品牌色 Brand
37
37
  * 用作主操作强调、文字链、品牌传递
38
38
  **/
39
- @B10: #00127B;
40
- @B20: #1029BC;
41
- @B30: #2944D7;
42
- @B40: #435CF0;
43
- @B50: #6077FF;
44
- @B60: #7F92FF;
45
- @B70: #9FADFF;
46
- @B80: #BDC9FF;
47
- @B90: #DFE3FE;
48
- @B95: #EFF1FF;
49
- @B98: #F8F9FF;
39
+ @B10: #001252;
40
+ @B20: #071E6A;
41
+ @B30: #0F2B7F;
42
+ @B40: #0F38A6;
43
+ @B50: #1945B3;
44
+ @B60: #1552DF;
45
+ @B70: #5588F6;
46
+ @B80: #79A5FE;
47
+ @B90: #ABC8FE;
48
+ @B95: #D4E4FF;
49
+ @B98: #EFF5FF;
50
50
 
51
51
  /**
52
52
  * 辅助A Secondary A
53
53
  * 表达完成、成功
54
54
  **/
55
- @SA10: #00270F;
56
- @SA20: #024F20;
57
- @SA30: #007830;
58
- @SA40: #059F41;
59
- @SA50: #08C552;
60
- @SA60: #1BDE6D;
61
- @SA70: #35F886;
62
- @SA80: #70FFAB;
63
- @SA90: #B8FFD5;
64
- @SA95: #DBFFEA;
65
- @SA98: #EFFFF5;
55
+ @SA10: #003331;
56
+ @SA20: #00493F;
57
+ @SA30: #015844;
58
+ @SA40: #026E4A;
59
+ @SA50: #03834C;
60
+ @SA60: #05994A;
61
+ @SA70: #35C168;
62
+ @SA80: #5EE080;
63
+ @SA90: #96F4A5;
64
+ @SA95: #C9F9CC;
65
+ @SA98: #F0FFF0;
66
66
 
67
67
  /**
68
68
  * 辅助B Secondary B
69
69
  * 表达提醒、警告
70
70
  **/
71
- @SB10: #261600;
72
- @SB20: #542B00;
73
- @SB30: #7E4100;
74
- @SB40: #A85700;
75
- @SB50: #D26E00;
76
- @SB60: #F48500;
77
- @SB70: #FFA000;
78
- @SB80: #FFBF5B;
79
- @SB90: #FFDEB0;
80
- @SB95: #FFF0D9;
81
- @SB98: #FFF8EE;
71
+ @SB10: #472800;
72
+ @SB20: #7A4C07;
73
+ @SB30: #93610D;
74
+ @SB40: #B77F14;
75
+ @SB50: #DB9F1D;
76
+ @SB60: #FFC229;
77
+ @SB70: #FFD55E;
78
+ @SB80: #FFE17E;
79
+ @SB90: #FFEEA9;
80
+ @SB95: #FFF7D4;
81
+ @SB98: #FFFCEB;
82
82
 
83
83
  /**
84
84
  * 辅助C Secondary C
85
85
  * 表达错误、失败
86
86
  **/
87
- @SC10: #550005;
88
- @SC20: #AF0001;
89
- @SC30: #EC0011;
90
- @SC40: #FF0033;
91
- @SC50: #FF2755;
92
- @SC60: #FF5B78;
93
- @SC70: #FF879A;
94
- @SC80: #FFAFBB;
95
- @SC90: #FFD7DE;
96
- @SC95: #FFEBEE;
97
- @SC98: #FFF6F7;
87
+ @SC10: #4D000B;
88
+ @SC20: #76070F;
89
+ @SC30: #8F0C0C;
90
+ @SC40: #B11E13;
91
+ @SC50: #D4361B;
92
+ @SC60: #F75426;
93
+ @SC70: #FA895B;
94
+ @SC80: #FCAB7C;
95
+ @SC90: #FECDA8;
96
+ @SC95: #FEE9D3;
97
+ @SC98: #FFF8F0;
98
98
 
99
99
  /**
100
100
  * 背景色 Background
101
101
  * 主要用于背景色
102
102
  **/
103
103
  @BG0: #121212;
104
- @BG10: #2A2A2A;
105
- @BG20: #414141;
106
- @BG30: #595959;
107
- @BG40: #717171;
108
- @BG50: #88888B;
109
- @BG60: #A0A0A0;
110
- @BG70: #B7B7B7;
111
- @BG80: #D0D0D0;
112
- @BG90: #E7E8E8;
113
- @BG95: #F3F3F3;
114
- @BG97: #F8F8F8;
104
+ @BG10: #0F1524;
105
+ @BG20: #1F2B47;
106
+ @BG30: #314168;
107
+ @BG40: #455987;
108
+ @BG50: #5C71A3;
109
+ @BG60: #7A8DB8;
110
+ @BG70: #9CA9C9;
111
+ @BG80: #BDC6DB;
112
+ @BG90: #E7EBF3;
113
+ @BG95: #F5F6FA;
114
+ @BG97: #FBFCFE;
115
115
  @BG100: #FFFFFF;
116
116
 
117
- /**
118
- * 品牌背景 Brand Background
119
- * 品牌色衍生灰调背景
120
- **/
121
- @BBG10: #061B3B;
122
- @BBG15: #112645;
123
- @BBG20: #203555;
124
- @BBG30: #3B4F6E;
125
- @BBG40: #536788;
126
- @BBG50: #6C82A3;
127
- @BBG60: #869BBB;
128
- @BBG70: #A0B5D5;
129
- @BBG80: #BACDEE;
130
- @BBG90: #D7E7FE;
131
- @BBG95: #EBF3FF;
132
- @BBG97: #F3F8FF;
133
- @BBG98: #F7F8FF;
134
117
 
135
118
  /***
136
119
  * 黑白
@@ -147,10 +130,7 @@
147
130
  /***
148
131
  * 投影
149
132
  ***/
150
- @shadow-option: 0 1px 1px rgba(0, 0, 0, 0.12);
151
- @shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 1px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.08);
152
- @shadow-actionsheet: 0 3px 5px rgba(0, 0, 0, 0.1), 0 1px 18px rgba(0, 0, 0, 0.06), 0 6px 10px rgba(0, 0, 0, 0.08);
153
- @shadow-notification: 0 11px 15px rgba(0, 0, 0, 0.1), 0 9px 46px rgba(0, 0, 0, 0.08), 0 24px 38px rgba(0, 0, 0, 0.04);
133
+ @shadow-L:0px 11px 15px rgba(0, 26, 51, 0.1), 0px 9px 46px rgba(0, 26, 51, 0.05), 0px 24px 38px rgba(0, 26, 51, 0.03);
154
134
 
155
135
  // 用css module的能力,将less变量输出给js,供js文件中使用
156
136
  :export {
@@ -235,25 +215,9 @@
235
215
  BG95: @BG95;
236
216
  BG97: @BG97;
237
217
  BG100: @BG100;
238
- BBG10: @BBG10;
239
- BBG15: @BBG15;
240
- BBG20: @BBG20;
241
- BBG30: @BBG30;
242
- BBG40: @BBG40;
243
- BBG50: @BBG50;
244
- BBG60: @BBG60;
245
- BBG70: @BBG70;
246
- BBG80: @BBG80;
247
- BBG90: @BBG90;
248
- BBG95: @BBG95;
249
- BBG97: @BBG97;
250
- BBG98: @BBG98;
251
218
  WHITE: @white;
252
219
  BLACK: @black;
253
220
  IMAGE_HOLDER: @imageholder;
254
221
  MATE: @mate;
255
- SHADOW_OPTION: @shadow-option;
256
- SHADOW_CARD: @shadow-card;
257
- SHADOW_ACTIONSHEET: @shadow-actionsheet;
258
- SHADOW_NOTIFICATION: @shadow-notification;
222
+ SHADOW_L: @shadow-L;
259
223
  }
@@ -12,19 +12,6 @@ interface CssExports {
12
12
  'B90': string;
13
13
  'B95': string;
14
14
  'B98': string;
15
- 'BBG10': string;
16
- 'BBG15': string;
17
- 'BBG20': string;
18
- 'BBG30': string;
19
- 'BBG40': string;
20
- 'BBG50': string;
21
- 'BBG60': string;
22
- 'BBG70': string;
23
- 'BBG80': string;
24
- 'BBG90': string;
25
- 'BBG95': string;
26
- 'BBG97': string;
27
- 'BBG98': string;
28
15
  'BG0': string;
29
16
  'BG10': string;
30
17
  'BG100': string;
@@ -98,10 +85,7 @@ interface CssExports {
98
85
  'SC90': string;
99
86
  'SC95': string;
100
87
  'SC98': string;
101
- 'SHADOW_ACTIONSHEET': string;
102
- 'SHADOW_CARD': string;
103
- 'SHADOW_NOTIFICATION': string;
104
- 'SHADOW_OPTION': string;
88
+ 'SHADOW_L': string;
105
89
  'WHITE': string;
106
90
  }
107
91
  export const cssExports: CssExports;
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { AvatarProps as antdAvatarProps } from 'antd/es/avatar/avatar';
3
+ import Group from 'antd/es/avatar/group';
4
+ export type { GroupProps } from 'antd/es/avatar/group';
5
+ declare type TSize = 'large' | 'middle' | 'small' | 'mini' | number;
6
+ interface IAvatarProps extends Omit<antdAvatarProps, 'size'> {
7
+ size?: TSize;
8
+ }
9
+ export type { IAvatarProps };
10
+ interface ICompoundedComponent extends React.ForwardRefExoticComponent<IAvatarProps & React.RefAttributes<HTMLElement>> {
11
+ Group: typeof Group;
12
+ }
13
+ declare const Avatar: ICompoundedComponent;
14
+ export { Group };
15
+ export default Avatar;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ Object.defineProperty(exports, "Group", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _group.default;
12
+ }
13
+ });
14
+ exports.default = void 0;
15
+
16
+ var React = _interopRequireWildcard(require("react"));
17
+
18
+ var _avatar = _interopRequireDefault(require("antd/es/avatar/avatar"));
19
+
20
+ var _group = _interopRequireDefault(require("antd/es/avatar/group"));
21
+
22
+ var _classnames = _interopRequireDefault(require("classnames"));
23
+
24
+ var _excluded = ["size"];
25
+
26
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
+
28
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
+
30
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
+
32
+ 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; }
33
+
34
+ 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; }
35
+
36
+ var Avatar = function A(props) {
37
+ var _props$size = props.size,
38
+ size = _props$size === void 0 ? 'middle' : _props$size,
39
+ restProps = _objectWithoutProperties(props, _excluded);
40
+
41
+ var getSizeClass = function getSizeClass(avatarSize) {
42
+ if (['large', 'small', 'mini'].includes("".concat(avatarSize))) {
43
+ return (0, _classnames.default)('ald-avatar', "ald-avatar-".concat(avatarSize));
44
+ }
45
+
46
+ return (0, _classnames.default)('ald-avatar', 'ald-avatar-middle');
47
+ };
48
+
49
+ return /*#__PURE__*/React.createElement(_avatar.default, Object.assign({
50
+ size: typeof size === 'number' ? size : undefined,
51
+ className: getSizeClass(size)
52
+ }, restProps));
53
+ };
54
+
55
+ Avatar.Group = _group.default;
56
+ var _default = Avatar;
57
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1,34 @@
1
+ @import '../../style/index.less';
2
+
3
+ .ald-avatar.ald-avatar {
4
+ color: @ND0;
5
+ background-color: @B60;
6
+
7
+ &-large {
8
+ width: 40px;
9
+ height: 40px;
10
+ font-size: 20px;
11
+ line-height: 40px;
12
+ }
13
+
14
+ &-middle {
15
+ width: 32px;
16
+ height: 32px;
17
+ font-size: 16px;
18
+ line-height: 32px;
19
+ }
20
+
21
+ &-small {
22
+ width: 28px;
23
+ height: 28px;
24
+ font-size: 14px;
25
+ line-height: 28px;
26
+ }
27
+
28
+ &-mini {
29
+ width: 24px;
30
+ height: 24px;
31
+ font-size: 12px;
32
+ line-height: 24px;
33
+ }
34
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { BreadcrumbItemProps, BreadcrumbProps } from 'antd';
3
+ export type { BreadcrumbItemProps, BreadcrumbProps };
4
+ declare const Breadcrumb: {
5
+ (props: BreadcrumbProps): JSX.Element;
6
+ Item(props: BreadcrumbItemProps): JSX.Element;
7
+ };
8
+ export default Breadcrumb;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/breadcrumb/style");
9
+
10
+ var _breadcrumb = _interopRequireDefault(require("antd/es/breadcrumb"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _classnames = _interopRequireDefault(require("classnames"));
15
+
16
+ var _excluded = ["className", "separator"],
17
+ _excluded2 = ["className"];
18
+
19
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+
21
+ 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; }
22
+
23
+ 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; }
24
+
25
+ var BreadcrumbItem = _breadcrumb.default.Item;
26
+
27
+ var Breadcrumb = function Breadcrumb(props) {
28
+ var className = props.className,
29
+ separator = props.separator,
30
+ restProps = _objectWithoutProperties(props, _excluded);
31
+
32
+ return /*#__PURE__*/_react.default.createElement(_breadcrumb.default, Object.assign({}, restProps, {
33
+ separator: separator || /*#__PURE__*/_react.default.createElement("span", {
34
+ className: "default-separator"
35
+ }),
36
+ className: (0, _classnames.default)('ald-breadcrumb', className)
37
+ }));
38
+ };
39
+
40
+ Breadcrumb.Item = function (props) {
41
+ var className = props.className,
42
+ restProps = _objectWithoutProperties(props, _excluded2);
43
+
44
+ return /*#__PURE__*/_react.default.createElement(BreadcrumbItem, Object.assign({}, restProps, {
45
+ className: (0, _classnames.default)('ald-breadcrumb-item', className)
46
+ }));
47
+ };
48
+
49
+ var _default = Breadcrumb;
50
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1,28 @@
1
+ @import '../../style/index.less';
2
+
3
+ .ald-breadcrumb {
4
+ color: @NL50;
5
+ font-weight: 600;
6
+ font-size: 24px;
7
+ line-height: 32px;
8
+
9
+ .default-separator {
10
+ display: inline-block;
11
+ width: 10px;
12
+ height: 20px;
13
+ margin: 0 7px;
14
+ background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjQ0NzE5IDAuMTA1NzkyQzkuOTQxMTcgMC4zNTI3ODEgMTAuMTQxNCAwLjk1MzQ1NCA5Ljg5NDQgMS40NDc0M0wxLjg5NDQgMTkuNDQ3NEMxLjY0NzQxIDE5Ljk0MTQgMS4wNDY3NCAyMC4xNDE2IDAuNTUyNzYxIDE5Ljg5NDZDMC4wNTg3ODI5IDE5LjY0NzcgLTAuMTQxNDQyIDE5LjA0NyAwLjEwNTU0OCAxOC41NTNMOC4xMDU1NSAwLjU1MzAwNkM4LjM1MjU0IDAuMDU5MDI3IDguOTUzMjEgLTAuMTQxMTk3IDkuNDQ3MTkgMC4xMDU3OTJaIiBmaWxsPSIjMDAxQTMzIiBmaWxsLW9wYWNpdHk9IjAuNSIvPgo8L3N2Zz4=');
15
+ }
16
+
17
+ .ant-breadcrumb-separator {
18
+ margin: 0;
19
+ }
20
+
21
+ & > span {
22
+ color: @NL50;
23
+
24
+ &:last-child {
25
+ color: @NL0;
26
+ }
27
+ }
28
+ }
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import type { ButtonProps as AntdButtonProps } from 'antd/lib/button';
3
- export declare type ButtonType = 'primary' | 'secondary' | 'danger' | 'text' | 'link';
4
- export declare type Size = 'small' | 'default' | 'large';
5
- export interface IButtonProps extends Omit<AntdButtonProps, 'type' | 'size' | 'danger' | 'shape' | 'icon' | 'href' | 'target' | 'onClick' | 'loading'> {
3
+ export declare type ButtonType = 'primary' | 'secondary' | 'dangerous' | 'text' | 'link';
4
+ export declare type Size = 'mini' | 'small' | 'default' | 'large';
5
+ export interface IButtonProps extends Omit<AntdButtonProps, 'type' | 'size' | 'dangerous' | 'shape' | 'icon' | 'href' | 'target' | 'onClick' | 'loading'> {
6
6
  /**
7
7
  * @description 类型
8
- * @type 'primary' | 'secondary' | 'danger' | 'text' | 'link'
8
+ * @type 'primary' | 'secondary' | 'dangerous' | 'text' | 'link'
9
9
  * @default primary
10
10
  */
11
11
  type?: ButtonType;