@aloudata/aloudata-design 0.1.0-beta.4 → 0.2.0-beta.10

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 (273) hide show
  1. package/es/Button/index.d.ts +0 -1
  2. package/es/Button/index.js +0 -1
  3. package/es/Button/style/index.less +23 -13
  4. package/es/Dropdown/Button.d.ts +0 -1
  5. package/es/Dropdown/Button.js +0 -1
  6. package/es/Dropdown/index.d.ts +1 -1
  7. package/es/Dropdown/index.js +0 -1
  8. package/es/Empty/index.d.ts +7 -0
  9. package/es/Empty/index.js +56 -0
  10. package/es/Empty/style/index.d.ts +1 -0
  11. package/es/Empty/style/index.js +1 -0
  12. package/es/Empty/style/index.less +24 -0
  13. package/es/Icon/iconfont/demo_index.html +49 -3
  14. package/es/Icon/iconfont/iconfont.css +11 -3
  15. package/es/Icon/iconfont/iconfont.js +5 -5
  16. package/es/Icon/iconfont/iconfont.json +14 -0
  17. package/es/Icon/iconfont/iconfont.ttf +0 -0
  18. package/es/Icon/iconfont/iconfont.woff +0 -0
  19. package/es/Icon/iconfont/iconfont.woff2 +0 -0
  20. package/es/Icon/index.js +3 -1
  21. package/es/Icon/index.less +2 -2
  22. package/es/Input/components/Group/index.d.ts +2 -2
  23. package/es/Input/components/Input/index.d.ts +61 -0
  24. package/es/Input/components/Input/index.js +37 -0
  25. package/es/Input/components/Password/index.d.ts +5 -4
  26. package/es/Input/components/Password/index.js +5 -4
  27. package/es/Input/components/TextArea/index.d.ts +9 -4
  28. package/es/Input/components/TextArea/index.js +16 -6
  29. package/es/Input/index.d.ts +14 -63
  30. package/es/Input/index.js +4 -41
  31. package/es/Input/style/index.less +5 -3
  32. package/es/Menu/Divider.d.ts +0 -1
  33. package/es/Menu/Divider.js +0 -1
  34. package/es/Menu/MenuItem.d.ts +7 -1
  35. package/es/Menu/MenuItem.js +0 -1
  36. package/es/Menu/SubMenu.d.ts +0 -1
  37. package/es/Menu/SubMenu.js +0 -1
  38. package/es/Menu/index.d.ts +1 -1
  39. package/es/Menu/index.js +0 -1
  40. package/es/Menu/style/index.less +4 -0
  41. package/es/Navigator/components/Menu/index.d.ts +19 -0
  42. package/es/Navigator/components/Menu/index.js +187 -0
  43. package/es/Navigator/index.d.ts +40 -0
  44. package/es/Navigator/index.js +44 -0
  45. package/es/Navigator/style/index.d.ts +2 -0
  46. package/es/Navigator/style/index.js +2 -0
  47. package/es/Navigator/style/index.less +228 -0
  48. package/es/Select/index.d.ts +0 -1
  49. package/es/Select/index.js +0 -1
  50. package/es/Table/index.d.ts +4 -0
  51. package/es/Table/index.js +350 -0
  52. package/es/Table/interface.d.ts +36 -0
  53. package/es/Table/interface.js +1 -0
  54. package/es/Table/react-table-config.d.ts +122 -0
  55. package/es/Table/style/index.d.ts +2 -0
  56. package/es/Table/style/index.js +2 -0
  57. package/es/Table/style/index.less +151 -0
  58. package/es/Tabs/index.d.ts +1 -1
  59. package/es/Tabs/index.js +0 -1
  60. package/es/Tooltip/index.d.ts +0 -1
  61. package/es/Tooltip/index.js +0 -1
  62. package/es/index.d.ts +12 -0
  63. package/es/index.js +3 -1
  64. package/es/style/themes/default/index.less +1 -1
  65. package/lib/Button/index.d.ts +0 -1
  66. package/lib/Button/index.js +0 -2
  67. package/lib/Button/style/index.less +23 -13
  68. package/lib/Dropdown/Button.d.ts +0 -1
  69. package/lib/Dropdown/Button.js +0 -2
  70. package/lib/Dropdown/index.d.ts +1 -1
  71. package/lib/Dropdown/index.js +0 -2
  72. package/lib/Empty/index.d.ts +7 -0
  73. package/lib/Empty/index.js +69 -0
  74. package/lib/Empty/style/index.d.ts +1 -0
  75. package/lib/Empty/style/index.js +3 -0
  76. package/lib/Empty/style/index.less +24 -0
  77. package/lib/Icon/iconfont/demo_index.html +49 -3
  78. package/lib/Icon/iconfont/iconfont.css +11 -3
  79. package/lib/Icon/iconfont/iconfont.js +5 -5
  80. package/lib/Icon/iconfont/iconfont.json +14 -0
  81. package/lib/Icon/iconfont/iconfont.ttf +0 -0
  82. package/lib/Icon/iconfont/iconfont.woff +0 -0
  83. package/lib/Icon/iconfont/iconfont.woff2 +0 -0
  84. package/lib/Icon/index.js +5 -3
  85. package/lib/Icon/index.less +2 -2
  86. package/lib/Input/components/Group/index.d.ts +2 -2
  87. package/lib/Input/components/Input/index.d.ts +61 -0
  88. package/lib/Input/components/Input/index.js +50 -0
  89. package/lib/Input/components/Password/index.d.ts +5 -4
  90. package/lib/Input/components/Password/index.js +10 -8
  91. package/lib/Input/components/TextArea/index.d.ts +9 -4
  92. package/lib/Input/components/TextArea/index.js +18 -7
  93. package/lib/Input/index.d.ts +14 -63
  94. package/lib/Input/index.js +4 -44
  95. package/lib/Input/style/index.less +5 -3
  96. package/lib/Menu/Divider.d.ts +0 -1
  97. package/lib/Menu/Divider.js +0 -2
  98. package/lib/Menu/MenuItem.d.ts +7 -1
  99. package/lib/Menu/MenuItem.js +0 -2
  100. package/lib/Menu/SubMenu.d.ts +0 -1
  101. package/lib/Menu/SubMenu.js +0 -2
  102. package/lib/Menu/index.d.ts +1 -1
  103. package/lib/Menu/index.js +0 -2
  104. package/lib/Menu/style/index.less +4 -0
  105. package/lib/Navigator/components/Menu/index.d.ts +19 -0
  106. package/lib/Navigator/components/Menu/index.js +205 -0
  107. package/lib/Navigator/index.d.ts +40 -0
  108. package/lib/Navigator/index.js +62 -0
  109. package/lib/Navigator/style/index.d.ts +2 -0
  110. package/lib/Navigator/style/index.js +5 -0
  111. package/lib/Navigator/style/index.less +228 -0
  112. package/lib/Select/index.d.ts +0 -1
  113. package/lib/Select/index.js +0 -2
  114. package/lib/Table/index.d.ts +4 -0
  115. package/lib/Table/index.js +375 -0
  116. package/lib/Table/interface.d.ts +36 -0
  117. package/lib/Table/interface.js +5 -0
  118. package/lib/Table/react-table-config.d.ts +122 -0
  119. package/lib/Table/style/index.d.ts +2 -0
  120. package/lib/Table/style/index.js +5 -0
  121. package/lib/Table/style/index.less +151 -0
  122. package/lib/Tabs/index.d.ts +1 -1
  123. package/lib/Tabs/index.js +0 -2
  124. package/lib/Tooltip/index.d.ts +0 -1
  125. package/lib/Tooltip/index.js +0 -2
  126. package/lib/index.d.ts +12 -0
  127. package/lib/index.js +16 -0
  128. package/lib/style/themes/default/index.less +1 -1
  129. package/package.json +19 -4
  130. package/es/Button/demo/Icon/index.d.ts +0 -3
  131. package/es/Button/demo/Icon/index.js +0 -67
  132. package/es/Button/demo/Icon/index.less +0 -6
  133. package/es/Button/demo/basic/index.d.ts +0 -4
  134. package/es/Button/demo/basic/index.js +0 -57
  135. package/es/Button/demo/basic/index.less +0 -6
  136. package/es/Button/demo/disable/index.d.ts +0 -3
  137. package/es/Button/demo/disable/index.js +0 -23
  138. package/es/Button/demo/disable/index.less +0 -0
  139. package/es/Button/demo/href/index.d.ts +0 -2
  140. package/es/Button/demo/href/index.js +0 -17
  141. package/es/Button/demo/loading/index.d.ts +0 -3
  142. package/es/Button/demo/loading/index.js +0 -37
  143. package/es/Button/demo/loading/index.less +0 -6
  144. package/es/Dropdown/demo/basic/index.d.ts +0 -4
  145. package/es/Dropdown/demo/basic/index.js +0 -18
  146. package/es/Dropdown/demo/button/index.d.ts +0 -3
  147. package/es/Dropdown/demo/button/index.js +0 -159
  148. package/es/Dropdown/demo/button/index.less +0 -9
  149. package/es/Dropdown/demo/placement/index.d.ts +0 -2
  150. package/es/Dropdown/demo/placement/index.js +0 -40
  151. package/es/Dropdown/demo/subMenu/index.d.ts +0 -2
  152. package/es/Dropdown/demo/subMenu/index.js +0 -42
  153. package/es/Dropdown/demo/trigger/index.d.ts +0 -2
  154. package/es/Dropdown/demo/trigger/index.js +0 -17
  155. package/es/Input/demo/allowClear/index.d.ts +0 -3
  156. package/es/Input/demo/allowClear/index.js +0 -11
  157. package/es/Input/demo/allowClear/index.less +0 -0
  158. package/es/Input/demo/basic/index.d.ts +0 -4
  159. package/es/Input/demo/basic/index.js +0 -65
  160. package/es/Input/demo/basic/index.less +0 -6
  161. package/es/Input/demo/gourp/index.d.ts +0 -2
  162. package/es/Input/demo/gourp/index.js +0 -67
  163. package/es/Input/demo/password/index.d.ts +0 -3
  164. package/es/Input/demo/password/index.js +0 -21
  165. package/es/Input/demo/password/index.less +0 -0
  166. package/es/Input/demo/prefix/index.d.ts +0 -3
  167. package/es/Input/demo/prefix/index.js +0 -17
  168. package/es/Input/demo/prefix/index.less +0 -0
  169. package/es/Input/demo/showCount/index.d.ts +0 -3
  170. package/es/Input/demo/showCount/index.js +0 -17
  171. package/es/Input/demo/showCount/index.less +0 -0
  172. package/es/Input/demo/textArea/autoSize.d.ts +0 -2
  173. package/es/Input/demo/textArea/autoSize.js +0 -50
  174. package/es/Select/demo/disabled/index.d.ts +0 -2
  175. package/es/Select/demo/disabled/index.js +0 -50
  176. package/es/Select/demo/multiple/index.d.ts +0 -2
  177. package/es/Select/demo/multiple/index.js +0 -140
  178. package/es/Select/demo/options/index.d.ts +0 -2
  179. package/es/Select/demo/options/index.js +0 -55
  180. package/es/Select/demo/single/index.d.ts +0 -3
  181. package/es/Select/demo/single/index.js +0 -89
  182. package/es/Select/demo/single/index.less +0 -5
  183. package/es/Tabs/demo/adaptHeight/index.d.ts +0 -3
  184. package/es/Tabs/demo/adaptHeight/index.js +0 -19
  185. package/es/Tabs/demo/adaptHeight/index.less +0 -3
  186. package/es/Tabs/demo/basic/index.d.ts +0 -4
  187. package/es/Tabs/demo/basic/index.js +0 -44
  188. package/es/Tabs/demo/basic/index.less +0 -5
  189. package/es/Tabs/demo/horizontalScroll/index.d.ts +0 -3
  190. package/es/Tabs/demo/horizontalScroll/index.js +0 -30
  191. package/es/Tabs/demo/horizontalScroll/index.less +0 -3
  192. package/es/Tooltip/demo/basic/index.d.ts +0 -2
  193. package/es/Tooltip/demo/basic/index.js +0 -7
  194. package/es/Tooltip/demo/overflow/index.d.ts +0 -2
  195. package/es/Tooltip/demo/overflow/index.js +0 -7
  196. package/es/Tooltip/demo/placement/index.d.ts +0 -6
  197. package/es/Tooltip/demo/placement/index.js +0 -70
  198. package/es/Tooltip/demo/placement/index.less +0 -7
  199. package/es/Tooltip/demo/trigger/index.d.ts +0 -3
  200. package/es/Tooltip/demo/trigger/index.js +0 -20
  201. package/es/Tooltip/demo/trigger/index.less +0 -5
  202. package/lib/Button/demo/Icon/index.d.ts +0 -3
  203. package/lib/Button/demo/Icon/index.js +0 -82
  204. package/lib/Button/demo/Icon/index.less +0 -6
  205. package/lib/Button/demo/basic/index.d.ts +0 -4
  206. package/lib/Button/demo/basic/index.js +0 -73
  207. package/lib/Button/demo/basic/index.less +0 -6
  208. package/lib/Button/demo/disable/index.d.ts +0 -3
  209. package/lib/Button/demo/disable/index.js +0 -37
  210. package/lib/Button/demo/disable/index.less +0 -0
  211. package/lib/Button/demo/href/index.d.ts +0 -2
  212. package/lib/Button/demo/href/index.js +0 -30
  213. package/lib/Button/demo/loading/index.d.ts +0 -3
  214. package/lib/Button/demo/loading/index.js +0 -51
  215. package/lib/Button/demo/loading/index.less +0 -6
  216. package/lib/Dropdown/demo/basic/index.d.ts +0 -4
  217. package/lib/Dropdown/demo/basic/index.js +0 -35
  218. package/lib/Dropdown/demo/button/index.d.ts +0 -3
  219. package/lib/Dropdown/demo/button/index.js +0 -182
  220. package/lib/Dropdown/demo/button/index.less +0 -9
  221. package/lib/Dropdown/demo/placement/index.d.ts +0 -2
  222. package/lib/Dropdown/demo/placement/index.js +0 -56
  223. package/lib/Dropdown/demo/subMenu/index.d.ts +0 -2
  224. package/lib/Dropdown/demo/subMenu/index.js +0 -59
  225. package/lib/Dropdown/demo/trigger/index.d.ts +0 -2
  226. package/lib/Dropdown/demo/trigger/index.js +0 -32
  227. package/lib/Input/demo/allowClear/index.d.ts +0 -3
  228. package/lib/Input/demo/allowClear/index.js +0 -25
  229. package/lib/Input/demo/allowClear/index.less +0 -0
  230. package/lib/Input/demo/basic/index.d.ts +0 -4
  231. package/lib/Input/demo/basic/index.js +0 -80
  232. package/lib/Input/demo/basic/index.less +0 -6
  233. package/lib/Input/demo/gourp/index.d.ts +0 -2
  234. package/lib/Input/demo/gourp/index.js +0 -81
  235. package/lib/Input/demo/password/index.d.ts +0 -3
  236. package/lib/Input/demo/password/index.js +0 -35
  237. package/lib/Input/demo/password/index.less +0 -0
  238. package/lib/Input/demo/prefix/index.d.ts +0 -3
  239. package/lib/Input/demo/prefix/index.js +0 -32
  240. package/lib/Input/demo/prefix/index.less +0 -0
  241. package/lib/Input/demo/showCount/index.d.ts +0 -3
  242. package/lib/Input/demo/showCount/index.js +0 -31
  243. package/lib/Input/demo/showCount/index.less +0 -0
  244. package/lib/Input/demo/textArea/autoSize.d.ts +0 -2
  245. package/lib/Input/demo/textArea/autoSize.js +0 -63
  246. package/lib/Select/demo/disabled/index.d.ts +0 -2
  247. package/lib/Select/demo/disabled/index.js +0 -64
  248. package/lib/Select/demo/multiple/index.d.ts +0 -2
  249. package/lib/Select/demo/multiple/index.js +0 -154
  250. package/lib/Select/demo/options/index.d.ts +0 -2
  251. package/lib/Select/demo/options/index.js +0 -69
  252. package/lib/Select/demo/single/index.d.ts +0 -3
  253. package/lib/Select/demo/single/index.js +0 -103
  254. package/lib/Select/demo/single/index.less +0 -5
  255. package/lib/Tabs/demo/adaptHeight/index.d.ts +0 -3
  256. package/lib/Tabs/demo/adaptHeight/index.js +0 -34
  257. package/lib/Tabs/demo/adaptHeight/index.less +0 -3
  258. package/lib/Tabs/demo/basic/index.d.ts +0 -4
  259. package/lib/Tabs/demo/basic/index.js +0 -67
  260. package/lib/Tabs/demo/basic/index.less +0 -5
  261. package/lib/Tabs/demo/horizontalScroll/index.d.ts +0 -3
  262. package/lib/Tabs/demo/horizontalScroll/index.js +0 -45
  263. package/lib/Tabs/demo/horizontalScroll/index.less +0 -3
  264. package/lib/Tooltip/demo/basic/index.d.ts +0 -2
  265. package/lib/Tooltip/demo/basic/index.js +0 -20
  266. package/lib/Tooltip/demo/overflow/index.d.ts +0 -2
  267. package/lib/Tooltip/demo/overflow/index.js +0 -20
  268. package/lib/Tooltip/demo/placement/index.d.ts +0 -6
  269. package/lib/Tooltip/demo/placement/index.js +0 -86
  270. package/lib/Tooltip/demo/placement/index.less +0 -7
  271. package/lib/Tooltip/demo/trigger/index.d.ts +0 -3
  272. package/lib/Tooltip/demo/trigger/index.js +0 -34
  273. package/lib/Tooltip/demo/trigger/index.less +0 -5
@@ -1,50 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
-
3
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
-
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
-
7
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
-
9
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
-
11
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
-
13
- import React from 'react';
14
- import { Input, Button } from '@aloudata/aloudata-design';
15
- export default (function () {
16
- var _React$useState = React.useState(1),
17
- _React$useState2 = _slicedToArray(_React$useState, 2),
18
- maxRow = _React$useState2[0],
19
- setMaxRow = _React$useState2[1];
20
-
21
- var onClick = function onClick() {
22
- setMaxRow(maxRow + 1);
23
- };
24
-
25
- var showCount = function showCount(args) {
26
- var count = args.count,
27
- maxLength = args.maxLength;
28
- return "\u5F53\u524D\u957F\u5EA6\u4E3A\uFF1A".concat(count, ",\u6700\u5927\u957F\u5EA6\u4E3A\uFF1A").concat(maxLength);
29
- };
30
-
31
- return /*#__PURE__*/React.createElement("div", {
32
- className: "ald-input-demo"
33
- }, /*#__PURE__*/React.createElement("span", null, "autoSize\u5C5E\u6027\u81EA\u52A8\u8C03\u6574\u9AD8\u5EA6\uFF0C\u4E0D\u53EF\u62D6\u62FD\u8C03\u9AD8\uFF0C\u5F53\u524D\u6700\u9AD8", maxRow, "\u884C"), /*#__PURE__*/React.createElement(Button, {
34
- size: "small",
35
- onClick: onClick
36
- }, "\u589E\u52A0\u6700\u5927\u884C\u6570"), /*#__PURE__*/React.createElement(Input.TextArea, {
37
- id: "ald-input-textArea",
38
- maxLength: 20,
39
- autoSize: {
40
- minRows: 1,
41
- maxRows: maxRow
42
- }
43
- }), /*#__PURE__*/React.createElement("span", null, "\u5E26\u5C55\u793A\u5B57\u6570\u63D0\u793A"), /*#__PURE__*/React.createElement(Input.TextArea, {
44
- id: "ald-input-textArea",
45
- showCount: {
46
- formatter: showCount
47
- },
48
- maxLength: 20
49
- }));
50
- });
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,50 +0,0 @@
1
- import React from "react"; // import { Select } from '@aloudata/aloudata-design';
2
-
3
- import Select from '../../index';
4
- var Option = Select.Option;
5
- export default (function () {
6
- return /*#__PURE__*/React.createElement("div", {
7
- className: 'ald-select-demo'
8
- }, /*#__PURE__*/React.createElement(Select, {
9
- className: 'ald-select',
10
- style: {
11
- width: 200
12
- },
13
- size: 'large',
14
- multiple: true,
15
- disabled: true,
16
- placeholder: "large"
17
- }, /*#__PURE__*/React.createElement(Option, {
18
- key: 'a',
19
- value: "Example Text"
20
- }, "Example Text")), /*#__PURE__*/React.createElement(Select, {
21
- className: 'ald-select',
22
- style: {
23
- width: 200
24
- },
25
- multiple: true,
26
- label: 'Label:',
27
- disabled: true,
28
- placeholder: "placeholder"
29
- }, /*#__PURE__*/React.createElement(Option, {
30
- key: 'a',
31
- value: "Example Text"
32
- }, "Example Text")), /*#__PURE__*/React.createElement(Select, {
33
- className: 'ald-select',
34
- style: {
35
- width: 200
36
- },
37
- multiple: true,
38
- size: "small",
39
- label: 'Label:',
40
- defaultValue: ['a', 'b'],
41
- disabled: true,
42
- placeholder: "normal"
43
- }, /*#__PURE__*/React.createElement(Option, {
44
- key: 'a',
45
- value: "a"
46
- }, "Example Text"), /*#__PURE__*/React.createElement(Option, {
47
- key: 'b',
48
- value: "b"
49
- }, "Example Text")));
50
- });
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,140 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
-
3
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
-
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
-
7
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
-
9
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
-
11
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
-
13
- import React from "react"; // import { Select } from '@aloudata/aloudata-design';
14
-
15
- import Select from '../../index';
16
- import Icon from '../../../Icon';
17
- var Option = Select.Option;
18
- export default (function () {
19
- var _React$useState = React.useState(''),
20
- _React$useState2 = _slicedToArray(_React$useState, 2),
21
- value = _React$useState2[0],
22
- setValue = _React$useState2[1];
23
-
24
- var _onChange = function onChange(value) {
25
- console.log(value);
26
- setValue(value);
27
- };
28
-
29
- return /*#__PURE__*/React.createElement("div", {
30
- className: 'ald-select-demo'
31
- }, /*#__PURE__*/React.createElement(Select, {
32
- className: 'ald-select',
33
- style: {
34
- width: 200
35
- },
36
- size: 'large',
37
- multiple: true,
38
- placeholder: "large size"
39
- }, /*#__PURE__*/React.createElement(Option, {
40
- key: 'a',
41
- value: "Example Text"
42
- }, "Example TexExample TextExample TextExample TextExample TextExample Textt"), /*#__PURE__*/React.createElement(Option, {
43
- key: 'b',
44
- value: "b"
45
- }, "b"), /*#__PURE__*/React.createElement(Option, {
46
- key: 'c',
47
- value: "c"
48
- }, "c"), /*#__PURE__*/React.createElement(Option, {
49
- key: 'd',
50
- value: "d"
51
- }, "d"), /*#__PURE__*/React.createElement(Option, {
52
- key: 'e',
53
- value: "e"
54
- }, "e"), /*#__PURE__*/React.createElement(Option, {
55
- key: "f",
56
- value: "f"
57
- }, "f"), /*#__PURE__*/React.createElement(Option, {
58
- key: "g",
59
- value: "g"
60
- }, "g")), /*#__PURE__*/React.createElement(Select, {
61
- className: 'ald-select',
62
- style: {
63
- width: 200
64
- },
65
- size: 'default',
66
- label: 'Label:',
67
- multiple: true,
68
- listHeight: 100,
69
- placeholder: "default"
70
- }, /*#__PURE__*/React.createElement(Option, {
71
- key: 'a',
72
- value: "Example Text"
73
- }, "Example Text"), /*#__PURE__*/React.createElement(Option, {
74
- key: 'b',
75
- value: "b"
76
- }, "b"), /*#__PURE__*/React.createElement(Option, {
77
- key: 'c',
78
- value: "c"
79
- }, "c"), /*#__PURE__*/React.createElement(Option, {
80
- key: 'd',
81
- value: "d"
82
- }, "d"), /*#__PURE__*/React.createElement(Option, {
83
- key: 'e',
84
- value: "e"
85
- }, "e"), /*#__PURE__*/React.createElement(Option, {
86
- key: "f",
87
- value: "f"
88
- }, "f"), /*#__PURE__*/React.createElement(Option, {
89
- key: "g",
90
- value: "g"
91
- }, "g")), /*#__PURE__*/React.createElement(Select, {
92
- className: 'ald-select',
93
- style: {
94
- width: 200
95
- },
96
- size: 'small',
97
- multiple: true,
98
- value: value,
99
- // @ts-ignore
100
- onChange: function onChange(v) {
101
- _onChange(v);
102
- },
103
- placeholder: "small"
104
- }, /*#__PURE__*/React.createElement(Option, {
105
- key: 'a',
106
- value: "Example Text"
107
- }, "Example Text")), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Select, {
108
- className: 'ald-select',
109
- style: {
110
- width: 200
111
- },
112
- size: 'large',
113
- multiple: true,
114
- label: /*#__PURE__*/React.createElement(Icon, {
115
- type: 'view_Partial_line'
116
- }),
117
- placeholder: "large size"
118
- }, /*#__PURE__*/React.createElement(Option, {
119
- key: 'a',
120
- value: "Example Text"
121
- }, "Example TexExample TextExample TextExample TextExample TextExample Textt"), /*#__PURE__*/React.createElement(Option, {
122
- key: 'b',
123
- value: "b"
124
- }, "b"), /*#__PURE__*/React.createElement(Option, {
125
- key: 'c',
126
- value: "c"
127
- }, "c"), /*#__PURE__*/React.createElement(Option, {
128
- key: 'd',
129
- value: "d"
130
- }, "d"), /*#__PURE__*/React.createElement(Option, {
131
- key: 'e',
132
- value: "e"
133
- }, "e"), /*#__PURE__*/React.createElement(Option, {
134
- key: "f",
135
- value: "f"
136
- }, "f"), /*#__PURE__*/React.createElement(Option, {
137
- key: "g",
138
- value: "g"
139
- }, "g")));
140
- });
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,55 +0,0 @@
1
- import React from "react"; // import { Select } from '@aloudata/aloudata-design';
2
-
3
- import Select from '../../index';
4
- var Option = Select.Option;
5
- export default (function () {
6
- return /*#__PURE__*/React.createElement("div", {
7
- className: 'ald-select-demo'
8
- }, /*#__PURE__*/React.createElement(Select, {
9
- className: 'ald-select',
10
- style: {
11
- width: 200
12
- },
13
- size: 'large',
14
- multiple: true,
15
- placeholder: "large",
16
- options: [{
17
- label: 'Option 1',
18
- value: 'Option 1'
19
- }, {
20
- label: 'Option 2',
21
- value: 'Option 2'
22
- }]
23
- }), /*#__PURE__*/React.createElement(Select, {
24
- className: 'ald-select',
25
- style: {
26
- width: 200
27
- },
28
- multiple: true,
29
- label: 'Label:',
30
- placeholder: "placeholder",
31
- options: [{
32
- label: 'Option 1',
33
- value: 'Option 1'
34
- }, {
35
- label: 'Option 2',
36
- value: 'Option 2'
37
- }]
38
- }), /*#__PURE__*/React.createElement(Select, {
39
- className: 'ald-select',
40
- style: {
41
- width: 200
42
- },
43
- multiple: true,
44
- size: "small",
45
- label: 'Label:',
46
- placeholder: "normal",
47
- options: [{
48
- label: 'Option 1',
49
- value: 'Option 1'
50
- }, {
51
- label: 'Option 2',
52
- value: 'Option 2'
53
- }]
54
- }));
55
- });
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const _default: () => JSX.Element;
3
- export default _default;
@@ -1,89 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
-
3
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
-
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
-
7
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
-
9
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
-
11
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
-
13
- import React from "react"; // import { Select } from '@aloudata/aloudata-design';
14
-
15
- import Select from '../../index';
16
- import './index.less';
17
- var Option = Select.Option;
18
- export default (function () {
19
- var _React$useState = React.useState(''),
20
- _React$useState2 = _slicedToArray(_React$useState, 2),
21
- value = _React$useState2[0],
22
- setValue = _React$useState2[1];
23
-
24
- var _onChange = function onChange(value) {
25
- console.log(value);
26
- setValue(value);
27
- };
28
-
29
- return /*#__PURE__*/React.createElement("div", {
30
- className: 'ald-select-demo'
31
- }, /*#__PURE__*/React.createElement(Select, {
32
- className: 'ald-select',
33
- style: {
34
- width: 200
35
- },
36
- size: 'large',
37
- allowClear: true,
38
- placeholder: "large size"
39
- }, /*#__PURE__*/React.createElement(Option, {
40
- key: 'a',
41
- value: "Example Text"
42
- }, "Example Text"), /*#__PURE__*/React.createElement(Option, {
43
- key: 'b',
44
- value: "b"
45
- }, "Menu item"), /*#__PURE__*/React.createElement(Option, {
46
- key: 'c',
47
- value: "c"
48
- }, "c"), /*#__PURE__*/React.createElement(Option, {
49
- key: 'd',
50
- value: "d"
51
- }, "d"), /*#__PURE__*/React.createElement(Option, {
52
- key: 'e',
53
- value: "e"
54
- }, "e"), /*#__PURE__*/React.createElement(Option, {
55
- key: "f",
56
- value: "f"
57
- }, "f"), /*#__PURE__*/React.createElement(Option, {
58
- key: "g",
59
- title: "gg",
60
- value: "g",
61
- tooltip: "a"
62
- }, "g")), /*#__PURE__*/React.createElement(Select, {
63
- className: 'ald-select',
64
- style: {
65
- width: 200
66
- },
67
- size: 'default',
68
- placeholder: "default"
69
- }, /*#__PURE__*/React.createElement(Option, {
70
- key: 'a',
71
- value: "Example Text"
72
- }, "Example Text")), /*#__PURE__*/React.createElement(Select, {
73
- className: 'ald-select',
74
- style: {
75
- width: 200
76
- },
77
- size: 'small',
78
- label: 'Label:',
79
- placeholder: "small",
80
- value: value,
81
- // @ts-ignore
82
- onChange: function onChange(v) {
83
- _onChange(v);
84
- }
85
- }, /*#__PURE__*/React.createElement(Option, {
86
- key: 'a',
87
- value: "Example Text"
88
- }, "Example Text")));
89
- });
@@ -1,5 +0,0 @@
1
- .ald-select-demo {
2
- .ald-select {
3
- margin: 0 24px 16px 0;
4
- }
5
- }
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const _default: () => JSX.Element;
3
- export default _default;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import { Tabs } from '@aloudata/aloudata-design';
4
- var TabPane = Tabs.TabPane;
5
- export default (function () {
6
- return /*#__PURE__*/React.createElement("div", {
7
- className: "demo-adapt-height"
8
- }, /*#__PURE__*/React.createElement(Tabs, {
9
- adaptHeight: true
10
- }, /*#__PURE__*/React.createElement(TabPane, {
11
- tab: "Tab 1",
12
- key: "1",
13
- className: "demo-tabpane"
14
- }, "Content of Tab Pane 1"), /*#__PURE__*/React.createElement(TabPane, {
15
- tab: "Tab 2",
16
- key: "2",
17
- className: "demo-tabpane"
18
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement("div", null, "Content of Tab Pane 2")))));
19
- });
@@ -1,3 +0,0 @@
1
- .demo-adapt-height {
2
- height: 200px;
3
- }
@@ -1,4 +0,0 @@
1
- import 'antd/lib//switch/style/index.less';
2
- import './index.less';
3
- declare const _default: () => JSX.Element;
4
- export default _default;
@@ -1,44 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
-
3
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
-
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
-
7
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
-
9
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
-
11
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
-
13
- import React, { useState } from 'react';
14
- import Switch from 'antd/lib/switch';
15
- import 'antd/lib//switch/style/index.less';
16
- import './index.less';
17
- import { Tabs } from '@aloudata/aloudata-design';
18
- var TabPane = Tabs.TabPane;
19
- export default (function () {
20
- var _useState = useState('default'),
21
- _useState2 = _slicedToArray(_useState, 2),
22
- size = _useState2[0],
23
- setSize = _useState2[1];
24
-
25
- return /*#__PURE__*/React.createElement("div", {
26
- className: "demo-basic"
27
- }, /*#__PURE__*/React.createElement("div", null, "large size: ", /*#__PURE__*/React.createElement(Switch, {
28
- checked: size === 'large',
29
- onChange: function onChange(checked) {
30
- return setSize(checked ? 'large' : 'default');
31
- }
32
- })), /*#__PURE__*/React.createElement("div", {
33
- className: "tabs-container"
34
- }, /*#__PURE__*/React.createElement(Tabs, {
35
- size: size,
36
- destroyInactiveTabPane: true
37
- }, /*#__PURE__*/React.createElement(TabPane, {
38
- tab: "Tab 1",
39
- key: "1"
40
- }, "Content of Tab Pane 1"), /*#__PURE__*/React.createElement(TabPane, {
41
- tab: "Tab 2",
42
- key: "2"
43
- }, "Content of Tab Pane 2"))));
44
- });
@@ -1,5 +0,0 @@
1
- .demo-basic {
2
- .tabs-container {
3
- height: 100px;
4
- }
5
- }
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const _default: () => JSX.Element;
3
- export default _default;
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import { Tabs } from '@aloudata/aloudata-design';
4
- var TabPane = Tabs.TabPane;
5
- export default (function () {
6
- return /*#__PURE__*/React.createElement("div", {
7
- className: "demo-horizontal-scroll"
8
- }, /*#__PURE__*/React.createElement(Tabs, null, /*#__PURE__*/React.createElement(TabPane, {
9
- tab: "Tab 1",
10
- key: "1"
11
- }, "Content of Tab Pane 1"), /*#__PURE__*/React.createElement(TabPane, {
12
- tab: "Tab 2",
13
- key: "2"
14
- }, "Content of Tab Pane 2"), /*#__PURE__*/React.createElement(TabPane, {
15
- tab: "Tab 3",
16
- key: "3"
17
- }, "Content of Tab Pane 3"), /*#__PURE__*/React.createElement(TabPane, {
18
- tab: "Tab 4",
19
- key: "4"
20
- }, "Content of Tab Pane 4"), /*#__PURE__*/React.createElement(TabPane, {
21
- tab: "Tab 5",
22
- key: "5"
23
- }, "Content of Tab Pane 5"), /*#__PURE__*/React.createElement(TabPane, {
24
- tab: "Tab 6",
25
- key: "6"
26
- }, "Content of Tab Pane 6"), /*#__PURE__*/React.createElement(TabPane, {
27
- tab: "Tab 7",
28
- key: "7"
29
- }, "Content of Tab Pane 7")));
30
- });
@@ -1,3 +0,0 @@
1
- .demo-horizontal-scroll {
2
- width: 200px;
3
- }
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Tooltip } from '@aloudata/aloudata-design';
3
- export default (function () {
4
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
5
- title: "Tooltip"
6
- }, /*#__PURE__*/React.createElement("span", null, "Tooltip will show on mouse enter")));
7
- });
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Tooltip } from '@aloudata/aloudata-design';
3
- export default (function () {
4
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
5
- title: "longMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsg"
6
- }, /*#__PURE__*/React.createElement("span", null, "Tooltip will show on mouse enter")));
7
- });
@@ -1,6 +0,0 @@
1
- /**
2
- * title: 调整位置
3
- */
4
- import './index.less';
5
- declare const _default: () => JSX.Element;
6
- export default _default;
@@ -1,70 +0,0 @@
1
- /**
2
- * title: 调整位置
3
- */
4
- import React from 'react';
5
- import { Tooltip, Button } from '@aloudata/aloudata-design';
6
- import './index.less';
7
- var text = /*#__PURE__*/React.createElement("span", null, "prompt text");
8
- var buttonWidth = 70;
9
- export default (function () {
10
- return /*#__PURE__*/React.createElement("div", {
11
- className: "demo-placement"
12
- }, /*#__PURE__*/React.createElement("div", {
13
- style: {
14
- marginLeft: buttonWidth,
15
- whiteSpace: 'nowrap'
16
- }
17
- }, /*#__PURE__*/React.createElement(Tooltip, {
18
- placement: "topLeft",
19
- title: text
20
- }, /*#__PURE__*/React.createElement(Button, null, "TL")), /*#__PURE__*/React.createElement(Tooltip, {
21
- placement: "top",
22
- title: text
23
- }, /*#__PURE__*/React.createElement(Button, null, "Top")), /*#__PURE__*/React.createElement(Tooltip, {
24
- placement: "topRight",
25
- title: text
26
- }, /*#__PURE__*/React.createElement(Button, null, "TR"))), /*#__PURE__*/React.createElement("div", {
27
- style: {
28
- width: buttonWidth,
29
- float: 'left'
30
- }
31
- }, /*#__PURE__*/React.createElement(Tooltip, {
32
- placement: "leftTop",
33
- title: text
34
- }, /*#__PURE__*/React.createElement(Button, null, "LT")), /*#__PURE__*/React.createElement(Tooltip, {
35
- placement: "left",
36
- title: text
37
- }, /*#__PURE__*/React.createElement(Button, null, "Left")), /*#__PURE__*/React.createElement(Tooltip, {
38
- placement: "leftBottom",
39
- title: text
40
- }, /*#__PURE__*/React.createElement(Button, null, "LB"))), /*#__PURE__*/React.createElement("div", {
41
- style: {
42
- width: buttonWidth,
43
- marginLeft: buttonWidth * 4 + 24
44
- }
45
- }, /*#__PURE__*/React.createElement(Tooltip, {
46
- placement: "rightTop",
47
- title: text
48
- }, /*#__PURE__*/React.createElement(Button, null, "RT")), /*#__PURE__*/React.createElement(Tooltip, {
49
- placement: "right",
50
- title: text
51
- }, /*#__PURE__*/React.createElement(Button, null, "Right")), /*#__PURE__*/React.createElement(Tooltip, {
52
- placement: "rightBottom",
53
- title: text
54
- }, /*#__PURE__*/React.createElement(Button, null, "RB"))), /*#__PURE__*/React.createElement("div", {
55
- style: {
56
- marginLeft: buttonWidth,
57
- clear: 'both',
58
- whiteSpace: 'nowrap'
59
- }
60
- }, /*#__PURE__*/React.createElement(Tooltip, {
61
- placement: "bottomLeft",
62
- title: text
63
- }, /*#__PURE__*/React.createElement(Button, null, "BL")), /*#__PURE__*/React.createElement(Tooltip, {
64
- placement: "bottom",
65
- title: text
66
- }, /*#__PURE__*/React.createElement(Button, null, "Bottom")), /*#__PURE__*/React.createElement(Tooltip, {
67
- placement: "bottomRight",
68
- title: text
69
- }, /*#__PURE__*/React.createElement(Button, null, "BR"))));
70
- });
@@ -1,7 +0,0 @@
1
- .demo-placement {
2
- .ant-btn {
3
- width: 70px;
4
- margin-right: 8px;
5
- margin-bottom: 8px;
6
- }
7
- }
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const _default: () => JSX.Element;
3
- export default _default;