@aloudata/aloudata-design 0.3.0 → 0.3.3

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 (214) hide show
  1. package/README.md +15 -5
  2. package/es/Breadcrumb/index.d.ts +0 -1
  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/{Message → Card}/style/index.d.ts +0 -0
  9. package/es/{Message → Card}/style/index.js +0 -0
  10. package/es/{Message → Card}/style/index.less +0 -0
  11. package/es/Checkbox/index.d.ts +0 -1
  12. package/es/Drawer/index.d.ts +4 -0
  13. package/es/Drawer/index.js +3 -0
  14. package/es/{Notification → Drawer}/style/index.d.ts +0 -0
  15. package/es/{Notification → Drawer}/style/index.js +0 -0
  16. package/es/{Notification → Drawer}/style/index.less +0 -0
  17. package/es/Dropdown/Button.js +4 -3
  18. package/es/Empty/image/Authority.d.ts +0 -1
  19. package/es/Empty/image/Dataspace.d.ts +0 -1
  20. package/es/Empty/image/Search.d.ts +0 -1
  21. package/es/Empty/image/Simple.d.ts +0 -1
  22. package/es/Empty/image/Worksheet.d.ts +0 -1
  23. package/es/Empty/image/empty.d.ts +0 -1
  24. package/es/Icon/icons/CheckLine.d.ts +13 -0
  25. package/es/Icon/icons/CheckLine.js +73 -0
  26. package/es/Icon/icons.json +410 -0
  27. package/es/Input/components/Group/index.d.ts +2 -2
  28. package/es/Input/components/Group/index.js +6 -12
  29. package/es/Input/components/Input/index.d.ts +3 -2
  30. package/es/Input/components/Input/index.js +11 -22
  31. package/es/Input/components/Password/index.js +11 -16
  32. package/es/Input/style/index.less +102 -102
  33. package/es/InputNumber/index.d.ts +0 -1
  34. package/es/InputNumber/style/index.less +69 -69
  35. package/es/Menu/Divider.d.ts +0 -1
  36. package/es/Modal/index.js +20 -16
  37. package/es/Modal/locale.d.ts +7 -0
  38. package/es/Modal/locale.js +20 -0
  39. package/es/Modal/style/index.less +45 -45
  40. package/es/Navigator/components/Header/index.d.ts +0 -1
  41. package/es/Navigator/components/Menu/index.d.ts +0 -1
  42. package/es/Navigator/components/MenuItem/index.d.ts +1 -1
  43. package/es/Navigator/index.d.ts +1 -1
  44. package/es/PageHeader/index.d.ts +3 -0
  45. package/es/PageHeader/index.js +3 -0
  46. package/{lib/Message → es/PageHeader}/style/index.d.ts +0 -0
  47. package/es/PageHeader/style/index.js +2 -0
  48. package/{lib/Message → es/PageHeader}/style/index.less +0 -0
  49. package/es/Popover/index.d.ts +0 -1
  50. package/es/Select/rc-select/OptionList.js +4 -4
  51. package/es/Select/rc-select/Selector/MultipleSelector.js +11 -1
  52. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  53. package/es/Select/style/index.less +69 -45
  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 +9 -5
  57. package/es/Steps/components/ProcessIcon/index.d.ts +5 -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.js +3 -3
  70. package/es/Table/style/index.less +1 -1
  71. package/es/Tabs/index.js +7 -9
  72. package/es/Tabs/style/index.less +57 -25
  73. package/es/index.d.ts +13 -7
  74. package/es/index.js +6 -3
  75. package/es/locale/default.d.ts +2 -0
  76. package/es/locale/default.js +2 -0
  77. package/es/locale/en_US.d.ts +3 -0
  78. package/es/locale/en_US.js +132 -0
  79. package/es/locale/zh_CN.d.ts +3 -2
  80. package/es/locale/zh_CN.js +131 -2
  81. package/es/locale-provider/LocaleReceiver.d.ts +4 -0
  82. package/es/locale-provider/LocaleReceiver.js +3 -0
  83. package/es/locale-provider/context.d.ts +7 -0
  84. package/es/locale-provider/context.js +3 -0
  85. package/es/locale-provider/default.d.ts +2 -0
  86. package/es/locale-provider/default.js +2 -0
  87. package/es/locale-provider/en_US.d.ts +2 -0
  88. package/es/locale-provider/en_US.js +2 -0
  89. package/es/locale-provider/index.d.ts +61 -0
  90. package/es/locale-provider/index.js +102 -0
  91. package/es/locale-provider/style/index.d.ts +1 -0
  92. package/es/locale-provider/style/index.js +1 -0
  93. package/es/locale-provider/style/index.less +2 -0
  94. package/es/locale-provider/zh_CN.d.ts +2 -0
  95. package/es/locale-provider/zh_CN.js +2 -0
  96. package/es/{Message → message}/index.d.ts +0 -0
  97. package/es/{Message → message}/index.js +0 -0
  98. package/{lib/Notification → es/message}/style/index.d.ts +0 -0
  99. package/es/message/style/index.js +2 -0
  100. package/{lib/Notification → es/message}/style/index.less +0 -0
  101. package/es/{Notification → notification}/index.d.ts +0 -0
  102. package/es/{Notification → notification}/index.js +0 -0
  103. package/es/notification/style/index.d.ts +2 -0
  104. package/es/notification/style/index.js +2 -0
  105. package/es/notification/style/index.less +1 -0
  106. package/es/style/index.less +1 -1
  107. package/es/style/themes/default/index.less +30 -30
  108. package/lib/Breadcrumb/index.d.ts +0 -1
  109. package/lib/Button/index.js +5 -3
  110. package/lib/Button/style/index.less +135 -126
  111. package/lib/Button/style/variables.less +53 -53
  112. package/lib/Card/index.d.ts +3 -0
  113. package/lib/Card/index.js +15 -0
  114. package/lib/Card/style/index.d.ts +2 -0
  115. package/lib/{Message → Card}/style/index.js +0 -0
  116. package/lib/Card/style/index.less +1 -0
  117. package/lib/Checkbox/index.d.ts +0 -1
  118. package/lib/Drawer/index.d.ts +4 -0
  119. package/lib/Drawer/index.js +15 -0
  120. package/lib/Drawer/style/index.d.ts +2 -0
  121. package/lib/{Notification → Drawer}/style/index.js +0 -0
  122. package/lib/Drawer/style/index.less +1 -0
  123. package/lib/Dropdown/Button.js +8 -6
  124. package/lib/Empty/image/Authority.d.ts +0 -1
  125. package/lib/Empty/image/Dataspace.d.ts +0 -1
  126. package/lib/Empty/image/Search.d.ts +0 -1
  127. package/lib/Empty/image/Simple.d.ts +0 -1
  128. package/lib/Empty/image/Worksheet.d.ts +0 -1
  129. package/lib/Empty/image/empty.d.ts +0 -1
  130. package/lib/Icon/icons/CheckLine.d.ts +13 -0
  131. package/lib/Icon/icons/CheckLine.js +90 -0
  132. package/lib/Icon/icons.json +410 -0
  133. package/lib/Input/components/Group/index.d.ts +2 -2
  134. package/lib/Input/components/Group/index.js +7 -12
  135. package/lib/Input/components/Input/index.d.ts +3 -2
  136. package/lib/Input/components/Input/index.js +13 -22
  137. package/lib/Input/components/Password/index.js +13 -17
  138. package/lib/Input/style/index.less +102 -102
  139. package/lib/InputNumber/index.d.ts +0 -1
  140. package/lib/InputNumber/style/index.less +69 -69
  141. package/lib/Menu/Divider.d.ts +0 -1
  142. package/lib/Modal/index.js +25 -18
  143. package/lib/Modal/locale.d.ts +7 -0
  144. package/lib/Modal/locale.js +31 -0
  145. package/lib/Modal/style/index.less +45 -45
  146. package/lib/Navigator/components/Header/index.d.ts +0 -1
  147. package/lib/Navigator/components/Menu/index.d.ts +0 -1
  148. package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
  149. package/lib/Navigator/index.d.ts +1 -1
  150. package/lib/PageHeader/index.d.ts +3 -0
  151. package/lib/PageHeader/index.js +15 -0
  152. package/lib/PageHeader/style/index.d.ts +2 -0
  153. package/lib/PageHeader/style/index.js +5 -0
  154. package/lib/PageHeader/style/index.less +1 -0
  155. package/lib/Popover/index.d.ts +0 -1
  156. package/lib/Select/rc-select/OptionList.js +8 -7
  157. package/lib/Select/rc-select/Selector/MultipleSelector.js +11 -1
  158. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  159. package/lib/Select/style/index.less +69 -45
  160. package/lib/Select/style/variables.less +45 -45
  161. package/lib/Select/utils/iconUtil.d.ts +2 -2
  162. package/lib/Select/utils/iconUtil.js +13 -7
  163. package/lib/Steps/components/ProcessIcon/index.d.ts +5 -0
  164. package/lib/Steps/components/ProcessIcon/index.js +19 -0
  165. package/lib/Steps/components/Step/index.d.ts +20 -0
  166. package/lib/Steps/components/Step/index.js +61 -0
  167. package/lib/Steps/index.d.ts +36 -2
  168. package/lib/Steps/index.js +34 -1
  169. package/lib/Steps/matchMedia.mock.d.ts +1 -0
  170. package/lib/Steps/matchMedia.mock.js +17 -0
  171. package/lib/Steps/style/index.less +251 -0
  172. package/lib/Switch/index.d.ts +46 -2
  173. package/lib/Switch/index.js +78 -1
  174. package/lib/Switch/style/index.less +129 -0
  175. package/lib/Table/Table.js +3 -3
  176. package/lib/Table/style/index.less +1 -1
  177. package/lib/Tabs/index.js +9 -11
  178. package/lib/Tabs/style/index.less +57 -25
  179. package/lib/index.d.ts +13 -7
  180. package/lib/index.js +34 -10
  181. package/lib/locale/default.d.ts +2 -0
  182. package/lib/locale/default.js +13 -0
  183. package/lib/locale/en_US.d.ts +3 -0
  184. package/lib/locale/en_US.js +146 -0
  185. package/lib/locale/zh_CN.d.ts +3 -2
  186. package/lib/locale/zh_CN.js +134 -2
  187. package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
  188. package/lib/locale-provider/LocaleReceiver.js +23 -0
  189. package/lib/locale-provider/context.d.ts +7 -0
  190. package/lib/locale-provider/context.js +12 -0
  191. package/lib/locale-provider/default.d.ts +2 -0
  192. package/lib/locale-provider/default.js +13 -0
  193. package/lib/locale-provider/en_US.d.ts +2 -0
  194. package/lib/locale-provider/en_US.js +13 -0
  195. package/lib/locale-provider/index.d.ts +61 -0
  196. package/lib/locale-provider/index.js +116 -0
  197. package/lib/locale-provider/style/index.d.ts +1 -0
  198. package/lib/locale-provider/style/index.js +3 -0
  199. package/lib/locale-provider/style/index.less +2 -0
  200. package/lib/locale-provider/zh_CN.d.ts +2 -0
  201. package/lib/locale-provider/zh_CN.js +13 -0
  202. package/lib/{Message → message}/index.d.ts +0 -0
  203. package/lib/{Message → message}/index.js +0 -0
  204. package/lib/message/style/index.d.ts +2 -0
  205. package/lib/message/style/index.js +5 -0
  206. package/lib/message/style/index.less +1 -0
  207. package/lib/{Notification → notification}/index.d.ts +0 -0
  208. package/lib/{Notification → notification}/index.js +0 -0
  209. package/lib/notification/style/index.d.ts +2 -0
  210. package/lib/notification/style/index.js +5 -0
  211. package/lib/notification/style/index.less +1 -0
  212. package/lib/style/index.less +1 -1
  213. package/lib/style/themes/default/index.less +30 -30
  214. package/package.json +11 -8
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { Card } from 'antd';
2
+ export { CardProps } from 'antd/lib/card';
3
+ export default Card;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/card/style");
9
+
10
+ var _card = _interopRequireDefault(require("antd/es/card"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _card.default;
15
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
File without changes
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxProps } from 'antd';
3
2
  import { CheckboxGroupProps } from 'antd/lib/checkbox';
4
3
  export type { CheckboxValueType, CheckboxOptionType } from 'antd/es/checkbox/Group';
@@ -0,0 +1,4 @@
1
+ import { Drawer } from 'antd';
2
+ import { DrawerProps } from 'antd/lib/drawer';
3
+ export { DrawerProps };
4
+ export default Drawer;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/drawer/style");
9
+
10
+ var _drawer = _interopRequireDefault(require("antd/es/drawer"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _drawer.default;
15
+ exports.default = _default;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
File without changes
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -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 _Icon = _interopRequireDefault(require("../Icon"));
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(_Icon.default, {
44
- type: "arrows-down-line"
45
+ }, /*#__PURE__*/_react.default.createElement(_Button.default, Object.assign({}, buttonProps), children, /*#__PURE__*/_react.default.createElement(_ArrowsDownLine2.default, {
46
+ fill: "currentColor"
45
47
  })));
46
48
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  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,90 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = CheckLine;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _style = _interopRequireDefault(require("./style.css"));
13
+
14
+ var _excluded = ["size", "width", "height", "spin", "rtl", "color", "fill", "stroke", "className"];
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
+
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+
22
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
+
24
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
+
26
+ function CheckLine(props) {
27
+ var root = (0, _react.useRef)(null);
28
+
29
+ var _props$size = props.size,
30
+ size = _props$size === void 0 ? '1em' : _props$size,
31
+ width = props.width,
32
+ height = props.height,
33
+ spin = props.spin,
34
+ rtl = props.rtl,
35
+ color = props.color,
36
+ fill = props.fill,
37
+ stroke = props.stroke,
38
+ className = props.className,
39
+ rest = _objectWithoutProperties(props, _excluded);
40
+
41
+ var _width = width || size;
42
+
43
+ var _height = height || size;
44
+
45
+ var _stroke = stroke || color;
46
+
47
+ var _fill = fill || color;
48
+
49
+ (0, _react.useEffect)(function () {
50
+ if (!_fill) {
51
+ var _root$current;
52
+
53
+ (_root$current = root.current) === null || _root$current === void 0 ? void 0 : _root$current.querySelectorAll('[data-follow-fill]').forEach(function (item) {
54
+ item.setAttribute('fill', item.getAttribute('data-follow-fill') || '');
55
+ });
56
+ }
57
+
58
+ if (!_stroke) {
59
+ var _root$current2;
60
+
61
+ (_root$current2 = root.current) === null || _root$current2 === void 0 ? void 0 : _root$current2.querySelectorAll('[data-follow-stroke]').forEach(function (item) {
62
+ item.setAttribute('stroke', item.getAttribute('data-follow-stroke') || '');
63
+ });
64
+ }
65
+ }, [stroke, color, fill]);
66
+ return /*#__PURE__*/_react.default.createElement("svg", Object.assign({
67
+ ref: root,
68
+ width: _width,
69
+ height: _height,
70
+ viewBox: "0 0 24 24",
71
+ preserveAspectRatio: "xMidYMid meet",
72
+ fill: "none",
73
+ role: "presentation",
74
+ xmlns: "http://www.w3.org/2000/svg",
75
+ className: "".concat(className || '', " ").concat(spin ? _style.default.spin : '', " ").concat(rtl ? _style.default.rtl : '').trim()
76
+ }, rest), /*#__PURE__*/_react.default.createElement("g", null, /*#__PURE__*/_react.default.createElement("g", {
77
+ clipPath: "url(#650c5__a)"
78
+ }, /*#__PURE__*/_react.default.createElement("path", {
79
+ "data-follow-fill": "#001A33",
80
+ fillRule: "evenodd",
81
+ clipRule: "evenodd",
82
+ 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",
83
+ fill: _fill
84
+ })), /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("clipPath", {
85
+ id: "650c5__a"
86
+ }, /*#__PURE__*/_react.default.createElement("path", {
87
+ d: "M0 0h24v24H0z",
88
+ fill: "#fff"
89
+ })))));
90
+ }