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

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 (344) hide show
  1. package/README.md +15 -5
  2. package/es/Breadcrumb/index.d.ts +0 -1
  3. package/es/Breadcrumb/style/index.less +11 -3
  4. package/es/Button/index.js +17 -2
  5. package/es/Button/style/index.less +41 -39
  6. package/es/Button/style/variables.less +9 -2
  7. package/es/Card/index.d.ts +3 -0
  8. package/es/Card/index.js +3 -0
  9. package/es/{Message → Card}/style/index.d.ts +0 -0
  10. package/es/{Message → Card}/style/index.js +0 -0
  11. package/es/{Message → Card}/style/index.less +0 -0
  12. package/es/Checkbox/index.d.ts +0 -1
  13. package/es/Checkbox/style/index.less +19 -0
  14. package/es/Drawer/index.d.ts +4 -0
  15. package/es/Drawer/index.js +3 -0
  16. package/es/{Notification → Drawer}/style/index.d.ts +0 -0
  17. package/es/{Notification → Drawer}/style/index.js +0 -0
  18. package/es/{Notification → Drawer}/style/index.less +0 -0
  19. package/es/Dropdown/Button.js +3 -3
  20. package/es/Empty/image/Authority.d.ts +0 -1
  21. package/es/Empty/image/Dataspace.d.ts +0 -1
  22. package/es/Empty/image/Search.d.ts +0 -1
  23. package/es/Empty/image/Simple.d.ts +0 -1
  24. package/es/Empty/image/Worksheet.d.ts +0 -1
  25. package/es/Empty/image/empty.d.ts +0 -1
  26. package/es/Form/style/index.less +8 -0
  27. package/es/Icon/antdIconfont.d.ts +4 -0
  28. package/es/Icon/antdIconfont.js +2 -0
  29. package/es/Icon/components/Icon.d.ts +32 -0
  30. package/es/Icon/components/Icon.js +27 -0
  31. package/es/Icon/components/createFromScripts.d.ts +1 -0
  32. package/es/Icon/components/createFromScripts.js +35 -0
  33. package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
  34. package/es/Icon/icons/AddLine.d.ts +13 -0
  35. package/es/Icon/icons/AddLine.js +66 -0
  36. package/es/Icon/icons/AlertFill.d.ts +13 -0
  37. package/es/Icon/icons/AlertFill.js +73 -0
  38. package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
  39. package/es/Icon/icons/ArrowsDownLine.js +66 -0
  40. package/es/Icon/icons/CancelFill.d.ts +13 -0
  41. package/es/Icon/icons/CancelFill.js +73 -0
  42. package/es/Icon/icons/CheckFill.d.ts +13 -0
  43. package/es/Icon/icons/CheckFill.js +73 -0
  44. package/es/Icon/icons/CheckLine.d.ts +13 -0
  45. package/es/Icon/icons/CheckLine.js +73 -0
  46. package/es/Icon/icons/CloseLine.d.ts +13 -0
  47. package/es/Icon/icons/CloseLine.js +66 -0
  48. package/es/Icon/icons/DatabaseLine.d.ts +13 -0
  49. package/es/Icon/icons/DatabaseLine.js +66 -0
  50. package/es/Icon/icons/Deleteline.d.ts +13 -0
  51. package/es/Icon/icons/Deleteline.js +66 -0
  52. package/es/Icon/icons/DownloadLine.d.ts +13 -0
  53. package/es/Icon/icons/DownloadLine.js +73 -0
  54. package/es/Icon/icons/ErrorFill.d.ts +13 -0
  55. package/es/Icon/icons/ErrorFill.js +73 -0
  56. package/es/Icon/icons/EyeOffLine.d.ts +13 -0
  57. package/es/Icon/icons/EyeOffLine.js +73 -0
  58. package/es/Icon/icons/EyeOnLine.d.ts +13 -0
  59. package/es/Icon/icons/EyeOnLine.js +66 -0
  60. package/es/Icon/icons/FileLine.d.ts +13 -0
  61. package/es/Icon/icons/FileLine.js +73 -0
  62. package/es/Icon/icons/HomeFill.d.ts +13 -0
  63. package/es/Icon/icons/HomeFill.js +73 -0
  64. package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
  65. package/es/Icon/icons/LightningLine.d.ts +13 -0
  66. package/es/Icon/icons/LightningLine.js +66 -0
  67. package/es/Icon/icons/Loading.d.ts +13 -0
  68. package/es/Icon/icons/Loading.js +66 -0
  69. package/es/Icon/icons/More.d.ts +13 -0
  70. package/es/Icon/icons/More.js +66 -0
  71. package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
  72. package/es/Icon/icons/NewWindowsLine.js +74 -0
  73. package/es/Icon/icons/SearchLine.d.ts +13 -0
  74. package/es/Icon/icons/SearchLine.js +73 -0
  75. package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
  76. package/es/Icon/icons/SortAscendingLine.js +66 -0
  77. package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
  78. package/es/Icon/icons/SortDescendingLine.js +66 -0
  79. package/es/Icon/icons/TextLine.d.ts +13 -0
  80. package/es/Icon/icons/TextLine.js +73 -0
  81. package/es/Icon/icons/UserLine.d.ts +13 -0
  82. package/es/Icon/icons/UserLine.js +73 -0
  83. package/es/Icon/icons/style.css +9 -0
  84. package/es/Icon/icons/style.css.d.ts +10 -0
  85. package/es/Icon/index.d.ts +2 -13
  86. package/es/Icon/index.js +2 -53
  87. package/es/Icon/index.less +9 -17
  88. package/es/Icon/style/index.d.ts +1 -0
  89. package/es/Icon/style/index.js +1 -0
  90. package/es/Icon/style/index.less +0 -0
  91. package/es/Input/components/Group/index.d.ts +0 -1
  92. package/es/Input/components/Password/index.js +6 -5
  93. package/es/Input/style/index.less +1 -1
  94. package/es/InputNumber/index.d.ts +0 -1
  95. package/es/InputNumber/style/index.less +88 -16
  96. package/es/Menu/Divider.d.ts +0 -1
  97. package/es/Menu/style/index.less +4 -3
  98. package/es/Modal/index.js +21 -12
  99. package/es/Modal/locale.d.ts +7 -0
  100. package/es/Modal/locale.js +20 -0
  101. package/es/Modal/style/index.less +3 -3
  102. package/es/Navigator/components/Header/index.d.ts +0 -1
  103. package/es/Navigator/components/Menu/index.d.ts +0 -1
  104. package/es/Navigator/components/MenuItem/index.d.ts +1 -1
  105. package/es/Navigator/index.d.ts +1 -1
  106. package/es/Navigator/style/index.less +46 -5
  107. package/es/Popover/index.d.ts +0 -1
  108. package/es/Select/index.d.ts +2 -1
  109. package/es/Select/index.js +2 -1
  110. package/es/Select/rc-select/OptionList.js +3 -4
  111. package/es/Select/rc-select/Selector/MultipleSelector.js +13 -3
  112. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  113. package/es/Select/style/index.d.ts +0 -1
  114. package/es/Select/style/index.js +0 -1
  115. package/es/Select/style/index.less +105 -10
  116. package/es/Select/style/variables.less +20 -9
  117. package/es/Select/style/variables.less.d.ts +4 -1
  118. package/es/Select/utils/iconUtil.d.ts +2 -2
  119. package/es/Select/utils/iconUtil.js +10 -13
  120. package/es/Table/Table.d.ts +0 -1
  121. package/es/Table/Table.js +23 -14
  122. package/es/Table/style/index.less +7 -0
  123. package/es/Tabs/index.d.ts +2 -1
  124. package/es/Tabs/index.js +9 -6
  125. package/es/Tabs/style/index.less +67 -1
  126. package/es/index.d.ts +8 -3
  127. package/es/index.js +6 -3
  128. package/es/locale/default.d.ts +2 -0
  129. package/es/locale/default.js +2 -0
  130. package/es/locale/en_US.d.ts +3 -0
  131. package/es/locale/en_US.js +132 -0
  132. package/es/locale/zh_CN.d.ts +3 -2
  133. package/es/locale/zh_CN.js +131 -2
  134. package/es/locale-provider/LocaleReceiver.d.ts +4 -0
  135. package/es/locale-provider/LocaleReceiver.js +3 -0
  136. package/es/locale-provider/context.d.ts +7 -0
  137. package/es/locale-provider/context.js +3 -0
  138. package/es/locale-provider/default.d.ts +2 -0
  139. package/es/locale-provider/default.js +2 -0
  140. package/es/locale-provider/en_US.d.ts +2 -0
  141. package/es/locale-provider/en_US.js +2 -0
  142. package/es/locale-provider/index.d.ts +61 -0
  143. package/es/locale-provider/index.js +102 -0
  144. package/es/locale-provider/style/index.d.ts +1 -0
  145. package/es/locale-provider/style/index.js +1 -0
  146. package/es/locale-provider/style/index.less +2 -0
  147. package/es/locale-provider/zh_CN.d.ts +2 -0
  148. package/es/locale-provider/zh_CN.js +2 -0
  149. package/es/{Message → message}/index.d.ts +0 -0
  150. package/es/{Message → message}/index.js +0 -0
  151. package/{lib/Message → es/message}/style/index.d.ts +0 -0
  152. package/es/message/style/index.js +2 -0
  153. package/{lib/Message → es/message}/style/index.less +0 -0
  154. package/es/{Notification → notification}/index.d.ts +0 -0
  155. package/es/{Notification → notification}/index.js +0 -0
  156. package/{lib/Notification → es/notification}/style/index.d.ts +0 -0
  157. package/es/notification/style/index.js +2 -0
  158. package/{lib/Notification → es/notification}/style/index.less +0 -0
  159. package/es/style/index.less +1 -0
  160. package/es/style/themes/default/scrollBar.less +13 -0
  161. package/lib/Breadcrumb/index.d.ts +0 -1
  162. package/lib/Breadcrumb/style/index.less +11 -3
  163. package/lib/Button/index.js +18 -2
  164. package/lib/Button/style/index.less +41 -39
  165. package/lib/Button/style/variables.less +9 -2
  166. package/lib/Card/index.d.ts +3 -0
  167. package/lib/Card/index.js +15 -0
  168. package/lib/Card/style/index.d.ts +2 -0
  169. package/lib/{Message → Card}/style/index.js +0 -0
  170. package/lib/Card/style/index.less +1 -0
  171. package/lib/Checkbox/index.d.ts +0 -1
  172. package/lib/Checkbox/style/index.less +19 -0
  173. package/lib/Drawer/index.d.ts +4 -0
  174. package/lib/Drawer/index.js +15 -0
  175. package/lib/Drawer/style/index.d.ts +2 -0
  176. package/lib/{Notification → Drawer}/style/index.js +0 -0
  177. package/lib/Drawer/style/index.less +1 -0
  178. package/lib/Dropdown/Button.js +3 -3
  179. package/lib/Empty/image/Authority.d.ts +0 -1
  180. package/lib/Empty/image/Dataspace.d.ts +0 -1
  181. package/lib/Empty/image/Search.d.ts +0 -1
  182. package/lib/Empty/image/Simple.d.ts +0 -1
  183. package/lib/Empty/image/Worksheet.d.ts +0 -1
  184. package/lib/Empty/image/empty.d.ts +0 -1
  185. package/lib/Form/style/index.less +8 -0
  186. package/lib/Icon/antdIconfont.d.ts +4 -0
  187. package/lib/Icon/antdIconfont.js +13 -0
  188. package/lib/Icon/components/Icon.d.ts +32 -0
  189. package/lib/Icon/components/Icon.js +38 -0
  190. package/lib/Icon/components/createFromScripts.d.ts +1 -0
  191. package/lib/Icon/components/createFromScripts.js +41 -0
  192. package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
  193. package/lib/Icon/icons/AddLine.d.ts +13 -0
  194. package/lib/Icon/icons/AddLine.js +83 -0
  195. package/lib/Icon/icons/AlertFill.d.ts +13 -0
  196. package/lib/Icon/icons/AlertFill.js +90 -0
  197. package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
  198. package/lib/Icon/icons/ArrowsDownLine.js +83 -0
  199. package/lib/Icon/icons/CancelFill.d.ts +13 -0
  200. package/lib/Icon/icons/CancelFill.js +90 -0
  201. package/lib/Icon/icons/CheckFill.d.ts +13 -0
  202. package/lib/Icon/icons/CheckFill.js +90 -0
  203. package/lib/Icon/icons/CheckLine.d.ts +13 -0
  204. package/lib/Icon/icons/CheckLine.js +90 -0
  205. package/lib/Icon/icons/CloseLine.d.ts +13 -0
  206. package/lib/Icon/icons/CloseLine.js +83 -0
  207. package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
  208. package/lib/Icon/icons/DatabaseLine.js +83 -0
  209. package/lib/Icon/icons/Deleteline.d.ts +13 -0
  210. package/lib/Icon/icons/Deleteline.js +83 -0
  211. package/lib/Icon/icons/DownloadLine.d.ts +13 -0
  212. package/lib/Icon/icons/DownloadLine.js +90 -0
  213. package/lib/Icon/icons/ErrorFill.d.ts +13 -0
  214. package/lib/Icon/icons/ErrorFill.js +90 -0
  215. package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
  216. package/lib/Icon/icons/EyeOffLine.js +90 -0
  217. package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
  218. package/lib/Icon/icons/EyeOnLine.js +83 -0
  219. package/lib/Icon/icons/FileLine.d.ts +13 -0
  220. package/lib/Icon/icons/FileLine.js +90 -0
  221. package/lib/Icon/icons/HomeFill.d.ts +13 -0
  222. package/lib/Icon/icons/HomeFill.js +90 -0
  223. package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
  224. package/lib/Icon/icons/LightningLine.d.ts +13 -0
  225. package/lib/Icon/icons/LightningLine.js +83 -0
  226. package/lib/Icon/icons/Loading.d.ts +13 -0
  227. package/lib/Icon/icons/Loading.js +83 -0
  228. package/lib/Icon/icons/More.d.ts +13 -0
  229. package/lib/Icon/icons/More.js +83 -0
  230. package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
  231. package/lib/Icon/icons/NewWindowsLine.js +91 -0
  232. package/lib/Icon/icons/SearchLine.d.ts +13 -0
  233. package/lib/Icon/icons/SearchLine.js +90 -0
  234. package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
  235. package/lib/Icon/icons/SortAscendingLine.js +83 -0
  236. package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
  237. package/lib/Icon/icons/SortDescendingLine.js +83 -0
  238. package/lib/Icon/icons/TextLine.d.ts +13 -0
  239. package/lib/Icon/icons/TextLine.js +90 -0
  240. package/lib/Icon/icons/UserLine.d.ts +13 -0
  241. package/lib/Icon/icons/UserLine.js +90 -0
  242. package/lib/Icon/icons/style.css +9 -0
  243. package/lib/Icon/icons/style.css.d.ts +10 -0
  244. package/lib/Icon/index.d.ts +2 -13
  245. package/lib/Icon/index.js +2 -59
  246. package/lib/Icon/index.less +9 -17
  247. package/lib/Icon/style/index.d.ts +1 -0
  248. package/lib/Icon/style/index.js +1 -0
  249. package/lib/Icon/style/index.less +0 -0
  250. package/lib/Input/components/Group/index.d.ts +0 -1
  251. package/lib/Input/components/Password/index.js +7 -5
  252. package/lib/Input/style/index.less +1 -1
  253. package/lib/InputNumber/index.d.ts +0 -1
  254. package/lib/InputNumber/style/index.less +88 -16
  255. package/lib/Menu/Divider.d.ts +0 -1
  256. package/lib/Menu/style/index.less +4 -3
  257. package/lib/Modal/index.js +23 -12
  258. package/lib/Modal/locale.d.ts +7 -0
  259. package/lib/Modal/locale.js +31 -0
  260. package/lib/Modal/style/index.less +3 -3
  261. package/lib/Navigator/components/Header/index.d.ts +0 -1
  262. package/lib/Navigator/components/Menu/index.d.ts +0 -1
  263. package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
  264. package/lib/Navigator/index.d.ts +1 -1
  265. package/lib/Navigator/style/index.less +46 -5
  266. package/lib/Popover/index.d.ts +0 -1
  267. package/lib/Select/index.d.ts +2 -1
  268. package/lib/Select/index.js +2 -1
  269. package/lib/Select/rc-select/OptionList.js +3 -4
  270. package/lib/Select/rc-select/Selector/MultipleSelector.js +13 -3
  271. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  272. package/lib/Select/style/index.d.ts +0 -1
  273. package/lib/Select/style/index.js +0 -2
  274. package/lib/Select/style/index.less +105 -10
  275. package/lib/Select/style/variables.less +20 -9
  276. package/lib/Select/style/variables.less.d.ts +4 -1
  277. package/lib/Select/utils/iconUtil.d.ts +2 -2
  278. package/lib/Select/utils/iconUtil.js +11 -14
  279. package/lib/Table/Table.d.ts +0 -1
  280. package/lib/Table/Table.js +25 -15
  281. package/lib/Table/style/index.less +7 -0
  282. package/lib/Tabs/index.d.ts +2 -1
  283. package/lib/Tabs/index.js +9 -6
  284. package/lib/Tabs/style/index.less +67 -1
  285. package/lib/index.d.ts +8 -3
  286. package/lib/index.js +38 -14
  287. package/lib/locale/default.d.ts +2 -0
  288. package/lib/locale/default.js +13 -0
  289. package/lib/locale/en_US.d.ts +3 -0
  290. package/lib/locale/en_US.js +146 -0
  291. package/lib/locale/zh_CN.d.ts +3 -2
  292. package/lib/locale/zh_CN.js +134 -2
  293. package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
  294. package/lib/locale-provider/LocaleReceiver.js +23 -0
  295. package/lib/locale-provider/context.d.ts +7 -0
  296. package/lib/locale-provider/context.js +12 -0
  297. package/lib/locale-provider/default.d.ts +2 -0
  298. package/lib/locale-provider/default.js +13 -0
  299. package/lib/locale-provider/en_US.d.ts +2 -0
  300. package/lib/locale-provider/en_US.js +13 -0
  301. package/lib/locale-provider/index.d.ts +61 -0
  302. package/lib/locale-provider/index.js +116 -0
  303. package/lib/locale-provider/style/index.d.ts +1 -0
  304. package/lib/locale-provider/style/index.js +3 -0
  305. package/lib/locale-provider/style/index.less +2 -0
  306. package/lib/locale-provider/zh_CN.d.ts +2 -0
  307. package/lib/locale-provider/zh_CN.js +13 -0
  308. package/lib/{Message → message}/index.d.ts +0 -0
  309. package/lib/{Message → message}/index.js +0 -0
  310. package/lib/message/style/index.d.ts +2 -0
  311. package/lib/message/style/index.js +5 -0
  312. package/lib/message/style/index.less +1 -0
  313. package/lib/{Notification → notification}/index.d.ts +0 -0
  314. package/lib/{Notification → notification}/index.js +0 -0
  315. package/lib/notification/style/index.d.ts +2 -0
  316. package/lib/notification/style/index.js +5 -0
  317. package/lib/notification/style/index.less +1 -0
  318. package/lib/style/index.less +1 -0
  319. package/lib/style/themes/default/scrollBar.less +13 -0
  320. package/package.json +10 -8
  321. package/es/Icon/iconfont/demo.css +0 -539
  322. package/es/Icon/iconfont/demo_index.html +0 -720
  323. package/es/Icon/iconfont/iconfont.css +0 -109
  324. package/es/Icon/iconfont/iconfont.js +0 -46
  325. package/es/Icon/iconfont/iconfont.json +0 -170
  326. package/es/Icon/iconfont/iconfont.ttf +0 -0
  327. package/es/Icon/iconfont/iconfont.woff +0 -0
  328. package/es/Icon/iconfont/iconfont.woff2 +0 -0
  329. package/es/Table/components/Empty/empty-img.png +0 -0
  330. package/es/Table/components/Empty/index.d.ts +0 -4
  331. package/es/Table/components/Empty/index.js +0 -16
  332. package/es/Table/components/Empty/index.less +0 -24
  333. package/lib/Icon/iconfont/demo.css +0 -539
  334. package/lib/Icon/iconfont/demo_index.html +0 -720
  335. package/lib/Icon/iconfont/iconfont.css +0 -109
  336. package/lib/Icon/iconfont/iconfont.js +0 -48
  337. package/lib/Icon/iconfont/iconfont.json +0 -170
  338. package/lib/Icon/iconfont/iconfont.ttf +0 -0
  339. package/lib/Icon/iconfont/iconfont.woff +0 -0
  340. package/lib/Icon/iconfont/iconfont.woff2 +0 -0
  341. package/lib/Table/components/Empty/empty-img.png +0 -0
  342. package/lib/Table/components/Empty/index.d.ts +0 -4
  343. package/lib/Table/components/Empty/index.js +0 -30
  344. package/lib/Table/components/Empty/index.less +0 -24
@@ -0,0 +1,83 @@
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
+ exports.default = SortDescendingLine;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _style = _interopRequireDefault(require("./style.css"));
13
+
14
+ var _excluded = ["size", "width", "height", "spin", "rtl", "color", "fill", "stroke", "className"];
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ 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); }
19
+
20
+ 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; }
21
+
22
+ 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; }
23
+
24
+ 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; }
25
+
26
+ function SortDescendingLine(props) {
27
+ var root = (0, _react.useRef)(null);
28
+
29
+ var _props$size = props.size,
30
+ size = _props$size === void 0 ? '1em' : _props$size,
31
+ width = props.width,
32
+ height = props.height,
33
+ spin = props.spin,
34
+ rtl = props.rtl,
35
+ color = props.color,
36
+ fill = props.fill,
37
+ stroke = props.stroke,
38
+ className = props.className,
39
+ rest = _objectWithoutProperties(props, _excluded);
40
+
41
+ var _width = width || size;
42
+
43
+ var _height = height || size;
44
+
45
+ var _stroke = stroke || color;
46
+
47
+ var _fill = fill || color;
48
+
49
+ (0, _react.useEffect)(function () {
50
+ if (!_fill) {
51
+ var _root$current;
52
+
53
+ (_root$current = root.current) === null || _root$current === void 0 ? void 0 : _root$current.querySelectorAll('[data-follow-fill]').forEach(function (item) {
54
+ item.setAttribute('fill', item.getAttribute('data-follow-fill') || '');
55
+ });
56
+ }
57
+
58
+ if (!_stroke) {
59
+ var _root$current2;
60
+
61
+ (_root$current2 = root.current) === null || _root$current2 === void 0 ? void 0 : _root$current2.querySelectorAll('[data-follow-stroke]').forEach(function (item) {
62
+ item.setAttribute('stroke', item.getAttribute('data-follow-stroke') || '');
63
+ });
64
+ }
65
+ }, [stroke, color, fill]);
66
+ return /*#__PURE__*/_react.default.createElement("svg", Object.assign({
67
+ ref: root,
68
+ width: _width,
69
+ height: _height,
70
+ viewBox: "0 0 24 24",
71
+ preserveAspectRatio: "xMidYMid meet",
72
+ fill: "none",
73
+ role: "presentation",
74
+ xmlns: "http://www.w3.org/2000/svg",
75
+ className: "".concat(className || '', " ").concat(spin ? _style.default.spin : '', " ").concat(rtl ? _style.default.rtl : '').trim()
76
+ }, rest), /*#__PURE__*/_react.default.createElement("g", null, /*#__PURE__*/_react.default.createElement("path", {
77
+ "data-follow-fill": "#001A33",
78
+ d: "m13 18.586 4.293-4.293a1 1 0 0 1 1.414 1.414l-6 6a.997.997 0 0 1-1.414 0l-6-6a1 1 0 1 1 1.414-1.414L11 18.586V3a1 1 0 1 1 2 0v15.586Z",
79
+ clipRule: "evenodd",
80
+ fillRule: "evenodd",
81
+ fill: _fill
82
+ })));
83
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface IconProps extends React.SVGProps<SVGSVGElement> {
3
+ size?: string | number;
4
+ width?: string | number;
5
+ height?: string | number;
6
+ spin?: boolean;
7
+ rtl?: boolean;
8
+ color?: string;
9
+ fill?: string;
10
+ stroke?: string;
11
+ }
12
+ export default function TextLine(props: IconProps): JSX.Element;
13
+ export {};
@@ -0,0 +1,90 @@
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
+ exports.default = TextLine;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _style = _interopRequireDefault(require("./style.css"));
13
+
14
+ var _excluded = ["size", "width", "height", "spin", "rtl", "color", "fill", "stroke", "className"];
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ 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); }
19
+
20
+ 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; }
21
+
22
+ 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; }
23
+
24
+ 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; }
25
+
26
+ function TextLine(props) {
27
+ var root = (0, _react.useRef)(null);
28
+
29
+ var _props$size = props.size,
30
+ size = _props$size === void 0 ? '1em' : _props$size,
31
+ width = props.width,
32
+ height = props.height,
33
+ spin = props.spin,
34
+ rtl = props.rtl,
35
+ color = props.color,
36
+ fill = props.fill,
37
+ stroke = props.stroke,
38
+ className = props.className,
39
+ rest = _objectWithoutProperties(props, _excluded);
40
+
41
+ var _width = width || size;
42
+
43
+ var _height = height || size;
44
+
45
+ var _stroke = stroke || color;
46
+
47
+ var _fill = fill || color;
48
+
49
+ (0, _react.useEffect)(function () {
50
+ if (!_fill) {
51
+ var _root$current;
52
+
53
+ (_root$current = root.current) === null || _root$current === void 0 ? void 0 : _root$current.querySelectorAll('[data-follow-fill]').forEach(function (item) {
54
+ item.setAttribute('fill', item.getAttribute('data-follow-fill') || '');
55
+ });
56
+ }
57
+
58
+ if (!_stroke) {
59
+ var _root$current2;
60
+
61
+ (_root$current2 = root.current) === null || _root$current2 === void 0 ? void 0 : _root$current2.querySelectorAll('[data-follow-stroke]').forEach(function (item) {
62
+ item.setAttribute('stroke', item.getAttribute('data-follow-stroke') || '');
63
+ });
64
+ }
65
+ }, [stroke, color, fill]);
66
+ return /*#__PURE__*/_react.default.createElement("svg", Object.assign({
67
+ ref: root,
68
+ width: _width,
69
+ height: _height,
70
+ viewBox: "0 0 24 24",
71
+ preserveAspectRatio: "xMidYMid meet",
72
+ fill: "none",
73
+ role: "presentation",
74
+ xmlns: "http://www.w3.org/2000/svg",
75
+ className: "".concat(className || '', " ").concat(spin ? _style.default.spin : '', " ").concat(rtl ? _style.default.rtl : '').trim()
76
+ }, rest), /*#__PURE__*/_react.default.createElement("g", null, /*#__PURE__*/_react.default.createElement("g", {
77
+ clipPath: "url(#562cc__a)"
78
+ }, /*#__PURE__*/_react.default.createElement("path", {
79
+ "data-follow-fill": "#001A33",
80
+ fillRule: "evenodd",
81
+ clipRule: "evenodd",
82
+ d: "M7 5.778 4.49 13h5.02L7 5.778Zm-5.055 14.55L3.795 15h6.41l1.85 5.328a1 1 0 1 0 1.89-.656L8.563 4.182a1.809 1.809 0 0 0-.557-.816A1.582 1.582 0 0 0 7 3c-.382 0-.732.14-1.006.366a1.809 1.809 0 0 0-.557.816L.055 19.672a1 1 0 0 0 1.89.656ZM19 13a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm0-2c1.126 0 2.164.372 3 1a1 1 0 0 1 2 0v8a1 1 0 0 1-2 0 5 5 0 1 1-3-9Z",
83
+ fill: _fill
84
+ })), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("clipPath", {
85
+ id: "562cc__a"
86
+ }, /*#__PURE__*/_react.default.createElement("path", {
87
+ d: "M0 0h24v24H0z",
88
+ fill: "#fff"
89
+ })))));
90
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface IconProps extends React.SVGProps<SVGSVGElement> {
3
+ size?: string | number;
4
+ width?: string | number;
5
+ height?: string | number;
6
+ spin?: boolean;
7
+ rtl?: boolean;
8
+ color?: string;
9
+ fill?: string;
10
+ stroke?: string;
11
+ }
12
+ export default function UserLine(props: IconProps): JSX.Element;
13
+ export {};
@@ -0,0 +1,90 @@
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
+ exports.default = UserLine;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _style = _interopRequireDefault(require("./style.css"));
13
+
14
+ var _excluded = ["size", "width", "height", "spin", "rtl", "color", "fill", "stroke", "className"];
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ 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); }
19
+
20
+ 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; }
21
+
22
+ 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; }
23
+
24
+ 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; }
25
+
26
+ function UserLine(props) {
27
+ var root = (0, _react.useRef)(null);
28
+
29
+ var _props$size = props.size,
30
+ size = _props$size === void 0 ? '1em' : _props$size,
31
+ width = props.width,
32
+ height = props.height,
33
+ spin = props.spin,
34
+ rtl = props.rtl,
35
+ color = props.color,
36
+ fill = props.fill,
37
+ stroke = props.stroke,
38
+ className = props.className,
39
+ rest = _objectWithoutProperties(props, _excluded);
40
+
41
+ var _width = width || size;
42
+
43
+ var _height = height || size;
44
+
45
+ var _stroke = stroke || color;
46
+
47
+ var _fill = fill || color;
48
+
49
+ (0, _react.useEffect)(function () {
50
+ if (!_fill) {
51
+ var _root$current;
52
+
53
+ (_root$current = root.current) === null || _root$current === void 0 ? void 0 : _root$current.querySelectorAll('[data-follow-fill]').forEach(function (item) {
54
+ item.setAttribute('fill', item.getAttribute('data-follow-fill') || '');
55
+ });
56
+ }
57
+
58
+ if (!_stroke) {
59
+ var _root$current2;
60
+
61
+ (_root$current2 = root.current) === null || _root$current2 === void 0 ? void 0 : _root$current2.querySelectorAll('[data-follow-stroke]').forEach(function (item) {
62
+ item.setAttribute('stroke', item.getAttribute('data-follow-stroke') || '');
63
+ });
64
+ }
65
+ }, [stroke, color, fill]);
66
+ return /*#__PURE__*/_react.default.createElement("svg", Object.assign({
67
+ ref: root,
68
+ width: _width,
69
+ height: _height,
70
+ viewBox: "0 0 24 24",
71
+ preserveAspectRatio: "xMidYMid meet",
72
+ fill: "none",
73
+ role: "presentation",
74
+ xmlns: "http://www.w3.org/2000/svg",
75
+ className: "".concat(className || '', " ").concat(spin ? _style.default.spin : '', " ").concat(rtl ? _style.default.rtl : '').trim()
76
+ }, rest), /*#__PURE__*/_react.default.createElement("g", null, /*#__PURE__*/_react.default.createElement("g", {
77
+ clipPath: "url(#56361__a)"
78
+ }, /*#__PURE__*/_react.default.createElement("path", {
79
+ "data-follow-fill": "#001A33",
80
+ d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10a9.964 9.964 0 0 1-2.627 6.756A9.242 9.242 0 0 0 16.51 16.2 9.09 9.09 0 0 0 12 15a9.09 9.09 0 0 0-4.51 1.2 9.242 9.242 0 0 0-2.863 2.556A9.964 9.964 0 0 1 2 12Zm4.128 8.095A9.955 9.955 0 0 0 12 22a9.955 9.955 0 0 0 5.872-1.904 7.247 7.247 0 0 0-2.354-2.16A7.09 7.09 0 0 0 12 17a7.09 7.09 0 0 0-3.518.937 7.247 7.247 0 0 0-2.354 2.158ZM12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0Zm0 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM7 9a5 5 0 1 1 10 0A5 5 0 0 1 7 9Z",
81
+ clipRule: "evenodd",
82
+ fillRule: "evenodd",
83
+ fill: _fill
84
+ })), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("clipPath", {
85
+ id: "56361__a"
86
+ }, /*#__PURE__*/_react.default.createElement("path", {
87
+ fill: "#fff",
88
+ d: "M0 0h24v24H0z"
89
+ })))));
90
+ }
@@ -0,0 +1,9 @@
1
+ .spin,.spin svg {animation: iconpark-spin 1s infinite linear;}
2
+ .rtl,.rtl svg {transform: scaleX(-1);}
3
+ .spin.rtl,.spin.rtl svg {animation: iconpark-spin-rtl 1s infinite linear;}
4
+ @keyframes iconpark-spin {
5
+ 0% { -webkit-transform: rotate(0); transform: rotate(0);} 100% {-webkit-transform: rotate(360deg); transform: rotate(360deg);}
6
+ }
7
+ @keyframes iconpark-spin-rtl {
8
+ 0% {-webkit-transform: scaleX(-1) rotate(0); transform: scaleX(-1) rotate(0);} 100% {-webkit-transform: scaleX(-1) rotate(360deg); transform: scaleX(-1) rotate(360deg);}
9
+ }
@@ -0,0 +1,10 @@
1
+ // This file is automatically generated.
2
+ // Please do not change this file!
3
+ interface CssExports {
4
+ 'iconpark-spin': string;
5
+ 'iconpark-spin-rtl': string;
6
+ 'rtl': string;
7
+ 'spin': string;
8
+ }
9
+ export const cssExports: CssExports;
10
+ export default cssExports;
@@ -1,14 +1,3 @@
1
- import React from 'react';
2
- import { IconFontProps } from '@ant-design/icons/lib/components/IconFont';
3
- import { createFromIconfontCN } from '@ant-design/icons';
4
- declare const Icon: (props: IIconProps) => JSX.Element;
1
+ import Icon from './components/Icon';
2
+ export type { IBaseIconProps } from './components/Icon';
5
3
  export default Icon;
6
- export type { IconFontProps };
7
- export { createFromIconfontCN };
8
- export interface IIconProps extends Omit<IconFontProps, 'size'> {
9
- className?: string;
10
- size?: number | string;
11
- style?: React.CSSProperties;
12
- color?: string;
13
- type: string;
14
- }
package/lib/Icon/index.js CHANGED
@@ -3,68 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "createFromIconfontCN", {
7
- enumerable: true,
8
- get: function get() {
9
- return _icons.createFromIconfontCN;
10
- }
11
- });
12
6
  exports.default = void 0;
13
7
 
14
- var _react = _interopRequireDefault(require("react"));
15
-
16
- var _icons = require("@ant-design/icons");
17
-
18
- var _excluded = ["className", "size", "style", "color"];
8
+ var _Icon = _interopRequireDefault(require("./components/Icon"));
19
9
 
20
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
11
 
22
- 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; }
23
-
24
- 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; }
25
-
26
- 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; }
27
-
28
- 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; }
29
-
30
- 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; }
31
-
32
- // @ts-ignore iconfont.js 没有ts类型定义
33
- // import iconfontJs from './iconfont/iconfont';
34
- var iconfontJs = require('./iconfont/iconfont');
35
-
36
- var IconFont = (0, _icons.createFromIconfontCN)({
37
- scriptUrl: iconfontJs
38
- });
39
- var DEFAULT_SIZE = 16;
40
-
41
- var Icon = function Icon(props) {
42
- var className = props.className,
43
- _props$size = props.size,
44
- size = _props$size === void 0 ? DEFAULT_SIZE : _props$size,
45
- _props$style = props.style,
46
- style = _props$style === void 0 ? {} : _props$style,
47
- color = props.color,
48
- restProps = _objectWithoutProperties(props, _excluded); // 添加一个前缀
49
-
50
-
51
- var prefix = '';
52
- var type = "".concat(prefix).concat(props.type);
53
-
54
- var finalStyle = _objectSpread({
55
- verticalAlign: 'middle',
56
- color: color,
57
- fontSize: size,
58
- height: size,
59
- width: size
60
- }, style);
61
-
62
- return /*#__PURE__*/_react.default.createElement(IconFont, Object.assign({}, restProps, {
63
- style: finalStyle,
64
- type: type,
65
- className: className
66
- }));
67
- };
68
-
69
- var _default = Icon;
12
+ var _default = _Icon.default;
70
13
  exports.default = _default;
@@ -2,31 +2,23 @@
2
2
  font-size: 16px;
3
3
  }
4
4
 
5
- @icon-font: ald-iconfont;
6
-
7
- @font-face {
8
- font-family: @icon-font; /* Project id 3211525 */
9
- src:
10
-
11
- url('data:application/x-font-woff2;charset=utf-8;base64,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') format('woff2'),
12
- url('./iconfont/iconfont.woff?t=1648447992265') format('woff'),
13
- url('./iconfont/iconfont.ttf?t=1648447992265') format('truetype');
14
- }
15
-
16
- .ald-iconfont(@content; @font-size: 16px) {
17
- font-family: @icon-font !important;
18
- font-size: 16px;
5
+ // 用于替换antd内的某些无法通过外部传入的图标
6
+ .ald-iconSvg(@svgName; @size: 16px) {
7
+ font-size: @size;
19
8
  font-style: normal;
20
9
  -webkit-font-smoothing: antialiased;
21
10
  -moz-osx-font-smoothing: grayscale;
22
11
 
23
12
  &::before {
24
- content: @content;
25
- font-size: @font-size;
13
+ content: url("iconSvgs/@{svgName}.svg");
14
+ width: @size;
15
+ height: @size;
16
+ font-size: @size;
17
+ color: inherit;
26
18
  display: inline-block;
27
19
  }
28
20
 
29
21
  & > svg {
30
22
  display: none;
31
23
  }
32
- }
24
+ }
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ "use strict";
File without changes
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GroupProps } from 'antd/lib/input';
3
2
  import { TSize } from '../Input';
4
3
  export interface IGroupProps extends Omit<GroupProps, 'size'> {
@@ -7,7 +7,9 @@ exports.default = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _Icon = _interopRequireDefault(require("../../../Icon"));
10
+ var _EyeOffLine = _interopRequireDefault(require("../../../Icon/icons/EyeOffLine"));
11
+
12
+ var _EyeOnLine = _interopRequireDefault(require("../../../Icon/icons/EyeOnLine"));
11
13
 
12
14
  var _Password = _interopRequireDefault(require("antd/lib/input/Password"));
13
15
 
@@ -40,10 +42,10 @@ var _default = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
40
42
  ref: ref,
41
43
  className: getClassName(size),
42
44
  iconRender: function iconRender(visible) {
43
- var type = visible ? 'eye' : 'eye_off';
44
- return /*#__PURE__*/_react.default.createElement(_Icon.default, {
45
- type: type,
46
- size: "1em"
45
+ return visible ? /*#__PURE__*/_react.default.createElement(_EyeOnLine.default, {
46
+ fill: "currentColor"
47
+ }) : /*#__PURE__*/_react.default.createElement(_EyeOffLine.default, {
48
+ fill: "currentColor"
47
49
  });
48
50
  }
49
51
  }));
@@ -41,7 +41,7 @@
41
41
  // disabled status
42
42
  @Input-disabled-borderColor: @NL90;
43
43
  @Input-disabled-bgColor: @BG95;
44
- @Input-disabled-fontColor: @NL50;
44
+ @Input-disabled-fontColor: @NL60;
45
45
 
46
46
  .ant-input.ald-input {
47
47
  color: @NL0;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd';
3
2
  export default function InputNumber(props: InputNumberProps): JSX.Element;
4
3
  export type { InputNumberProps };