@aloudata/aloudata-design 0.3.2 → 0.3.5

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 (205) hide show
  1. package/es/Breadcrumb/index.d.ts +1 -0
  2. package/es/Button/index.js +3 -2
  3. package/es/Button/style/index.less +135 -126
  4. package/es/Button/style/variables.less +53 -53
  5. package/es/Checkbox/index.d.ts +1 -0
  6. package/es/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
  7. package/es/ConfigProvider/defaultRenderEmpty.js +37 -0
  8. package/es/ConfigProvider/sizeContext.d.ts +9 -0
  9. package/es/ConfigProvider/sizeContext.js +12 -0
  10. package/es/Dropdown/Button.js +3 -2
  11. package/es/Empty/image/Authority.d.ts +1 -0
  12. package/es/Empty/image/Dataspace.d.ts +1 -0
  13. package/es/Empty/image/Search.d.ts +1 -0
  14. package/es/Empty/image/Simple.d.ts +1 -0
  15. package/es/Empty/image/Worksheet.d.ts +1 -0
  16. package/es/Empty/image/empty.d.ts +1 -0
  17. package/es/Icon/icons.json +418 -0
  18. package/es/Input/components/Group/index.d.ts +3 -1
  19. package/es/Input/components/Group/index.js +6 -12
  20. package/es/Input/components/Input/index.d.ts +3 -2
  21. package/es/Input/components/Input/index.js +11 -23
  22. package/es/Input/components/Password/index.js +11 -16
  23. package/es/Input/components/TextArea/index.d.ts +8 -1
  24. package/es/Input/components/TextArea/index.js +8 -1
  25. package/es/Input/style/index.less +180 -102
  26. package/es/InputNumber/index.d.ts +1 -0
  27. package/es/InputNumber/style/index.less +69 -69
  28. package/es/Menu/Divider.d.ts +1 -0
  29. package/es/Modal/index.js +4 -7
  30. package/es/Modal/style/index.less +48 -45
  31. package/es/Navigator/components/Header/index.d.ts +1 -0
  32. package/es/Navigator/components/Menu/index.d.ts +1 -0
  33. package/es/PageHeader/index.d.ts +3 -0
  34. package/es/PageHeader/index.js +3 -0
  35. package/es/PageHeader/style/index.d.ts +2 -0
  36. package/es/PageHeader/style/index.js +2 -0
  37. package/es/PageHeader/style/index.less +1 -0
  38. package/es/Popover/index.d.ts +1 -0
  39. package/es/Radio/components/Group/index.d.ts +6 -0
  40. package/es/Radio/components/Group/index.js +74 -0
  41. package/es/Radio/components/Radio/index.d.ts +3 -0
  42. package/es/Radio/components/Radio/index.js +95 -0
  43. package/es/Radio/index.d.ts +9 -2
  44. package/es/Radio/index.js +5 -3
  45. package/es/Radio/interface/radio.d.ts +24 -0
  46. package/es/Radio/interface/radio.js +1 -0
  47. package/es/Radio/interface/radioGroup.d.ts +42 -0
  48. package/es/Radio/interface/radioGroup.js +1 -0
  49. package/es/Radio/style/index.less +348 -0
  50. package/es/Select/index.js +1 -1
  51. package/es/Select/rc-select/OptionList.js +3 -2
  52. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  53. package/es/Select/style/index.less +50 -49
  54. package/es/Select/style/variables.less +45 -45
  55. package/es/Select/utils/iconUtil.d.ts +2 -2
  56. package/es/Select/utils/iconUtil.js +6 -4
  57. package/es/Steps/components/ProcessIcon/index.d.ts +6 -0
  58. package/es/Steps/components/ProcessIcon/index.js +8 -0
  59. package/es/Steps/components/Step/index.d.ts +20 -0
  60. package/es/Steps/components/Step/index.js +45 -0
  61. package/es/Steps/index.d.ts +36 -2
  62. package/es/Steps/index.js +30 -1
  63. package/es/Steps/matchMedia.mock.d.ts +1 -0
  64. package/es/Steps/matchMedia.mock.js +17 -0
  65. package/es/Steps/style/index.less +251 -0
  66. package/es/Switch/index.d.ts +46 -2
  67. package/es/Switch/index.js +71 -1
  68. package/es/Switch/style/index.less +129 -0
  69. package/es/Table/Table.d.ts +2 -1
  70. package/es/Table/Table.js +223 -330
  71. package/es/Table/components/Empty/index.d.ts +3 -0
  72. package/es/Table/components/Empty/index.js +16 -0
  73. package/es/Table/components/Loading/index.d.ts +3 -0
  74. package/es/Table/components/Loading/index.js +18 -0
  75. package/es/Table/components/TableBodyRowList/index.d.ts +13 -0
  76. package/es/Table/components/TableBodyRowList/index.js +91 -0
  77. package/es/Table/components/TableHead/index.d.ts +23 -0
  78. package/es/Table/components/TableHead/index.js +262 -0
  79. package/es/Table/constant.d.ts +1 -0
  80. package/es/Table/constant.js +1 -0
  81. package/es/Table/hooks/useFrame.d.ts +7 -0
  82. package/es/Table/hooks/useFrame.js +90 -0
  83. package/es/Table/hooks/useTableColumn.d.ts +28 -0
  84. package/es/Table/hooks/useTableColumn.js +53 -0
  85. package/es/Table/interface.d.ts +3 -2
  86. package/es/Table/style/index.less +41 -37
  87. package/es/Table/style/index.less.d.ts +126 -0
  88. package/es/Table/style/variable.less +10 -0
  89. package/es/Table/style/variable.less.d.ts +7 -0
  90. package/es/Table/utils.d.ts +15 -0
  91. package/es/Table/utils.js +131 -0
  92. package/es/Tabs/index.js +3 -2
  93. package/es/Tabs/style/index.less +25 -25
  94. package/es/_utils/hooks/useId.d.ts +4 -0
  95. package/es/_utils/hooks/useId.js +23 -0
  96. package/es/index.d.ts +7 -5
  97. package/es/index.js +2 -1
  98. package/es/locale-provider/index.d.ts +5 -1
  99. package/es/style/index.d.ts +0 -1
  100. package/es/style/index.js +0 -1
  101. package/es/style/index.less +2 -2
  102. package/es/style/themes/default/index.less +30 -30
  103. package/lib/Breadcrumb/index.d.ts +1 -0
  104. package/lib/Button/index.js +5 -3
  105. package/lib/Button/style/index.less +135 -126
  106. package/lib/Button/style/variables.less +53 -53
  107. package/lib/Checkbox/index.d.ts +1 -0
  108. package/lib/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
  109. package/lib/ConfigProvider/defaultRenderEmpty.js +55 -0
  110. package/lib/ConfigProvider/sizeContext.d.ts +9 -0
  111. package/lib/ConfigProvider/sizeContext.js +30 -0
  112. package/lib/Dropdown/Button.js +7 -5
  113. package/lib/Empty/image/Authority.d.ts +1 -0
  114. package/lib/Empty/image/Dataspace.d.ts +1 -0
  115. package/lib/Empty/image/Search.d.ts +1 -0
  116. package/lib/Empty/image/Simple.d.ts +1 -0
  117. package/lib/Empty/image/Worksheet.d.ts +1 -0
  118. package/lib/Empty/image/empty.d.ts +1 -0
  119. package/lib/Icon/icons.json +418 -0
  120. package/lib/Input/components/Group/index.d.ts +3 -1
  121. package/lib/Input/components/Group/index.js +7 -12
  122. package/lib/Input/components/Input/index.d.ts +3 -2
  123. package/lib/Input/components/Input/index.js +13 -23
  124. package/lib/Input/components/Password/index.js +13 -17
  125. package/lib/Input/components/TextArea/index.d.ts +8 -1
  126. package/lib/Input/components/TextArea/index.js +10 -1
  127. package/lib/Input/style/index.less +180 -102
  128. package/lib/InputNumber/index.d.ts +1 -0
  129. package/lib/InputNumber/style/index.less +69 -69
  130. package/lib/Menu/Divider.d.ts +1 -0
  131. package/lib/Modal/index.js +8 -10
  132. package/lib/Modal/style/index.less +48 -45
  133. package/lib/Navigator/components/Header/index.d.ts +1 -0
  134. package/lib/Navigator/components/Menu/index.d.ts +1 -0
  135. package/lib/PageHeader/index.d.ts +3 -0
  136. package/lib/PageHeader/index.js +15 -0
  137. package/lib/PageHeader/style/index.d.ts +2 -0
  138. package/lib/PageHeader/style/index.js +5 -0
  139. package/lib/PageHeader/style/index.less +1 -0
  140. package/lib/Popover/index.d.ts +1 -0
  141. package/lib/Radio/components/Group/index.d.ts +6 -0
  142. package/lib/Radio/components/Group/index.js +95 -0
  143. package/lib/Radio/components/Radio/index.d.ts +3 -0
  144. package/lib/Radio/components/Radio/index.js +115 -0
  145. package/lib/Radio/index.d.ts +9 -2
  146. package/lib/Radio/index.js +5 -3
  147. package/lib/Radio/interface/radio.d.ts +24 -0
  148. package/lib/Radio/interface/radio.js +5 -0
  149. package/lib/Radio/interface/radioGroup.d.ts +42 -0
  150. package/lib/Radio/interface/radioGroup.js +5 -0
  151. package/lib/Radio/style/index.less +348 -0
  152. package/lib/Select/index.js +1 -1
  153. package/lib/Select/rc-select/OptionList.js +7 -5
  154. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  155. package/lib/Select/style/index.less +50 -49
  156. package/lib/Select/style/variables.less +45 -45
  157. package/lib/Select/utils/iconUtil.d.ts +2 -2
  158. package/lib/Select/utils/iconUtil.js +10 -8
  159. package/lib/Steps/components/ProcessIcon/index.d.ts +6 -0
  160. package/lib/Steps/components/ProcessIcon/index.js +19 -0
  161. package/lib/Steps/components/Step/index.d.ts +20 -0
  162. package/lib/Steps/components/Step/index.js +61 -0
  163. package/lib/Steps/index.d.ts +36 -2
  164. package/lib/Steps/index.js +34 -1
  165. package/lib/Steps/matchMedia.mock.d.ts +1 -0
  166. package/lib/Steps/matchMedia.mock.js +17 -0
  167. package/lib/Steps/style/index.less +251 -0
  168. package/lib/Switch/index.d.ts +46 -2
  169. package/lib/Switch/index.js +78 -1
  170. package/lib/Switch/style/index.less +129 -0
  171. package/lib/Table/Table.d.ts +2 -1
  172. package/lib/Table/Table.js +229 -332
  173. package/lib/Table/components/Empty/index.d.ts +3 -0
  174. package/lib/Table/components/Empty/index.js +28 -0
  175. package/lib/Table/components/Loading/index.d.ts +3 -0
  176. package/lib/Table/components/Loading/index.js +31 -0
  177. package/lib/Table/components/TableBodyRowList/index.d.ts +13 -0
  178. package/lib/Table/components/TableBodyRowList/index.js +110 -0
  179. package/lib/Table/components/TableHead/index.d.ts +23 -0
  180. package/lib/Table/components/TableHead/index.js +286 -0
  181. package/lib/Table/constant.d.ts +1 -0
  182. package/lib/Table/constant.js +1 -0
  183. package/lib/Table/hooks/useFrame.d.ts +7 -0
  184. package/lib/Table/hooks/useFrame.js +98 -0
  185. package/lib/Table/hooks/useTableColumn.d.ts +28 -0
  186. package/lib/Table/hooks/useTableColumn.js +66 -0
  187. package/lib/Table/interface.d.ts +3 -2
  188. package/lib/Table/style/index.less +41 -37
  189. package/lib/Table/style/index.less.d.ts +126 -0
  190. package/lib/Table/style/variable.less +10 -0
  191. package/lib/Table/style/variable.less.d.ts +7 -0
  192. package/lib/Table/utils.d.ts +15 -0
  193. package/lib/Table/utils.js +147 -0
  194. package/lib/Tabs/index.js +5 -3
  195. package/lib/Tabs/style/index.less +25 -25
  196. package/lib/_utils/hooks/useId.d.ts +4 -0
  197. package/lib/_utils/hooks/useId.js +36 -0
  198. package/lib/index.d.ts +7 -5
  199. package/lib/index.js +8 -0
  200. package/lib/locale-provider/index.d.ts +5 -1
  201. package/lib/style/index.d.ts +0 -1
  202. package/lib/style/index.js +0 -2
  203. package/lib/style/index.less +2 -2
  204. package/lib/style/themes/default/index.less +30 -30
  205. package/package.json +2 -1
@@ -1,67 +1,67 @@
1
1
  @ald-prefix: ald;
2
2
  @ald-iconfont-css-prefix: aldicon;
3
3
 
4
- @Button-padding: 0 12px;
4
+ @button-padding: 0 12px;
5
5
 
6
6
  /** size控制 **/
7
- @Button-height-large: 36px;
8
- @Button-text-size-large: 16px;
9
- @Button-borderRadius-large: 8px;
10
- @Button-border-padding-large: 0 11px;
11
- @Button-leftIcon-marginRight-large: 8px;
7
+ @button-height-large: 36px;
8
+ @button-text-size-large: 16px;
9
+ @button-border-radius-large: 8px;
10
+ @button-border-padding-large: 0 11px;
11
+ @button-left-icon-margin-right-large: 8px;
12
12
 
13
- @Button-height-middle: 32px;
14
- @Button-text-size-middle: 14px;
15
- @Button-borderRadius-middle: 6px;
16
- @Button-border-padding-middle: 0 11px;
17
- @Button-leftIcon-marginRight-middle: 8px;
13
+ @button-height-middle: 32px;
14
+ @button-text-size-middle: 14px;
15
+ @button-border-radius-middle: 6px;
16
+ @button-border-padding-middle: 0 11px;
17
+ @button-left-icon-margin-right-middle: 8px;
18
18
 
19
- @Button-height-small: 28px;
20
- @Button-text-size-small: 12px;
21
- @Button-borderRadius-small: 4px;
22
- @Button-border-padding-small: 0 7px;
23
- @Button-leftIcon-marginRight-small: 4px;
19
+ @button-height-small: 28px;
20
+ @button-text-size-small: 12px;
21
+ @button-border-radius-small: 4px;
22
+ @button-border-padding-small: 0 7px;
23
+ @button-left-icon-margin-right-small: 4px;
24
24
 
25
- @Button-height-mini: 24px;
26
- @Button-text-size-mini: 12px;
27
- @Button-borderRadius-mini: 4px;
28
- @Button-border-padding-mini: 0 7px;
29
- @Button-leftIcon-marginRight-mini: 4px;
25
+ @button-height-mini: 24px;
26
+ @button-text-size-mini: 12px;
27
+ @button-border-radius-mini: 4px;
28
+ @button-border-padding-mini: 0 7px;
29
+ @button-left-icon-margin-right-mini: 4px;
30
30
 
31
31
  /**** type控制 ****/
32
- @Button-primary-bgColor: @B60;
33
- @Button-primary-bgColor-active: @B50;
34
- @Button-primary-bgColor-disable: @B90;
35
- @Button-primary-color: @ND0;
36
- @Button-primary-color-active: @ND0;
37
- @Button-primary-color-disable: @ND0;
32
+ @button-primary-bg-color: @B60;
33
+ @button-primary-bg-color-active: @B50;
34
+ @button-primary-bg-color-disable: @B90;
35
+ @button-primary-color: @ND0;
36
+ @button-primary-color-active: @ND0;
37
+ @button-primary-color-disable: @ND0;
38
38
 
39
- @Button-dangerous-bgColor: @SC60;
40
- @Button-dangerous-bgColor-active: @SC50;
41
- @Button-dangerous-bgColor-disable: @SC90;
42
- @Button-dangerous-color: @ND0;
43
- @Button-dangerous-color-active: @ND0;
44
- @Button-dangerous-color-disable: @ND0;
39
+ @button-dangerous-bg-color: @SC60;
40
+ @button-dangerous-bg-color-active: @SC50;
41
+ @button-dangerous-bg-color-disable: @SC90;
42
+ @button-dangerous-color: @ND0;
43
+ @button-dangerous-color-active: @ND0;
44
+ @button-dangerous-color-disable: @ND0;
45
45
 
46
- @Button-secondary-bgColor: @BG97;
47
- @Button-secondary-bgColor-active: @BG95;
48
- @Button-secondary-bgColor-disable: @BG97;
49
- @Button-secondary-color: @NL30;
50
- @Button-secondary-color-active: @B60;
51
- @Button-secondary-color-disable: @NL80;
52
- @Button-secondary-borderColor: @NL90;
53
- @Button-secondary-borderColor-active: @B60;
46
+ @button-secondary-bg-color: @BG97;
47
+ @button-secondary-bg-color-active: @BG95;
48
+ @button-secondary-bg-color-disable: @BG97;
49
+ @button-secondary-color: @NL30;
50
+ @button-secondary-color-active: @B60;
51
+ @button-secondary-color-disable: @NL80;
52
+ @button-secondary-border-color: @NL90;
53
+ @button-secondary-border-color-active: @B60;
54
54
 
55
- @Button-text-bgColor: transparent;
56
- @Button-text-bgColor-active: @NL97;
57
- @Button-text-bgColor-disable: @BG100;
58
- @Button-text-color: @NL30;
59
- @Button-text-color-active: @B60;
60
- @Button-text-color-disable: @NL80;
55
+ @button-text-bg-color: transparent;
56
+ @button-text-bg-color-active: @NL97;
57
+ @button-text-bg-color-disable: transparent;
58
+ @button-text-color: @NL30;
59
+ @button-text-color-active: @B60;
60
+ @button-text-color-disable: @NL80;
61
61
 
62
- @Button-link-bgColor: @BG100;
63
- @Button-link-bgColor-active: @BG100;
64
- @Button-link-bgColor-disable: @BG100;
65
- @Button-link-color: @B60;
66
- @Button-link-color-active: @B50;
67
- @Button-link-color-disable: @B90;
62
+ @button-link-bg-color: transparent;
63
+ @button-link-bg-color-active: transparent;
64
+ @button-link-bg-color-disable: transparent;
65
+ @button-link-color: @B60;
66
+ @button-link-color-active: @B50;
67
+ @button-link-color-disable: @B90;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CheckboxProps } from 'antd';
2
3
  import { CheckboxGroupProps } from 'antd/lib/checkbox';
3
4
  export type { CheckboxValueType, CheckboxOptionType } from 'antd/es/checkbox/Group';
@@ -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,55 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var React = _interopRequireWildcard(require("react"));
11
+
12
+ var _ = require(".");
13
+
14
+ var _Empty = _interopRequireDefault(require("../Empty"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+
22
+ var defaultRenderEmpty = function defaultRenderEmpty(componentName) {
23
+ return /*#__PURE__*/React.createElement(_.ConfigConsumer, null, function (_ref) {
24
+ var getPrefixCls = _ref.getPrefixCls;
25
+ var prefix = getPrefixCls('empty');
26
+
27
+ switch (componentName) {
28
+ case 'Table':
29
+ case 'List':
30
+ return /*#__PURE__*/React.createElement(_Empty.default, {
31
+ image: _Empty.default.PRESENTED_IMAGE_SIMPLE
32
+ });
33
+
34
+ case 'Select':
35
+ case 'TreeSelect':
36
+ case 'Cascader':
37
+ case 'Transfer':
38
+ case 'Mentions':
39
+ return /*#__PURE__*/React.createElement(_Empty.default, {
40
+ image: _Empty.default.PRESENTED_IMAGE_SIMPLE,
41
+ title: "\u65E0\u6570\u636E",
42
+ className: "".concat(prefix, "-small")
43
+ });
44
+
45
+ /* istanbul ignore next */
46
+
47
+ default:
48
+ // Should never hit if we take all the component into consider.
49
+ return /*#__PURE__*/React.createElement(_Empty.default, null);
50
+ }
51
+ });
52
+ };
53
+
54
+ var _default = defaultRenderEmpty;
55
+ exports.default = _default;
@@ -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,30 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = exports.SizeContextProvider = void 0;
9
+
10
+ var React = _interopRequireWildcard(require("react"));
11
+
12
+ 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); }
13
+
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+
16
+ var SizeContext = /*#__PURE__*/React.createContext(undefined);
17
+
18
+ var SizeContextProvider = function SizeContextProvider(_ref) {
19
+ var children = _ref.children,
20
+ size = _ref.size;
21
+ return /*#__PURE__*/React.createElement(SizeContext.Consumer, null, function (originSize) {
22
+ return /*#__PURE__*/React.createElement(SizeContext.Provider, {
23
+ value: size || originSize
24
+ }, children);
25
+ });
26
+ };
27
+
28
+ exports.SizeContextProvider = SizeContextProvider;
29
+ var _default = SizeContext;
30
+ exports.default = _default;
@@ -5,15 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = DropdownButton;
7
7
 
8
+ require("@aloudata/icons-react/styles/index.less");
9
+
10
+ var _ArrowsDownLine2 = _interopRequireDefault(require("@aloudata/icons-react/es/icons/ArrowsDownLine"));
11
+
8
12
  var _react = _interopRequireDefault(require("react"));
9
13
 
10
14
  var _Button = _interopRequireDefault(require("../Button"));
11
15
 
12
16
  require("../Button/style");
13
17
 
14
- var _index = _interopRequireDefault(require("./index"));
15
-
16
- var _ArrowsDownLine = _interopRequireDefault(require("../Icon/icons/ArrowsDownLine"));
18
+ var _index2 = _interopRequireDefault(require("./index"));
17
19
 
18
20
  var _excluded = ["children", "overlay", "placement", "trigger", "visible", "disabled", "onVisibleChange"];
19
21
 
@@ -33,14 +35,14 @@ function DropdownButton(props) {
33
35
  onVisibleChange = props.onVisibleChange,
34
36
  buttonProps = _objectWithoutProperties(props, _excluded);
35
37
 
36
- return /*#__PURE__*/_react.default.createElement(_index.default, {
38
+ return /*#__PURE__*/_react.default.createElement(_index2.default, {
37
39
  overlay: overlay,
38
40
  placement: placement,
39
41
  trigger: trigger,
40
42
  visible: visible,
41
43
  disabled: disabled,
42
44
  onVisibleChange: onVisibleChange
43
- }, /*#__PURE__*/_react.default.createElement(_Button.default, Object.assign({}, buttonProps), children, /*#__PURE__*/_react.default.createElement(_ArrowsDownLine.default, {
45
+ }, /*#__PURE__*/_react.default.createElement(_Button.default, Object.assign({}, buttonProps), children, /*#__PURE__*/_react.default.createElement(_ArrowsDownLine2.default, {
44
46
  fill: "currentColor"
45
47
  })));
46
48
  }
@@ -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;