@aloudata/aloudata-design 0.1.0-beta1 → 0.1.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 (308) hide show
  1. package/README.md +22 -13
  2. package/es/Button/demo/Icon/index.d.ts +3 -0
  3. package/es/Button/demo/Icon/index.js +67 -0
  4. package/{src → es}/Button/demo/Icon/index.less +0 -0
  5. package/es/Button/demo/basic/index.d.ts +4 -0
  6. package/es/Button/demo/basic/index.js +57 -0
  7. package/{src → es}/Button/demo/basic/index.less +0 -1
  8. package/es/Button/demo/disable/index.d.ts +3 -0
  9. package/es/Button/demo/disable/index.js +23 -0
  10. package/{src → es}/Button/demo/disable/index.less +0 -0
  11. package/es/Button/demo/href/index.d.ts +2 -0
  12. package/es/Button/demo/href/index.js +17 -0
  13. package/es/Button/demo/loading/index.d.ts +3 -0
  14. package/es/Button/demo/loading/index.js +37 -0
  15. package/{src → es}/Button/demo/loading/index.less +0 -0
  16. package/es/Button/index.d.ts +50 -0
  17. package/es/Button/index.js +108 -0
  18. package/es/Button/style/index.d.ts +2 -0
  19. package/es/Button/style/index.js +2 -0
  20. package/{src → es}/Button/style/index.less +5 -5
  21. package/es/Dropdown/Button.d.ts +69 -0
  22. package/es/Dropdown/Button.js +39 -0
  23. package/es/Dropdown/demo/basic/index.d.ts +4 -0
  24. package/es/Dropdown/demo/basic/index.js +18 -0
  25. package/es/Dropdown/demo/button/index.d.ts +3 -0
  26. package/es/Dropdown/demo/button/index.js +159 -0
  27. package/{src → es}/Dropdown/demo/button/index.less +0 -0
  28. package/es/Dropdown/demo/placement/index.d.ts +2 -0
  29. package/es/Dropdown/demo/placement/index.js +40 -0
  30. package/es/Dropdown/demo/subMenu/index.d.ts +2 -0
  31. package/es/Dropdown/demo/subMenu/index.js +42 -0
  32. package/es/Dropdown/demo/trigger/index.d.ts +2 -0
  33. package/es/Dropdown/demo/trigger/index.js +17 -0
  34. package/es/Dropdown/index.d.ts +59 -0
  35. package/es/Dropdown/index.js +33 -0
  36. package/es/Dropdown/style/index.d.ts +2 -0
  37. package/es/Dropdown/style/index.js +2 -0
  38. package/{src → es}/Dropdown/style/index.less +0 -0
  39. package/{src → es}/Icon/iconfont/demo.css +0 -0
  40. package/{src → es}/Icon/iconfont/demo_index.html +49 -3
  41. package/es/Icon/iconfont/iconfont.css +101 -0
  42. package/es/Icon/iconfont/iconfont.js +46 -0
  43. package/{src → es}/Icon/iconfont/iconfont.json +14 -0
  44. package/es/Icon/iconfont/iconfont.ttf +0 -0
  45. package/es/Icon/iconfont/iconfont.woff +0 -0
  46. package/es/Icon/iconfont/iconfont.woff2 +0 -0
  47. package/es/Icon/index.d.ts +11 -0
  48. package/es/Icon/index.js +42 -0
  49. package/{src → es}/Icon/index.less +3 -3
  50. package/es/Input/components/Group/index.d.ts +15 -0
  51. package/es/Input/components/Group/index.js +12 -0
  52. package/es/Input/components/Password/index.d.ts +10 -0
  53. package/es/Input/components/Password/index.js +20 -0
  54. package/es/Input/components/TextArea/index.d.ts +52 -0
  55. package/es/Input/components/TextArea/index.js +14 -0
  56. package/es/Input/demo/allowClear/index.d.ts +3 -0
  57. package/es/Input/demo/allowClear/index.js +11 -0
  58. package/{src → es}/Input/demo/allowClear/index.less +0 -0
  59. package/es/Input/demo/basic/index.d.ts +4 -0
  60. package/es/Input/demo/basic/index.js +65 -0
  61. package/{src → es}/Input/demo/basic/index.less +1 -1
  62. package/es/Input/demo/gourp/index.d.ts +2 -0
  63. package/es/Input/demo/gourp/index.js +67 -0
  64. package/es/Input/demo/password/index.d.ts +3 -0
  65. package/es/Input/demo/password/index.js +21 -0
  66. package/{src → es}/Input/demo/password/index.less +0 -0
  67. package/es/Input/demo/prefix/index.d.ts +3 -0
  68. package/es/Input/demo/prefix/index.js +17 -0
  69. package/{src → es}/Input/demo/prefix/index.less +0 -0
  70. package/es/Input/demo/showCount/index.d.ts +3 -0
  71. package/es/Input/demo/showCount/index.js +17 -0
  72. package/{src → es}/Input/demo/showCount/index.less +0 -0
  73. package/es/Input/demo/textArea/autoSize.d.ts +2 -0
  74. package/es/Input/demo/textArea/autoSize.js +50 -0
  75. package/es/Input/index.d.ts +65 -0
  76. package/es/Input/index.js +46 -0
  77. package/es/Input/style/index.d.ts +2 -0
  78. package/es/Input/style/index.js +2 -0
  79. package/{src → es}/Input/style/index.less +4 -1
  80. package/es/Menu/Divider.d.ts +5 -0
  81. package/es/Menu/Divider.js +15 -0
  82. package/es/Menu/MenuItem.d.ts +17 -0
  83. package/es/Menu/MenuItem.js +15 -0
  84. package/es/Menu/SubMenu.d.ts +26 -0
  85. package/es/Menu/SubMenu.js +29 -0
  86. package/es/Menu/index.d.ts +20 -0
  87. package/es/Menu/index.js +31 -0
  88. package/es/Menu/style/index.d.ts +2 -0
  89. package/es/Menu/style/index.js +2 -0
  90. package/{src → es}/Menu/style/index.less +0 -0
  91. package/es/Select/BaseSelect.d.ts +5 -0
  92. package/es/Select/BaseSelect.js +400 -0
  93. package/{src/Select/OptionsList/OptGroup.tsx → es/Select/OptionsList/OptGroup.d.ts} +2 -4
  94. package/es/Select/OptionsList/OptGroup.js +6 -0
  95. package/es/Select/OptionsList/OptionItem/RenderGroup.d.ts +9 -0
  96. package/es/Select/OptionsList/OptionItem/RenderGroup.js +16 -0
  97. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +8 -0
  98. package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +44 -0
  99. package/es/Select/OptionsList/OptionItem/RenderOption.d.ts +16 -0
  100. package/es/Select/OptionsList/OptionItem/RenderOption.js +79 -0
  101. package/es/Select/OptionsList/OptionItem/RenderTooltip.d.ts +8 -0
  102. package/es/Select/OptionsList/OptionItem/RenderTooltip.js +25 -0
  103. package/es/Select/OptionsList/OptionItem.d.ts +4 -0
  104. package/es/Select/OptionsList/OptionItem.js +4 -0
  105. package/es/Select/OptionsList/Options.d.ts +7 -0
  106. package/es/Select/OptionsList/Options.js +6 -0
  107. package/es/Select/OptionsList/index.d.ts +4 -0
  108. package/es/Select/OptionsList/index.js +187 -0
  109. package/es/Select/Selector/index.d.ts +4 -0
  110. package/es/Select/Selector/index.js +252 -0
  111. package/es/Select/VirtualList.d.ts +5 -0
  112. package/es/Select/VirtualList.js +29 -0
  113. package/es/Select/demo/disabled/index.d.ts +2 -0
  114. package/es/Select/demo/disabled/index.js +50 -0
  115. package/es/Select/demo/multiple/index.d.ts +2 -0
  116. package/es/Select/demo/multiple/index.js +140 -0
  117. package/es/Select/demo/options/index.d.ts +2 -0
  118. package/es/Select/demo/options/index.js +55 -0
  119. package/es/Select/demo/single/index.d.ts +3 -0
  120. package/es/Select/demo/single/index.js +89 -0
  121. package/es/Select/demo/single/index.less +5 -0
  122. package/es/Select/hooks/useCacheOption.d.ts +9 -0
  123. package/es/Select/hooks/useCacheOption.js +107 -0
  124. package/es/Select/index.d.ts +12 -0
  125. package/es/Select/index.js +9 -0
  126. package/es/Select/interface.d.ts +227 -0
  127. package/es/Select/interface.js +1 -0
  128. package/es/Select/style/index.d.ts +2 -0
  129. package/es/Select/style/index.js +2 -0
  130. package/{src → es}/Select/style/index.less +3 -10
  131. package/es/Select/utils.d.ts +21 -0
  132. package/es/Select/utils.js +193 -0
  133. package/es/Tabs/TabPane.d.ts +21 -0
  134. package/es/Tabs/TabPane.js +12 -0
  135. package/es/Tabs/demo/adaptHeight/index.d.ts +3 -0
  136. package/es/Tabs/demo/adaptHeight/index.js +19 -0
  137. package/{src → es}/Tabs/demo/adaptHeight/index.less +0 -0
  138. package/es/Tabs/demo/basic/index.d.ts +4 -0
  139. package/es/Tabs/demo/basic/index.js +44 -0
  140. package/{src → es}/Tabs/demo/basic/index.less +0 -0
  141. package/es/Tabs/demo/horizontalScroll/index.d.ts +3 -0
  142. package/es/Tabs/demo/horizontalScroll/index.js +30 -0
  143. package/{src → es}/Tabs/demo/horizontalScroll/index.less +0 -0
  144. package/es/Tabs/index.d.ts +41 -0
  145. package/es/Tabs/index.js +42 -0
  146. package/es/Tabs/style/index.d.ts +2 -0
  147. package/es/Tabs/style/index.js +2 -0
  148. package/{src → es}/Tabs/style/index.less +0 -0
  149. package/es/Tooltip/demo/basic/index.d.ts +2 -0
  150. package/es/Tooltip/demo/basic/index.js +7 -0
  151. package/es/Tooltip/demo/overflow/index.d.ts +2 -0
  152. package/es/Tooltip/demo/overflow/index.js +7 -0
  153. package/es/Tooltip/demo/placement/index.d.ts +6 -0
  154. package/es/Tooltip/demo/placement/index.js +70 -0
  155. package/{src → es}/Tooltip/demo/placement/index.less +0 -0
  156. package/es/Tooltip/demo/trigger/index.d.ts +3 -0
  157. package/es/Tooltip/demo/trigger/index.js +20 -0
  158. package/{src → es}/Tooltip/demo/trigger/index.less +0 -0
  159. package/es/Tooltip/index.d.ts +64 -0
  160. package/es/Tooltip/index.js +33 -0
  161. package/es/Tooltip/style/index.d.ts +2 -0
  162. package/es/Tooltip/style/index.js +2 -0
  163. package/{src → es}/Tooltip/style/index.less +0 -0
  164. package/es/_utils/hooks/useControlledState.d.ts +2 -0
  165. package/es/_utils/hooks/useControlledState.js +54 -0
  166. package/es/_utils/hooks/usePrefixCls.d.ts +2 -0
  167. package/es/_utils/hooks/usePrefixCls.js +14 -0
  168. package/es/index.d.ts +8 -0
  169. package/{src/index.ts → es/index.js} +0 -0
  170. package/es/style/index.d.ts +2 -0
  171. package/{src/style/index.ts → es/style/index.js} +0 -0
  172. package/{src → es}/style/index.less +0 -0
  173. package/{src → es}/style/mixins/index.less +0 -0
  174. package/{src → es}/style/themes/default/index.less +1 -1
  175. package/{lib/style/themes/default/themeColor.less → es/style/themes/default/themeColor.module.less} +0 -0
  176. package/es/style/themes/default/themeColor.module.less.d.ts +108 -0
  177. package/lib/Button/demo/basic/index.less +0 -1
  178. package/lib/Button/index.js +2 -2
  179. package/lib/Button/style/index.less +5 -5
  180. package/lib/Dropdown/demo/button/index.js +1 -1
  181. package/lib/Icon/iconfont/demo_index.html +49 -3
  182. package/lib/Icon/iconfont/iconfont.css +11 -3
  183. package/lib/Icon/iconfont/iconfont.js +1 -1
  184. package/lib/Icon/iconfont/iconfont.json +14 -0
  185. package/lib/Icon/iconfont/iconfont.ttf +0 -0
  186. package/lib/Icon/iconfont/iconfont.woff +0 -0
  187. package/lib/Icon/iconfont/iconfont.woff2 +0 -0
  188. package/lib/Icon/index.less +3 -3
  189. package/lib/Input/demo/basic/index.less +1 -1
  190. package/lib/Input/style/index.less +4 -1
  191. package/lib/Select/OptionsList/OptionItem/RenderGroup.d.ts +9 -0
  192. package/lib/Select/OptionsList/OptionItem/RenderGroup.js +27 -0
  193. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +8 -0
  194. package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +58 -0
  195. package/lib/Select/OptionsList/OptionItem/RenderOption.d.ts +16 -0
  196. package/lib/Select/OptionsList/OptionItem/RenderOption.js +94 -0
  197. package/lib/Select/OptionsList/OptionItem/RenderTooltip.d.ts +8 -0
  198. package/lib/Select/OptionsList/OptionItem/RenderTooltip.js +37 -0
  199. package/lib/Select/OptionsList/OptionItem.d.ts +4 -35
  200. package/lib/Select/OptionsList/OptionItem.js +26 -172
  201. package/lib/Select/OptionsList/Options.d.ts +2 -2
  202. package/lib/Select/OptionsList/index.js +1 -1
  203. package/lib/Select/Selector/index.d.ts +2 -2
  204. package/lib/Select/Selector/index.js +13 -10
  205. package/lib/Select/demo/single/index.d.ts +1 -0
  206. package/lib/Select/demo/single/index.js +5 -1
  207. package/lib/Select/demo/single/index.less +5 -0
  208. package/lib/Select/interface.d.ts +8 -2
  209. package/lib/Select/style/index.less +3 -10
  210. package/lib/Tooltip/index.d.ts +1 -0
  211. package/lib/Tooltip/index.js +3 -1
  212. package/lib/style/themes/default/index.less +1 -1
  213. package/{src/style/themes/default/themeColor.less → lib/style/themes/default/themeColor.module.less} +0 -0
  214. package/lib/style/themes/default/themeColor.module.less.d.ts +108 -0
  215. package/package.json +17 -7
  216. package/.editorconfig +0 -16
  217. package/.eslintrc.js +0 -43
  218. package/.fatherrc.ts +0 -16
  219. package/.prettierignore +0 -7
  220. package/.prettierrc.js +0 -1
  221. package/.stylelintrc.json +0 -36
  222. package/.umirc.ts +0 -15
  223. package/commitlint.config.js +0 -21
  224. package/docs/index.md +0 -21
  225. package/jest/setupTests.js +0 -1
  226. package/public/favicon.ico +0 -0
  227. package/src/Button/demo/Icon/index.tsx +0 -41
  228. package/src/Button/demo/basic/index.tsx +0 -26
  229. package/src/Button/demo/disable/index.tsx +0 -16
  230. package/src/Button/demo/href/index.tsx +0 -14
  231. package/src/Button/demo/loading/index.tsx +0 -21
  232. package/src/Button/index.md +0 -25
  233. package/src/Button/index.test.tsx +0 -58
  234. package/src/Button/index.tsx +0 -136
  235. package/src/Button/style/index.ts +0 -2
  236. package/src/Dropdown/Button.tsx +0 -93
  237. package/src/Dropdown/demo/basic/index.tsx +0 -20
  238. package/src/Dropdown/demo/button/index.tsx +0 -98
  239. package/src/Dropdown/demo/placement/index.tsx +0 -47
  240. package/src/Dropdown/demo/subMenu/index.tsx +0 -35
  241. package/src/Dropdown/demo/trigger/index.tsx +0 -19
  242. package/src/Dropdown/index.md +0 -35
  243. package/src/Dropdown/index.test.tsx +0 -185
  244. package/src/Dropdown/index.tsx +0 -71
  245. package/src/Dropdown/style/index.ts +0 -2
  246. package/src/Icon/iconfont/iconfont.css +0 -93
  247. package/src/Icon/iconfont/iconfont.js +0 -1
  248. package/src/Icon/iconfont/iconfont.ttf +0 -0
  249. package/src/Icon/iconfont/iconfont.woff +0 -0
  250. package/src/Icon/iconfont/iconfont.woff2 +0 -0
  251. package/src/Icon/index.tsx +0 -38
  252. package/src/Input/components/Group/index.tsx +0 -21
  253. package/src/Input/components/Password/index.tsx +0 -23
  254. package/src/Input/components/TextArea/index.tsx +0 -57
  255. package/src/Input/demo/allowClear/index.tsx +0 -10
  256. package/src/Input/demo/basic/index.tsx +0 -25
  257. package/src/Input/demo/gourp/index.tsx +0 -30
  258. package/src/Input/demo/password/index.tsx +0 -11
  259. package/src/Input/demo/prefix/index.tsx +0 -13
  260. package/src/Input/demo/showCount/index.tsx +0 -16
  261. package/src/Input/demo/textArea/autoSize.tsx +0 -21
  262. package/src/Input/index.md +0 -37
  263. package/src/Input/index.test.tsx +0 -78
  264. package/src/Input/index.tsx +0 -91
  265. package/src/Input/style/index.ts +0 -2
  266. package/src/Menu/Divider.tsx +0 -12
  267. package/src/Menu/MenuItem.tsx +0 -24
  268. package/src/Menu/SubMenu.tsx +0 -37
  269. package/src/Menu/index.md +0 -36
  270. package/src/Menu/index.test.tsx +0 -144
  271. package/src/Menu/index.tsx +0 -27
  272. package/src/Menu/style/index.ts +0 -2
  273. package/src/Select/BaseSelect.tsx +0 -321
  274. package/src/Select/OptionsList/OptionItem.tsx +0 -151
  275. package/src/Select/OptionsList/Options.tsx +0 -11
  276. package/src/Select/OptionsList/index.tsx +0 -169
  277. package/src/Select/Selector/index.tsx +0 -211
  278. package/src/Select/VirtualList.tsx +0 -36
  279. package/src/Select/demo/disabled/index.tsx +0 -44
  280. package/src/Select/demo/multiple/index.tsx +0 -77
  281. package/src/Select/demo/options/index.tsx +0 -63
  282. package/src/Select/demo/single/index.tsx +0 -50
  283. package/src/Select/hooks/useCacheOption.ts +0 -67
  284. package/src/Select/index.md +0 -72
  285. package/src/Select/index.tsx +0 -23
  286. package/src/Select/interface.ts +0 -231
  287. package/src/Select/style/index.ts +0 -2
  288. package/src/Select/utils.tsx +0 -133
  289. package/src/Tabs/TabPane.tsx +0 -28
  290. package/src/Tabs/demo/adaptHeight/index.tsx +0 -33
  291. package/src/Tabs/demo/basic/index.tsx +0 -30
  292. package/src/Tabs/demo/horizontalScroll/index.tsx +0 -36
  293. package/src/Tabs/index.md +0 -30
  294. package/src/Tabs/index.test.tsx +0 -100
  295. package/src/Tabs/index.tsx +0 -64
  296. package/src/Tabs/style/index.ts +0 -2
  297. package/src/Tooltip/demo/basic/index.tsx +0 -10
  298. package/src/Tooltip/demo/overflow/index.tsx +0 -10
  299. package/src/Tooltip/demo/placement/index.tsx +0 -60
  300. package/src/Tooltip/demo/trigger/index.tsx +0 -22
  301. package/src/Tooltip/index.md +0 -28
  302. package/src/Tooltip/index.test.tsx +0 -152
  303. package/src/Tooltip/index.tsx +0 -113
  304. package/src/Tooltip/style/index.ts +0 -2
  305. package/src/_utils/hooks/useControlledState.ts +0 -39
  306. package/src/_utils/hooks/usePrefixCls.ts +0 -11
  307. package/tsconfig.json +0 -13
  308. package/typings.d.ts +0 -3
@@ -7,10 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
- require("antd/es/tooltip/style");
11
-
12
- var _tooltip = _interopRequireDefault(require("antd/es/tooltip"));
13
-
14
10
  var _Icon = _interopRequireDefault(require("../../Icon"));
15
11
 
16
12
  var _classnames3 = _interopRequireDefault(require("classnames"));
@@ -19,8 +15,12 @@ var _lodash = require("lodash");
19
15
 
20
16
  var _react = _interopRequireWildcard(require("react"));
21
17
 
18
+ var _Tooltip = _interopRequireDefault(require("../../Tooltip"));
19
+
22
20
  var _rcOverflow = _interopRequireDefault(require("rc-overflow"));
23
21
 
22
+ var _themeColorModule = _interopRequireDefault(require("../../style/themes/default/themeColor.module.less"));
23
+
24
24
  var _excluded = ["input", "disabled", "prefix", "size", "multiple", "bordered", "isFocused", "className", "visible", "style", "allowClear", "label", "mode", "value", "searchType", "arrowComponent", "closeComponent", "placeholder", "deleteValue", "optionLabelRenderer", "getOptionByValue", "onInputChange", "onAllowClear", "filteredOptions"];
25
25
 
26
26
  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); }
@@ -67,7 +67,8 @@ var defaultArrowComponent = function defaultArrowComponent(prefix, size) {
67
67
  return /*#__PURE__*/_react.default.createElement(_Icon.default, {
68
68
  className: "".concat(prefix, "-icon-arrow"),
69
69
  size: size === 'large' ? ICON_LARGE_SIZE : ICON_SMALL_SIZE,
70
- type: "expand_more1"
70
+ type: "expand_more1",
71
+ color: _themeColorModule.default.NL40
71
72
  });
72
73
  };
73
74
 
@@ -75,7 +76,8 @@ var defaultCloseComponent = function defaultCloseComponent(prefix, size) {
75
76
  return /*#__PURE__*/_react.default.createElement(_Icon.default, {
76
77
  className: "".concat(prefix, "-icon-close"),
77
78
  size: size === 'large' ? ICON_LARGE_SIZE : ICON_SMALL_SIZE,
78
- type: "cancel"
79
+ type: "cancel",
80
+ color: _themeColorModule.default.NL40
79
81
  });
80
82
  };
81
83
 
@@ -205,10 +207,11 @@ var Selector = function Selector(props, ref) {
205
207
  return /*#__PURE__*/_react.default.createElement("span", null, "\u7B49", valueItems.length, "\u9879");
206
208
  };
207
209
 
208
- return !input && !(0, _lodash.isNil)(value) ? /*#__PURE__*/_react.default.createElement(_tooltip.default, {
210
+ return !input && !(0, _lodash.isNil)(value) ? /*#__PURE__*/_react.default.createElement(_Tooltip.default // @ts-ignore
211
+ , {
209
212
  // @ts-ignore
210
213
  title: allValueLabel === null || allValueLabel === void 0 ? void 0 : allValueLabel.join(','),
211
- placement: "bottom",
214
+ placement: "top",
212
215
  getTooltipContainer: function getTooltipContainer() {
213
216
  var _selectorRef$current4;
214
217
 
@@ -234,8 +237,8 @@ var Selector = function Selector(props, ref) {
234
237
  }, /*#__PURE__*/_react.default.createElement("span", {
235
238
  ref: selectorAllRef,
236
239
  className: (0, _classnames3.default)("".concat(prefix, "-item-text"))
237
- }, text)) : // </Text>
238
- null;
240
+ }, text)) // </Text>
241
+ : null;
239
242
  };
240
243
 
241
244
  return /*#__PURE__*/_react.default.createElement("div", _objectSpread({
@@ -1,2 +1,3 @@
1
+ import './index.less';
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _index = _interopRequireDefault(require("../../index"));
11
11
 
12
+ require("./index.less");
13
+
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
15
 
14
16
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -66,7 +68,9 @@ var _default = function _default() {
66
68
  value: "f"
67
69
  }, "f"), /*#__PURE__*/_react.default.createElement(Option, {
68
70
  key: "g",
69
- value: "g"
71
+ title: "gg",
72
+ value: "g",
73
+ tooltip: "a"
70
74
  }, "g")), /*#__PURE__*/_react.default.createElement(_index.default, {
71
75
  className: 'ald-select',
72
76
  style: {
@@ -0,0 +1,5 @@
1
+ .ald-select-demo {
2
+ .ald-select {
3
+ margin: 0 24px 16px 0;
4
+ }
5
+ }
@@ -8,7 +8,7 @@ export interface IOption {
8
8
  /**
9
9
  列表单项主要文字
10
10
  */
11
- label: string | React.ReactNode;
11
+ label?: string | React.ReactNode;
12
12
  /**
13
13
  作为列表的 `key` 来使用
14
14
  */
@@ -16,7 +16,6 @@ export interface IOption {
16
16
  /**
17
17
  列表次要文字
18
18
  */
19
- description?: string;
20
19
  /**
21
20
  是否禁用
22
21
  */
@@ -47,7 +46,14 @@ export interface IOptGroupProps {
47
46
  }
48
47
  export interface IOptionProps {
49
48
  children?: React.ReactNode;
49
+ /**
50
+ * @description 默认根据次属性值进行筛选
51
+ */
50
52
  value: string | number;
53
+ /**
54
+ * @description 是否禁用
55
+ * @default false
56
+ */
51
57
  disabled?: boolean;
52
58
  title?: string;
53
59
  }
@@ -130,7 +130,8 @@
130
130
  // box-shadow: 0 0 6px 0 @color-box-shadow-focused;
131
131
 
132
132
  .@{select-prefix-cls-legacy} {
133
- &-item-all {
133
+ &-item-all,
134
+ &-item {
134
135
  opacity: 0.5;
135
136
  }
136
137
  }
@@ -165,6 +166,7 @@
165
166
  line-height: 22px;
166
167
  white-space: nowrap;
167
168
  text-overflow: ellipsis;
169
+ color: @NL0;
168
170
  }
169
171
  }
170
172
 
@@ -351,15 +353,6 @@
351
353
  }
352
354
  }
353
355
 
354
- &-single,
355
- &-focused {
356
- .@{select-prefix-cls-legacy} {
357
- &-item {
358
- opacity: 0.5;
359
- }
360
- }
361
- }
362
-
363
356
  // rc-trigger
364
357
  &-dropdown {
365
358
  position: absolute;
@@ -58,6 +58,7 @@ export interface ITooltipProps {
58
58
  * @default -
59
59
  */
60
60
  overlayClassName?: string;
61
+ getTooltipContainer?: (node: HTMLElement) => HTMLElement;
61
62
  children?: React.ReactNode;
62
63
  }
63
64
  export default function Tooltip(props: ITooltipProps): JSX.Element;
@@ -27,6 +27,7 @@ function Tooltip(props) {
27
27
  mouseLeaveDelay = props.mouseLeaveDelay,
28
28
  getPopupContainer = props.getPopupContainer,
29
29
  destroyTooltipOnHide = props.destroyTooltipOnHide,
30
+ getTooltipContainer = props.getTooltipContainer,
30
31
  overlayClassName = props.overlayClassName;
31
32
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
32
33
  title: title,
@@ -39,6 +40,7 @@ function Tooltip(props) {
39
40
  mouseEnterDelay: mouseEnterDelay,
40
41
  mouseLeaveDelay: mouseLeaveDelay,
41
42
  getPopupContainer: getPopupContainer,
42
- destroyTooltipOnHide: destroyTooltipOnHide
43
+ destroyTooltipOnHide: destroyTooltipOnHide,
44
+ getTooltipContainer: getTooltipContainer
43
45
  }, children);
44
46
  }
@@ -1,4 +1,4 @@
1
- @import './themeColor.less';
1
+ @import './themeColor.module.less';
2
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';
3
3
  @ald-prefix: 'ald';
4
4
 
@@ -0,0 +1,108 @@
1
+ // This file is automatically generated.
2
+ // Please do not change this file!
3
+ interface CssExports {
4
+ 'B10': string;
5
+ 'B20': string;
6
+ 'B30': string;
7
+ 'B40': string;
8
+ 'B50': string;
9
+ 'B60': string;
10
+ 'B70': string;
11
+ 'B80': string;
12
+ 'B90': string;
13
+ 'B95': string;
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
+ 'BG0': string;
29
+ 'BG10': string;
30
+ 'BG100': string;
31
+ 'BG20': string;
32
+ 'BG30': string;
33
+ 'BG40': string;
34
+ 'BG50': string;
35
+ 'BG60': string;
36
+ 'BG70': string;
37
+ 'BG80': string;
38
+ 'BG90': string;
39
+ 'BG95': string;
40
+ 'BG97': string;
41
+ 'BLACK': string;
42
+ 'IMAGE_HOLDER': string;
43
+ 'MATE': string;
44
+ 'ND0': string;
45
+ 'ND10': string;
46
+ 'ND20': string;
47
+ 'ND30': string;
48
+ 'ND40': string;
49
+ 'ND50': string;
50
+ 'ND60': string;
51
+ 'ND70': string;
52
+ 'ND80': string;
53
+ 'ND90': string;
54
+ 'ND95': string;
55
+ 'ND97': string;
56
+ 'NL0': string;
57
+ 'NL10': string;
58
+ 'NL20': string;
59
+ 'NL30': string;
60
+ 'NL40': string;
61
+ 'NL50': string;
62
+ 'NL60': string;
63
+ 'NL70': string;
64
+ 'NL80': string;
65
+ 'NL90': string;
66
+ 'NL95': string;
67
+ 'NL97': string;
68
+ 'SA10': string;
69
+ 'SA20': string;
70
+ 'SA30': string;
71
+ 'SA40': string;
72
+ 'SA50': string;
73
+ 'SA60': string;
74
+ 'SA70': string;
75
+ 'SA80': string;
76
+ 'SA90': string;
77
+ 'SA95': string;
78
+ 'SA98': string;
79
+ 'SB10': string;
80
+ 'SB20': string;
81
+ 'SB30': string;
82
+ 'SB40': string;
83
+ 'SB50': string;
84
+ 'SB60': string;
85
+ 'SB70': string;
86
+ 'SB80': string;
87
+ 'SB90': string;
88
+ 'SB95': string;
89
+ 'SB98': string;
90
+ 'SC10': string;
91
+ 'SC20': string;
92
+ 'SC30': string;
93
+ 'SC40': string;
94
+ 'SC50': string;
95
+ 'SC60': string;
96
+ 'SC70': string;
97
+ 'SC80': string;
98
+ 'SC90': string;
99
+ 'SC95': string;
100
+ 'SC98': string;
101
+ 'SHADOW_ACTIONSHEET': string;
102
+ 'SHADOW_CARD': string;
103
+ 'SHADOW_NOTIFICATION': string;
104
+ 'SHADOW_OPTION': string;
105
+ 'WHITE': string;
106
+ }
107
+ export const cssExports: CssExports;
108
+ export default cssExports;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "0.1.0-beta1",
3
+ "version": "0.1.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -13,7 +13,9 @@
13
13
  "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
14
14
  "test": "umi-test",
15
15
  "test:coverage": "umi-test --coverage",
16
- "prepublishOnly": "npm run build"
16
+ "prepublishOnly": "npm run build",
17
+ "release": "npm publish --access public",
18
+ "postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
17
19
  },
18
20
  "module": "es/index.js",
19
21
  "typings": "es/index.d.ts",
@@ -23,6 +25,10 @@
23
25
  "pre-commit": "npm run lint && npm run stylelint && npm run test"
24
26
  }
25
27
  },
28
+ "files": [
29
+ "es",
30
+ "lib"
31
+ ],
26
32
  "gitHooks": {
27
33
  "pre-commit": "lint-staged"
28
34
  },
@@ -43,9 +49,7 @@
43
49
  "rc-menu": "^9.3.2",
44
50
  "rc-overflow": "^1.2.3",
45
51
  "rc-trigger": "^5.2.10",
46
- "rc-virtual-list": "^3.4.2",
47
- "react": "^16.12.0 || ^17.0.0",
48
- "react-dom": "^16.12.0 || ^17.0.0"
52
+ "rc-virtual-list": "^3.4.2"
49
53
  },
50
54
  "devDependencies": {
51
55
  "@aloudata/eslint-config-base": "^0.0.6",
@@ -69,12 +73,18 @@
69
73
  "gh-pages": "^3.0.0",
70
74
  "husky": "^3.0.9",
71
75
  "lint-staged": "^10.0.7",
72
- "postcss": "8.4.6",
76
+ "postcss": "^8.4.7",
77
+ "postcss-less": "^6.0.0",
73
78
  "prettier": "^2.2.1",
74
79
  "stylelint": "^14.5.3",
75
- "stylelint-config-standard": "^24.0.0",
80
+ "stylelint-config-standard": "^25.0.0",
81
+ "typescript": "4.1.2",
76
82
  "yorkie": "^2.0.0"
77
83
  },
84
+ "peerDependencies": {
85
+ "react": "^16.12.0 || ^17.0.0",
86
+ "react-dom": "^16.12.0 || ^17.0.0"
87
+ },
78
88
  "jest": {
79
89
  "setupFiles": [
80
90
  "./jest/setupTests.js"
package/.editorconfig DELETED
@@ -1,16 +0,0 @@
1
- # http://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
14
-
15
- [Makefile]
16
- indent_style = tab
package/.eslintrc.js DELETED
@@ -1,43 +0,0 @@
1
- module.exports = {
2
- extends: [
3
- '@aloudata/eslint-config-base'
4
- ],
5
- parserOptions: {
6
- project: './tsconfig.json',
7
- },
8
- ignorePatterns: [
9
- '**/*.less.d.ts',
10
- '**/demo/*',
11
- "**/iconfont.js",
12
- "jest"
13
- ],
14
- rules: {
15
- 'react/require-default-props': 'off',
16
- 'linebreak-style': 'off',
17
- curly: ['error', 'all'],
18
- 'import/extensions': 'off',
19
- '@typescript-eslint/type-annotation-spacing': ['error', { after: true }],
20
- '@typescript-eslint/no-unsafe-member-access': ['error'],
21
- // 'id-length': ['error', { properties: 'never', exceptions: ['i', 'j', 'e', '_'] }],
22
- // 'react/jsx-key': ['error'],
23
- '@typescript-eslint/naming-convention': [
24
- 'error',
25
- {
26
- selector: 'interface',
27
- format: ['PascalCase'],
28
- custom: {
29
- regex: '^I[A-Z]',
30
- match: true
31
- }
32
- },
33
- {
34
- selector: 'enum',
35
- format: ['PascalCase'],
36
- custom: {
37
- regex: '^E[A-Z]',
38
- match: true
39
- }
40
- }
41
- ],
42
- }
43
- };
package/.fatherrc.ts DELETED
@@ -1,16 +0,0 @@
1
- export default {
2
- esm: 'babel', // 通过 babel 编译相关组件即可,而无需打包在一个文件中,实现在使用时可按需加载。
3
- cjs: 'babel',
4
- // lessInBabelMode: true, // less 转 css
5
- // 打包的产物若需引入 antd ,则通过按需加载形式引入。
6
- extraBabelPlugins: [
7
- [
8
- 'babel-plugin-import',
9
- {
10
- libraryName: 'antd',
11
- libraryDirectory: 'es',
12
- style: true,
13
- },
14
- ],
15
- ],
16
- }
package/.prettierignore DELETED
@@ -1,7 +0,0 @@
1
- **/*.svg
2
- **/*.ejs
3
- **/*.html
4
- package.json
5
- .umi
6
- .umi-production
7
- .umi-test
package/.prettierrc.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('@umijs/fabric').prettier;
package/.stylelintrc.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "extends": "stylelint-config-standard",
3
- "ignoreFiles": [
4
- "src/style/**/*",
5
- "**/*.tsx",
6
- "**/*.js",
7
- "**/*.ts",
8
- "**/*.png",
9
- "**/*.css",
10
- "**/*.json",
11
- "**/*.md",
12
- "**/*.ttf",
13
- "**/*.woff",
14
- "**/*.woff2",
15
- "**/*.html"
16
- ],
17
- "overrides": [{
18
- "files": ["**/*.less"],
19
- "customSyntax": "postcss-less",
20
- "rules": {
21
- "no-missing-end-of-source-newline": null,
22
- "no-empty-source": null,
23
- "selector-pseudo-class-no-unknown": [
24
- true,
25
- {
26
- "ignorePseudoClasses": ["global", "local"]
27
- }
28
- ],
29
- "selector-class-pattern": ["^([a-z][a-zA-Z0-9]+)|(([a-z][a-z0-9]*)(-[a-z0-9]+)*$)$"],
30
- "alpha-value-notation": null,
31
- "color-function-notation": null,
32
- "keyframes-name-pattern": "^[a-z][a-zA-Z0-9]+$",
33
- "string-quotes": "single"
34
- }
35
- }]
36
- }
package/.umirc.ts DELETED
@@ -1,15 +0,0 @@
1
- import { defineConfig } from 'dumi';
2
- export default defineConfig({
3
- // mode:'site',
4
- title: 'design',
5
- logo: 'https://cdn.aloudata.com/source/workstation_test/static/logo.8b20330e.svg',
6
- outputPath: 'docs-dist',
7
- apiParser:{
8
- propFilter:{
9
- skipNodeModules: true,
10
- skipPropsWithoutDoc:true
11
- }
12
- }
13
- // mode:'site'
14
- // more config: https://d.umijs.org/config
15
- });
@@ -1,21 +0,0 @@
1
- const OFF_NUM = 0;
2
- const ERROR_NUM = 2;
3
-
4
- module.exports = {
5
- extends: ['@commitlint/config-angular'],
6
- rules: {
7
- 'type-enum': [ERROR_NUM, 'always', [
8
- 'feat', // 新功能(feature)
9
- 'fix', // 修补bug
10
- 'style', // 样式(不影响代码运行的变动)
11
- 'refactor', // 重构(即不是新增功能,也不是修改bug的代码变动)
12
- 'test', // 增加测试
13
- 'chore', // 构建过程或辅助工具的变动
14
- 'delete', // 删除内容
15
- 'doc', // 文档类修改
16
- ]],
17
- 'subject-full-stop': [OFF_NUM, 'never'],
18
- 'subject-case': [OFF_NUM, 'never']
19
- }
20
-
21
- };
package/docs/index.md DELETED
@@ -1,21 +0,0 @@
1
- ---
2
- hero:
3
- title: design
4
- desc: design site example
5
- actions:
6
- - text: Getting Started
7
- link: /components
8
- features:
9
- - icon: https://gw.alipayobjects.com/zos/bmw-prod/881dc458-f20b-407b-947a-95104b5ec82b/k79dm8ih_w144_h144.png
10
- title: Feature 1
11
- desc: Balabala
12
- - icon: https://gw.alipayobjects.com/zos/bmw-prod/d60657df-0822-4631-9d7c-e7a869c2f21c/k79dmz3q_w126_h126.png
13
- title: Feature 2
14
- desc: Balabala
15
- - icon: https://gw.alipayobjects.com/zos/bmw-prod/d1ee0c6f-5aed-4a45-a507-339a4bfe076c/k7bjsocq_w144_h144.png
16
- title: Feature 3
17
- desc: Balabala
18
- footer: Open-source MIT Licensed | Copyright © 2020<br />Powered by [dumi](https://d.umijs.org)
19
- ---
20
-
21
- ## Hello design!
@@ -1 +0,0 @@
1
- jest.mock('../src/Icon/iconfont/iconfont.js', () => {});
Binary file
@@ -1,41 +0,0 @@
1
- import React from 'react';
2
- import { Button } from '@aloudata/aloudata-design';
3
- import './index.less';
4
- import Icon from '../../../Icon'
5
- export default () => {
6
- return (
7
- <div className="ald-button-demo">
8
- <Button type="primary" icon={<Icon type="add" size={20} />}>
9
- Search
10
- </Button>
11
- <Button type="secondary" icon={<Icon type="add" size={20} />}>
12
- Search
13
- </Button>
14
- <Button type="text" icon={<Icon type="add" size={20} />}>
15
- Search
16
- </Button>
17
- <Button type="danger" icon={<Icon type="add" size={20} />}>
18
- Search
19
- </Button>
20
- <Button type="link" icon={<Icon type="add" size={20} />}>
21
- Search
22
- </Button>
23
- <br />
24
- <Button icon={<Icon type="add" size={20} />}>
25
- </Button>
26
- <Button shape='circle' icon={<Icon type="add" size={20} />}>
27
- </Button>
28
- <Button shape='circle'>
29
- S
30
- </Button>
31
- <br />
32
- <Button size='small' icon={<Icon type="add" size={20} />}>
33
- </Button>
34
- <Button shape='circle' size="large" icon={<Icon type="add" size={20} />}>
35
- </Button>
36
- <Button shape='circle'>
37
- M
38
- </Button>
39
- </div>
40
- )
41
- }
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { Button } from '@aloudata/aloudata-design';
3
- import '../../style/index.less';
4
- import { Radio } from 'antd';
5
- import './index.less';
6
- export default () => {
7
- const [size, setSize] = React.useState('default');
8
- const handleSizeChange = (e: any) => {
9
- setSize(e.target.value);
10
- }
11
- return (
12
- <div className='ald-button-demo'>
13
- <Radio.Group value={size} onChange={handleSizeChange}>
14
- <Radio.Button value="small">Small</Radio.Button>
15
- <Radio.Button value='default'>Default</Radio.Button>
16
- <Radio.Button value="large">Large</Radio.Button>
17
- </Radio.Group>
18
- <br />
19
- <Button type="primary" size={size}>Primary Button</Button>
20
- <Button type="danger" size={size}>danger Button</Button>
21
- <Button type="secondary" size={size}>secondary Button</Button>
22
- <Button type="text" size={size}>Text Button</Button>
23
- <Button type="link" size={size}>Link Button</Button>
24
- </div>
25
- )
26
- };
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { Button } from '@aloudata/aloudata-design';
3
- import './index.less';
4
-
5
- export default () => {
6
-
7
- return (
8
- <div className="ald-button-demo">
9
- <Button type="primary" disabled>primary disable</Button>
10
- <Button type="secondary" disabled>secondary disable</Button>
11
- <Button type="text" disabled>text disable</Button>
12
- <Button type="danger" disabled>danger disable</Button>
13
- <Button type="link" disabled>link disable</Button>
14
- </div>
15
- )
16
- }
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { Button } from '@aloudata/aloudata-design';
3
-
4
- export default () => {
5
-
6
- return (
7
- <div className="ald-button-demo">
8
- <Button href="https://www.aloudata.com/">aloudata</Button>
9
- <Button href="https://www.aloudata.com/" target="_blank">target _blank aloudata</Button>
10
- <Button href="https://www.aloudata.com/" target="_self">target _self aloudata</Button>
11
- <Button target="_blank"> 无href target _blank</Button>
12
- </div>
13
- )
14
- }