@aloudata/aloudata-design 0.3.1 → 0.3.4

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 (264) hide show
  1. package/README.md +15 -5
  2. package/es/Breadcrumb/index.d.ts +1 -0
  3. package/es/Button/index.js +3 -2
  4. package/es/Button/style/index.less +135 -126
  5. package/es/Button/style/variables.less +53 -53
  6. package/es/Card/index.d.ts +3 -0
  7. package/es/Card/index.js +3 -0
  8. package/es/Card/style/index.d.ts +2 -0
  9. package/es/Card/style/index.js +2 -0
  10. package/es/Card/style/index.less +1 -0
  11. package/es/Checkbox/index.d.ts +1 -0
  12. package/es/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
  13. package/es/ConfigProvider/defaultRenderEmpty.js +37 -0
  14. package/es/ConfigProvider/sizeContext.d.ts +9 -0
  15. package/es/ConfigProvider/sizeContext.js +12 -0
  16. package/es/Dropdown/Button.js +4 -3
  17. package/es/Empty/image/Authority.d.ts +1 -0
  18. package/es/Empty/image/Dataspace.d.ts +1 -0
  19. package/es/Empty/image/Search.d.ts +1 -0
  20. package/es/Empty/image/Simple.d.ts +1 -0
  21. package/es/Empty/image/Worksheet.d.ts +1 -0
  22. package/es/Empty/image/empty.d.ts +1 -0
  23. package/es/Icon/icons/CheckLine.d.ts +13 -0
  24. package/es/Icon/icons/CheckLine.js +73 -0
  25. package/es/Icon/icons.json +410 -0
  26. package/es/Input/components/Group/index.d.ts +3 -1
  27. package/es/Input/components/Group/index.js +6 -12
  28. package/es/Input/components/Input/index.d.ts +3 -2
  29. package/es/Input/components/Input/index.js +11 -23
  30. package/es/Input/components/Password/index.js +11 -16
  31. package/es/Input/components/TextArea/index.d.ts +8 -1
  32. package/es/Input/components/TextArea/index.js +8 -1
  33. package/es/Input/style/index.less +180 -102
  34. package/es/InputNumber/index.d.ts +1 -0
  35. package/es/InputNumber/style/index.less +69 -69
  36. package/es/Menu/Divider.d.ts +1 -0
  37. package/es/Modal/index.js +20 -16
  38. package/es/Modal/locale.d.ts +7 -0
  39. package/es/Modal/locale.js +20 -0
  40. package/es/Modal/style/index.less +48 -45
  41. package/es/Navigator/components/Header/index.d.ts +1 -0
  42. package/es/Navigator/components/Menu/index.d.ts +1 -0
  43. package/es/Navigator/components/MenuItem/index.d.ts +1 -1
  44. package/es/Navigator/index.d.ts +1 -1
  45. package/es/PageHeader/index.d.ts +3 -0
  46. package/es/PageHeader/index.js +3 -0
  47. package/es/PageHeader/style/index.d.ts +2 -0
  48. package/es/PageHeader/style/index.js +2 -0
  49. package/es/PageHeader/style/index.less +1 -0
  50. package/es/Popover/index.d.ts +1 -0
  51. package/es/Radio/components/Group/index.d.ts +6 -0
  52. package/es/Radio/components/Group/index.js +72 -0
  53. package/es/Radio/components/Radio/index.d.ts +3 -0
  54. package/es/Radio/components/Radio/index.js +95 -0
  55. package/es/Radio/index.d.ts +9 -2
  56. package/es/Radio/index.js +5 -3
  57. package/es/Radio/interface/radio.d.ts +24 -0
  58. package/es/Radio/interface/radio.js +1 -0
  59. package/es/Radio/interface/radioGroup.d.ts +42 -0
  60. package/es/Radio/interface/radioGroup.js +1 -0
  61. package/es/Radio/style/index.less +348 -0
  62. package/es/Select/index.js +1 -1
  63. package/es/Select/rc-select/OptionList.js +4 -4
  64. package/es/Select/rc-select/Selector/MultipleSelector.js +11 -1
  65. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  66. package/es/Select/style/index.less +70 -45
  67. package/es/Select/style/variables.less +45 -45
  68. package/es/Select/utils/iconUtil.d.ts +2 -2
  69. package/es/Select/utils/iconUtil.js +9 -5
  70. package/es/Steps/components/ProcessIcon/index.d.ts +6 -0
  71. package/es/Steps/components/ProcessIcon/index.js +8 -0
  72. package/es/Steps/components/Step/index.d.ts +20 -0
  73. package/es/Steps/components/Step/index.js +45 -0
  74. package/es/Steps/index.d.ts +36 -2
  75. package/es/Steps/index.js +30 -1
  76. package/es/Steps/matchMedia.mock.d.ts +1 -0
  77. package/es/Steps/matchMedia.mock.js +17 -0
  78. package/es/Steps/style/index.less +251 -0
  79. package/es/Switch/index.d.ts +46 -2
  80. package/es/Switch/index.js +71 -1
  81. package/es/Switch/style/index.less +129 -0
  82. package/es/Table/Table.d.ts +2 -1
  83. package/es/Table/Table.js +223 -330
  84. package/es/Table/components/Empty/index.d.ts +3 -0
  85. package/es/Table/components/Empty/index.js +17 -0
  86. package/es/Table/components/Loading/index.d.ts +3 -0
  87. package/es/Table/components/Loading/index.js +19 -0
  88. package/es/Table/components/TableBodyRowList/index.d.ts +13 -0
  89. package/es/Table/components/TableBodyRowList/index.js +89 -0
  90. package/es/Table/components/TableHead/index.d.ts +23 -0
  91. package/es/Table/components/TableHead/index.js +262 -0
  92. package/es/Table/constant.d.ts +1 -0
  93. package/es/Table/constant.js +1 -0
  94. package/es/Table/hooks/useFrame.d.ts +7 -0
  95. package/es/Table/hooks/useFrame.js +90 -0
  96. package/es/Table/hooks/useTableColumn.d.ts +28 -0
  97. package/es/Table/hooks/useTableColumn.js +53 -0
  98. package/es/Table/interface.d.ts +3 -2
  99. package/es/Table/style/index.less +33 -30
  100. package/es/Table/utils.d.ts +15 -0
  101. package/es/Table/utils.js +131 -0
  102. package/es/Tabs/index.js +7 -9
  103. package/es/Tabs/style/index.less +57 -25
  104. package/es/_utils/hooks/useId.d.ts +4 -0
  105. package/es/_utils/hooks/useId.js +23 -0
  106. package/es/index.d.ts +9 -5
  107. package/es/index.js +3 -1
  108. package/es/locale/default.d.ts +2 -0
  109. package/es/locale/default.js +2 -0
  110. package/es/locale/en_US.d.ts +3 -0
  111. package/es/locale/en_US.js +132 -0
  112. package/es/locale/zh_CN.d.ts +3 -2
  113. package/es/locale/zh_CN.js +131 -2
  114. package/es/locale-provider/LocaleReceiver.d.ts +4 -0
  115. package/es/locale-provider/LocaleReceiver.js +3 -0
  116. package/es/locale-provider/context.d.ts +7 -0
  117. package/es/locale-provider/context.js +3 -0
  118. package/es/locale-provider/default.d.ts +2 -0
  119. package/es/locale-provider/default.js +2 -0
  120. package/es/locale-provider/en_US.d.ts +2 -0
  121. package/es/locale-provider/en_US.js +2 -0
  122. package/es/locale-provider/index.d.ts +65 -0
  123. package/es/locale-provider/index.js +102 -0
  124. package/es/locale-provider/style/index.d.ts +1 -0
  125. package/es/locale-provider/style/index.js +1 -0
  126. package/es/locale-provider/style/index.less +2 -0
  127. package/es/locale-provider/zh_CN.d.ts +2 -0
  128. package/es/locale-provider/zh_CN.js +2 -0
  129. package/es/style/index.d.ts +0 -1
  130. package/es/style/index.js +0 -1
  131. package/es/style/index.less +2 -2
  132. package/es/style/themes/default/index.less +30 -30
  133. package/lib/Breadcrumb/index.d.ts +1 -0
  134. package/lib/Button/index.js +5 -3
  135. package/lib/Button/style/index.less +135 -126
  136. package/lib/Button/style/variables.less +53 -53
  137. package/lib/Card/index.d.ts +3 -0
  138. package/lib/Card/index.js +15 -0
  139. package/lib/Card/style/index.d.ts +2 -0
  140. package/lib/Card/style/index.js +5 -0
  141. package/lib/Card/style/index.less +1 -0
  142. package/lib/Checkbox/index.d.ts +1 -0
  143. package/lib/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
  144. package/lib/ConfigProvider/defaultRenderEmpty.js +55 -0
  145. package/lib/ConfigProvider/sizeContext.d.ts +9 -0
  146. package/lib/ConfigProvider/sizeContext.js +30 -0
  147. package/lib/Dropdown/Button.js +8 -6
  148. package/lib/Empty/image/Authority.d.ts +1 -0
  149. package/lib/Empty/image/Dataspace.d.ts +1 -0
  150. package/lib/Empty/image/Search.d.ts +1 -0
  151. package/lib/Empty/image/Simple.d.ts +1 -0
  152. package/lib/Empty/image/Worksheet.d.ts +1 -0
  153. package/lib/Empty/image/empty.d.ts +1 -0
  154. package/lib/Icon/icons/CheckLine.d.ts +13 -0
  155. package/lib/Icon/icons/CheckLine.js +90 -0
  156. package/lib/Icon/icons.json +410 -0
  157. package/lib/Input/components/Group/index.d.ts +3 -1
  158. package/lib/Input/components/Group/index.js +7 -12
  159. package/lib/Input/components/Input/index.d.ts +3 -2
  160. package/lib/Input/components/Input/index.js +13 -23
  161. package/lib/Input/components/Password/index.js +13 -17
  162. package/lib/Input/components/TextArea/index.d.ts +8 -1
  163. package/lib/Input/components/TextArea/index.js +10 -1
  164. package/lib/Input/style/index.less +180 -102
  165. package/lib/InputNumber/index.d.ts +1 -0
  166. package/lib/InputNumber/style/index.less +69 -69
  167. package/lib/Menu/Divider.d.ts +1 -0
  168. package/lib/Modal/index.js +25 -18
  169. package/lib/Modal/locale.d.ts +7 -0
  170. package/lib/Modal/locale.js +31 -0
  171. package/lib/Modal/style/index.less +48 -45
  172. package/lib/Navigator/components/Header/index.d.ts +1 -0
  173. package/lib/Navigator/components/Menu/index.d.ts +1 -0
  174. package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
  175. package/lib/Navigator/index.d.ts +1 -1
  176. package/lib/PageHeader/index.d.ts +3 -0
  177. package/lib/PageHeader/index.js +15 -0
  178. package/lib/PageHeader/style/index.d.ts +2 -0
  179. package/lib/PageHeader/style/index.js +5 -0
  180. package/lib/PageHeader/style/index.less +1 -0
  181. package/lib/Popover/index.d.ts +1 -0
  182. package/lib/Radio/components/Group/index.d.ts +6 -0
  183. package/lib/Radio/components/Group/index.js +93 -0
  184. package/lib/Radio/components/Radio/index.d.ts +3 -0
  185. package/lib/Radio/components/Radio/index.js +115 -0
  186. package/lib/Radio/index.d.ts +9 -2
  187. package/lib/Radio/index.js +5 -3
  188. package/lib/Radio/interface/radio.d.ts +24 -0
  189. package/lib/Radio/interface/radio.js +5 -0
  190. package/lib/Radio/interface/radioGroup.d.ts +42 -0
  191. package/lib/Radio/interface/radioGroup.js +5 -0
  192. package/lib/Radio/style/index.less +348 -0
  193. package/lib/Select/index.js +1 -1
  194. package/lib/Select/rc-select/OptionList.js +8 -7
  195. package/lib/Select/rc-select/Selector/MultipleSelector.js +11 -1
  196. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  197. package/lib/Select/style/index.less +70 -45
  198. package/lib/Select/style/variables.less +45 -45
  199. package/lib/Select/utils/iconUtil.d.ts +2 -2
  200. package/lib/Select/utils/iconUtil.js +13 -7
  201. package/lib/Steps/components/ProcessIcon/index.d.ts +6 -0
  202. package/lib/Steps/components/ProcessIcon/index.js +19 -0
  203. package/lib/Steps/components/Step/index.d.ts +20 -0
  204. package/lib/Steps/components/Step/index.js +61 -0
  205. package/lib/Steps/index.d.ts +36 -2
  206. package/lib/Steps/index.js +34 -1
  207. package/lib/Steps/matchMedia.mock.d.ts +1 -0
  208. package/lib/Steps/matchMedia.mock.js +17 -0
  209. package/lib/Steps/style/index.less +251 -0
  210. package/lib/Switch/index.d.ts +46 -2
  211. package/lib/Switch/index.js +78 -1
  212. package/lib/Switch/style/index.less +129 -0
  213. package/lib/Table/Table.d.ts +2 -1
  214. package/lib/Table/Table.js +228 -332
  215. package/lib/Table/components/Empty/index.d.ts +3 -0
  216. package/lib/Table/components/Empty/index.js +30 -0
  217. package/lib/Table/components/Loading/index.d.ts +3 -0
  218. package/lib/Table/components/Loading/index.js +33 -0
  219. package/lib/Table/components/TableBodyRowList/index.d.ts +13 -0
  220. package/lib/Table/components/TableBodyRowList/index.js +108 -0
  221. package/lib/Table/components/TableHead/index.d.ts +23 -0
  222. package/lib/Table/components/TableHead/index.js +286 -0
  223. package/lib/Table/constant.d.ts +1 -0
  224. package/lib/Table/constant.js +1 -0
  225. package/lib/Table/hooks/useFrame.d.ts +7 -0
  226. package/lib/Table/hooks/useFrame.js +98 -0
  227. package/lib/Table/hooks/useTableColumn.d.ts +28 -0
  228. package/lib/Table/hooks/useTableColumn.js +66 -0
  229. package/lib/Table/interface.d.ts +3 -2
  230. package/lib/Table/style/index.less +33 -30
  231. package/lib/Table/utils.d.ts +15 -0
  232. package/lib/Table/utils.js +147 -0
  233. package/lib/Tabs/index.js +9 -11
  234. package/lib/Tabs/style/index.less +57 -25
  235. package/lib/_utils/hooks/useId.d.ts +4 -0
  236. package/lib/_utils/hooks/useId.js +36 -0
  237. package/lib/index.d.ts +9 -5
  238. package/lib/index.js +16 -0
  239. package/lib/locale/default.d.ts +2 -0
  240. package/lib/locale/default.js +13 -0
  241. package/lib/locale/en_US.d.ts +3 -0
  242. package/lib/locale/en_US.js +146 -0
  243. package/lib/locale/zh_CN.d.ts +3 -2
  244. package/lib/locale/zh_CN.js +134 -2
  245. package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
  246. package/lib/locale-provider/LocaleReceiver.js +23 -0
  247. package/lib/locale-provider/context.d.ts +7 -0
  248. package/lib/locale-provider/context.js +12 -0
  249. package/lib/locale-provider/default.d.ts +2 -0
  250. package/lib/locale-provider/default.js +13 -0
  251. package/lib/locale-provider/en_US.d.ts +2 -0
  252. package/lib/locale-provider/en_US.js +13 -0
  253. package/lib/locale-provider/index.d.ts +65 -0
  254. package/lib/locale-provider/index.js +116 -0
  255. package/lib/locale-provider/style/index.d.ts +1 -0
  256. package/lib/locale-provider/style/index.js +3 -0
  257. package/lib/locale-provider/style/index.less +2 -0
  258. package/lib/locale-provider/zh_CN.d.ts +2 -0
  259. package/lib/locale-provider/zh_CN.js +13 -0
  260. package/lib/style/index.d.ts +0 -1
  261. package/lib/style/index.js +0 -2
  262. package/lib/style/index.less +2 -2
  263. package/lib/style/themes/default/index.less +30 -30
  264. package/package.json +11 -8
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ declare const defaultRenderEmpty: (componentName?: string | undefined) => React.ReactNode;
3
+ export declare type RenderEmptyHandler = typeof defaultRenderEmpty;
4
+ export default defaultRenderEmpty;
@@ -0,0 +1,37 @@
1
+ import * as React from 'react';
2
+ import { ConfigConsumer } from '.';
3
+ import Empty from '../Empty';
4
+
5
+ var defaultRenderEmpty = function defaultRenderEmpty(componentName) {
6
+ return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (_ref) {
7
+ var getPrefixCls = _ref.getPrefixCls;
8
+ var prefix = getPrefixCls('empty');
9
+
10
+ switch (componentName) {
11
+ case 'Table':
12
+ case 'List':
13
+ return /*#__PURE__*/React.createElement(Empty, {
14
+ image: Empty.PRESENTED_IMAGE_SIMPLE
15
+ });
16
+
17
+ case 'Select':
18
+ case 'TreeSelect':
19
+ case 'Cascader':
20
+ case 'Transfer':
21
+ case 'Mentions':
22
+ return /*#__PURE__*/React.createElement(Empty, {
23
+ image: Empty.PRESENTED_IMAGE_SIMPLE,
24
+ title: "\u65E0\u6570\u636E",
25
+ className: "".concat(prefix, "-small")
26
+ });
27
+
28
+ /* istanbul ignore next */
29
+
30
+ default:
31
+ // Should never hit if we take all the component into consider.
32
+ return /*#__PURE__*/React.createElement(Empty, null);
33
+ }
34
+ });
35
+ };
36
+
37
+ export default defaultRenderEmpty;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ export declare type SizeType = 'small' | 'middle' | 'large' | undefined;
3
+ declare const SizeContext: React.Context<"small" | "large" | "middle" | undefined>;
4
+ export interface ISizeContextProps {
5
+ size?: SizeType;
6
+ children?: React.ReactNode;
7
+ }
8
+ export declare const SizeContextProvider: React.FC<ISizeContextProps>;
9
+ export default SizeContext;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ var SizeContext = /*#__PURE__*/React.createContext(undefined);
3
+ export var SizeContextProvider = function SizeContextProvider(_ref) {
4
+ var children = _ref.children,
5
+ size = _ref.size;
6
+ return /*#__PURE__*/React.createElement(SizeContext.Consumer, null, function (originSize) {
7
+ return /*#__PURE__*/React.createElement(SizeContext.Provider, {
8
+ value: size || originSize
9
+ }, children);
10
+ });
11
+ };
12
+ export default SizeContext;
@@ -1,3 +1,5 @@
1
+ import "@aloudata/icons-react/styles/index.less";
2
+ import _ArrowsDownLine from "@aloudata/icons-react/es/icons/ArrowsDownLine";
1
3
  var _excluded = ["children", "overlay", "placement", "trigger", "visible", "disabled", "onVisibleChange"];
2
4
 
3
5
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
@@ -9,7 +11,6 @@ import Button from '../Button';
9
11
  import '../Button/style'; // eslint-disable-next-line import/no-cycle
10
12
 
11
13
  import Dropdown from './index';
12
- import Icon from '../Icon';
13
14
  export default function DropdownButton(props) {
14
15
  var children = props.children,
15
16
  overlay = props.overlay,
@@ -27,7 +28,7 @@ export default function DropdownButton(props) {
27
28
  visible: visible,
28
29
  disabled: disabled,
29
30
  onVisibleChange: onVisibleChange
30
- }, /*#__PURE__*/React.createElement(Button, Object.assign({}, buttonProps), children, /*#__PURE__*/React.createElement(Icon, {
31
- type: "arrows-down-line"
31
+ }, /*#__PURE__*/React.createElement(Button, Object.assign({}, buttonProps), children, /*#__PURE__*/React.createElement(_ArrowsDownLine, {
32
+ fill: "currentColor"
32
33
  })));
33
34
  }
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Empty: () => JSX.Element;
2
3
  export default Empty;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Empty: () => JSX.Element;
2
3
  export default Empty;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Empty: () => JSX.Element;
2
3
  export default Empty;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Empty: () => JSX.Element;
2
3
  export default Empty;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Empty: () => JSX.Element;
2
3
  export default Empty;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Empty: () => JSX.Element;
2
3
  export default Empty;
@@ -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 CheckLine(props: IconProps): JSX.Element;
13
+ export {};
@@ -0,0 +1,73 @@
1
+ var _excluded = ["size", "width", "height", "spin", "rtl", "color", "fill", "stroke", "className"];
2
+
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+
5
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
+
7
+ import React, { useEffect, useRef } from 'react';
8
+ import styles from './style.css';
9
+ export default function CheckLine(props) {
10
+ var root = useRef(null);
11
+
12
+ var _props$size = props.size,
13
+ size = _props$size === void 0 ? '1em' : _props$size,
14
+ width = props.width,
15
+ height = props.height,
16
+ spin = props.spin,
17
+ rtl = props.rtl,
18
+ color = props.color,
19
+ fill = props.fill,
20
+ stroke = props.stroke,
21
+ className = props.className,
22
+ rest = _objectWithoutProperties(props, _excluded);
23
+
24
+ var _width = width || size;
25
+
26
+ var _height = height || size;
27
+
28
+ var _stroke = stroke || color;
29
+
30
+ var _fill = fill || color;
31
+
32
+ useEffect(function () {
33
+ if (!_fill) {
34
+ var _root$current;
35
+
36
+ (_root$current = root.current) === null || _root$current === void 0 ? void 0 : _root$current.querySelectorAll('[data-follow-fill]').forEach(function (item) {
37
+ item.setAttribute('fill', item.getAttribute('data-follow-fill') || '');
38
+ });
39
+ }
40
+
41
+ if (!_stroke) {
42
+ var _root$current2;
43
+
44
+ (_root$current2 = root.current) === null || _root$current2 === void 0 ? void 0 : _root$current2.querySelectorAll('[data-follow-stroke]').forEach(function (item) {
45
+ item.setAttribute('stroke', item.getAttribute('data-follow-stroke') || '');
46
+ });
47
+ }
48
+ }, [stroke, color, fill]);
49
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
50
+ ref: root,
51
+ width: _width,
52
+ height: _height,
53
+ viewBox: "0 0 24 24",
54
+ preserveAspectRatio: "xMidYMid meet",
55
+ fill: "none",
56
+ role: "presentation",
57
+ xmlns: "http://www.w3.org/2000/svg",
58
+ className: "".concat(className || '', " ").concat(spin ? styles.spin : '', " ").concat(rtl ? styles.rtl : '').trim()
59
+ }, rest), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
60
+ clipPath: "url(#650c5__a)"
61
+ }, /*#__PURE__*/React.createElement("path", {
62
+ "data-follow-fill": "#001A33",
63
+ fillRule: "evenodd",
64
+ clipRule: "evenodd",
65
+ d: "M23.646 2.237a1 1 0 0 1 .117 1.41L9.023 21.051l-.002.003a2.69 2.69 0 0 1-.942.705 2.727 2.727 0 0 1-2.313-.036 2.684 2.684 0 0 1-.931-.749L.218 15.183a1 1 0 0 1 1.564-1.247l4.623 5.8a.684.684 0 0 0 .238.19.727.727 0 0 0 .615.01.688.688 0 0 0 .24-.179H7.5L22.237 2.353a1 1 0 0 1 1.41-.117Z",
66
+ fill: _fill
67
+ })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
68
+ id: "650c5__a"
69
+ }, /*#__PURE__*/React.createElement("path", {
70
+ d: "M0 0h24v24H0z",
71
+ fill: "#fff"
72
+ })))));
73
+ }
@@ -0,0 +1,410 @@
1
+ [
2
+ {
3
+ "id": 0,
4
+ "title": "加载中",
5
+ "name": "loading-line",
6
+ "category": "Line",
7
+ "categoryCN": "线",
8
+ "author": "阿广"
9
+ },
10
+ {
11
+ "id": 1,
12
+ "title": "全部",
13
+ "name": "all-line",
14
+ "category": "Line",
15
+ "categoryCN": "线",
16
+ "author": "阿广"
17
+ },
18
+ {
19
+ "id": 2,
20
+ "title": "至底",
21
+ "name": "to-bottom-line",
22
+ "category": "Line",
23
+ "categoryCN": "线",
24
+ "author": "阿广"
25
+ },
26
+ {
27
+ "id": 3,
28
+ "title": "闪电",
29
+ "name": "lightning-line",
30
+ "category": "Line",
31
+ "categoryCN": "线",
32
+ "author": "阿广"
33
+ },
34
+ {
35
+ "id": 4,
36
+ "title": "复制",
37
+ "name": "copy-line",
38
+ "category": "Line",
39
+ "categoryCN": "线",
40
+ "author": "阿广"
41
+ },
42
+ {
43
+ "id": 5,
44
+ "title": "标签",
45
+ "name": "hashtag-line",
46
+ "category": "Line",
47
+ "categoryCN": "线",
48
+ "author": "阿广"
49
+ },
50
+ {
51
+ "id": 6,
52
+ "title": "日历",
53
+ "name": "calendar-line",
54
+ "category": "Line",
55
+ "categoryCN": "线",
56
+ "author": "阿广"
57
+ },
58
+ {
59
+ "id": 7,
60
+ "title": "至顶",
61
+ "name": "to-top-line",
62
+ "category": "Line",
63
+ "categoryCN": "线",
64
+ "author": "阿广"
65
+ },
66
+ {
67
+ "id": 8,
68
+ "title": "最大化",
69
+ "name": "maximize-line",
70
+ "category": "Line",
71
+ "categoryCN": "线",
72
+ "author": "阿广"
73
+ },
74
+ {
75
+ "id": 9,
76
+ "title": "等待中_圆形",
77
+ "name": "waiting-line",
78
+ "category": "Line",
79
+ "categoryCN": "线",
80
+ "author": "阿广"
81
+ },
82
+ {
83
+ "id": 10,
84
+ "title": "收缩",
85
+ "name": "shrink-line",
86
+ "category": "Line",
87
+ "categoryCN": "线",
88
+ "author": "阿广"
89
+ },
90
+ {
91
+ "id": 11,
92
+ "title": "明细",
93
+ "name": "lists-line",
94
+ "category": "Line",
95
+ "categoryCN": "线",
96
+ "author": "阿广"
97
+ },
98
+ {
99
+ "id": 12,
100
+ "title": "正确_圆形",
101
+ "name": "check-circle-line",
102
+ "category": "Line",
103
+ "categoryCN": "线",
104
+ "author": "阿广"
105
+ },
106
+ {
107
+ "id": 13,
108
+ "title": "错误_圆形",
109
+ "name": "error-circle-line",
110
+ "category": "Line",
111
+ "categoryCN": "线",
112
+ "author": "阿广"
113
+ },
114
+ {
115
+ "id": 14,
116
+ "title": "右箭头_小号",
117
+ "name": "arrows-right-sm-line",
118
+ "category": "Line",
119
+ "categoryCN": "线",
120
+ "author": "阿广"
121
+ },
122
+ {
123
+ "id": 15,
124
+ "title": "优化",
125
+ "name": "optimize-line",
126
+ "category": "Line",
127
+ "categoryCN": "线",
128
+ "author": "阿广"
129
+ },
130
+ {
131
+ "id": 16,
132
+ "title": "文本",
133
+ "name": "text-line",
134
+ "category": "Line",
135
+ "categoryCN": "线",
136
+ "author": "阿广"
137
+ },
138
+ {
139
+ "id": 17,
140
+ "title": "用户_圆形",
141
+ "name": "user-circle-line",
142
+ "category": "Line",
143
+ "categoryCN": "线",
144
+ "author": "阿广"
145
+ },
146
+ {
147
+ "id": 18,
148
+ "title": "智能_模板",
149
+ "name": "ai-template-line",
150
+ "category": "Line",
151
+ "categoryCN": "线",
152
+ "author": "阿广"
153
+ },
154
+ {
155
+ "id": 19,
156
+ "title": "添加",
157
+ "name": "add-line",
158
+ "category": "Line",
159
+ "categoryCN": "线",
160
+ "author": "阿广"
161
+ },
162
+ {
163
+ "id": 20,
164
+ "title": "智能_明细",
165
+ "name": "ai-lists-line",
166
+ "category": "Line",
167
+ "categoryCN": "线",
168
+ "author": "阿广"
169
+ },
170
+ {
171
+ "id": 21,
172
+ "title": "check",
173
+ "name": "check-line",
174
+ "category": "Line",
175
+ "categoryCN": "线",
176
+ "author": "阿广"
177
+ },
178
+ {
179
+ "id": 22,
180
+ "title": "聚合",
181
+ "name": "column-line",
182
+ "category": "Line",
183
+ "categoryCN": "线",
184
+ "author": "阿广"
185
+ },
186
+ {
187
+ "id": 23,
188
+ "title": "新窗口",
189
+ "name": "new-windows-line",
190
+ "category": "Line",
191
+ "categoryCN": "线",
192
+ "author": "阿广"
193
+ },
194
+ {
195
+ "id": 24,
196
+ "title": "智能_聚合",
197
+ "name": "ai-column-line",
198
+ "category": "Line",
199
+ "categoryCN": "线",
200
+ "author": "阿广"
201
+ },
202
+ {
203
+ "id": 25,
204
+ "title": "文章",
205
+ "name": "article-fill",
206
+ "category": "Fill",
207
+ "categoryCN": "填充",
208
+ "author": "阿广"
209
+ },
210
+ {
211
+ "id": 26,
212
+ "title": "存储",
213
+ "name": "storage-fill",
214
+ "category": "Fill",
215
+ "categoryCN": "填充",
216
+ "author": "阿广"
217
+ },
218
+ {
219
+ "id": 27,
220
+ "title": "点",
221
+ "name": "dot-fill",
222
+ "category": "Fill",
223
+ "categoryCN": "填充",
224
+ "author": "阿广"
225
+ },
226
+ {
227
+ "id": 28,
228
+ "title": "信息",
229
+ "name": "info-fill",
230
+ "category": "Fill",
231
+ "categoryCN": "填充",
232
+ "author": "阿广"
233
+ },
234
+ {
235
+ "id": 29,
236
+ "title": "闪电",
237
+ "name": "lightning-fill",
238
+ "category": "Fill",
239
+ "categoryCN": "填充",
240
+ "author": "阿广"
241
+ },
242
+ {
243
+ "id": 30,
244
+ "title": "文件夹_打开",
245
+ "name": "folder-open-fill",
246
+ "category": "Fill",
247
+ "categoryCN": "填充",
248
+ "author": "阿广"
249
+ },
250
+ {
251
+ "id": 31,
252
+ "title": "文件夹",
253
+ "name": "folder-fill",
254
+ "category": "Fill",
255
+ "categoryCN": "填充",
256
+ "author": "阿广"
257
+ },
258
+ {
259
+ "id": 32,
260
+ "title": "箭头_向下",
261
+ "name": "arrows-down-line",
262
+ "category": "Line",
263
+ "categoryCN": "线",
264
+ "author": "阿广"
265
+ },
266
+ {
267
+ "id": 33,
268
+ "title": "取消",
269
+ "name": "cancel-fill",
270
+ "category": "Fill",
271
+ "categoryCN": "填充",
272
+ "author": "阿广"
273
+ },
274
+ {
275
+ "id": 34,
276
+ "title": "关闭",
277
+ "name": "close-line",
278
+ "category": "Line",
279
+ "categoryCN": "线",
280
+ "author": "阿广"
281
+ },
282
+ {
283
+ "id": 35,
284
+ "title": "删除",
285
+ "name": "delete-line",
286
+ "category": "Line",
287
+ "categoryCN": "线",
288
+ "author": "阿广"
289
+ },
290
+ {
291
+ "id": 36,
292
+ "title": "下载",
293
+ "name": "download-line",
294
+ "category": "Line",
295
+ "categoryCN": "线",
296
+ "author": "阿广"
297
+ },
298
+ {
299
+ "id": 37,
300
+ "title": "闭眼",
301
+ "name": "eye-off-line",
302
+ "category": "Line",
303
+ "categoryCN": "线",
304
+ "author": "阿广"
305
+ },
306
+ {
307
+ "id": 38,
308
+ "title": "睁眼",
309
+ "name": "eye-on-line",
310
+ "category": "Line",
311
+ "categoryCN": "线",
312
+ "author": "阿广"
313
+ },
314
+ {
315
+ "id": 39,
316
+ "title": "更多",
317
+ "name": "more",
318
+ "category": "Fill",
319
+ "categoryCN": "填充",
320
+ "author": "阿广"
321
+ },
322
+ {
323
+ "id": 40,
324
+ "title": "查询",
325
+ "name": "search-line",
326
+ "category": "Line",
327
+ "categoryCN": "线",
328
+ "author": "阿广"
329
+ },
330
+ {
331
+ "id": 41,
332
+ "title": "升序排列",
333
+ "name": "sort-ascending-line",
334
+ "category": "Line",
335
+ "categoryCN": "线",
336
+ "author": "阿广"
337
+ },
338
+ {
339
+ "id": 42,
340
+ "title": "降序排列",
341
+ "name": "sort-descending-line",
342
+ "category": "Line",
343
+ "categoryCN": "线",
344
+ "author": "阿广"
345
+ },
346
+ {
347
+ "id": 43,
348
+ "title": "check@fill",
349
+ "name": "check-fill",
350
+ "category": "Fill",
351
+ "categoryCN": "填充",
352
+ "author": "阿广"
353
+ },
354
+ {
355
+ "id": 44,
356
+ "title": "数据空间",
357
+ "name": "data-space-line",
358
+ "category": "Line",
359
+ "categoryCN": "线",
360
+ "author": "阿广"
361
+ },
362
+ {
363
+ "id": 45,
364
+ "title": "数据集",
365
+ "name": "dataset-line",
366
+ "category": "Line",
367
+ "categoryCN": "线",
368
+ "author": "阿广"
369
+ },
370
+ {
371
+ "id": 46,
372
+ "title": "文件",
373
+ "name": "file-line",
374
+ "category": "Line",
375
+ "categoryCN": "线",
376
+ "author": "阿广"
377
+ },
378
+ {
379
+ "id": 47,
380
+ "title": "同步刷新",
381
+ "name": "sync-refresh-line",
382
+ "category": "Line",
383
+ "categoryCN": "线",
384
+ "author": "阿广"
385
+ },
386
+ {
387
+ "id": 48,
388
+ "title": "表格",
389
+ "name": "table-line",
390
+ "category": "Line",
391
+ "categoryCN": "线",
392
+ "author": "阿广"
393
+ },
394
+ {
395
+ "id": 49,
396
+ "title": "视图",
397
+ "name": "view-line",
398
+ "category": "Line",
399
+ "categoryCN": "线",
400
+ "author": "阿广"
401
+ },
402
+ {
403
+ "id": 50,
404
+ "title": "错误",
405
+ "name": "error-fill",
406
+ "category": "Fill",
407
+ "categoryCN": "填充",
408
+ "author": "阿广"
409
+ }
410
+ ]
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GroupProps } from 'antd/lib/input';
2
3
  import { TSize } from '../Input';
3
4
  export interface IGroupProps extends Omit<GroupProps, 'size'> {
@@ -8,9 +9,10 @@ export interface IGroupProps extends Omit<GroupProps, 'size'> {
8
9
  compact?: boolean;
9
10
  /**
10
11
  * @description Input.Group 中所有的 Input 的大小,可选 large default small
11
- * @type 'mini'|'small' | 'default' | 'large';
12
+ * @type 'mini'|'small' | 'middle' | 'large';
12
13
  * @default default
13
14
  */
14
15
  size?: TSize;
16
+ className?: string;
15
17
  }
16
18
  export default function Group(props: IGroupProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- var _excluded = ["size"];
1
+ var _excluded = ["size", "className"];
2
2
 
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
 
@@ -6,23 +6,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
6
6
 
7
7
  import React from 'react';
8
8
  import AntdInput from 'antd/lib/input';
9
+ import { getSizeType } from '../Input';
9
10
  import classnames from 'classnames';
10
11
  var AntdGroup = AntdInput.Group;
11
12
  export default function Group(props) {
12
13
  var _props$size = props.size,
13
- size = _props$size === void 0 ? 'default' : _props$size,
14
+ size = _props$size === void 0 ? 'middle' : _props$size,
15
+ _props$className = props.className,
16
+ className = _props$className === void 0 ? '' : _props$className,
14
17
  rest = _objectWithoutProperties(props, _excluded);
15
18
 
16
- var getClassName = function getClassName(groupSize) {
17
- return classnames('ald-input-group', {
18
- 'ald-input-group-large': groupSize === 'large',
19
- 'ald-input-group-small': groupSize === 'small',
20
- 'ald-input-group-mini': groupSize === 'mini',
21
- 'ald-input-group-middle': !['mini', 'small', 'large'].includes(groupSize)
22
- });
23
- };
24
-
25
19
  return /*#__PURE__*/React.createElement(AntdGroup, Object.assign({
26
- className: getClassName(size)
20
+ className: classnames("ald-input-group-".concat(getSizeType(size)), className)
27
21
  }, rest));
28
22
  }