@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.
- package/README.md +15 -5
- package/es/Breadcrumb/index.d.ts +0 -1
- package/es/Button/index.js +3 -2
- package/es/Button/style/index.less +135 -126
- package/es/Button/style/variables.less +53 -53
- package/es/Card/index.d.ts +3 -0
- package/es/Card/index.js +3 -0
- package/es/{Message → Card}/style/index.d.ts +0 -0
- package/es/{Message → Card}/style/index.js +0 -0
- package/es/{Message → Card}/style/index.less +0 -0
- package/es/Checkbox/index.d.ts +0 -1
- package/es/Drawer/index.d.ts +4 -0
- package/es/Drawer/index.js +3 -0
- package/es/{Notification → Drawer}/style/index.d.ts +0 -0
- package/es/{Notification → Drawer}/style/index.js +0 -0
- package/es/{Notification → Drawer}/style/index.less +0 -0
- package/es/Dropdown/Button.js +4 -3
- package/es/Empty/image/Authority.d.ts +0 -1
- package/es/Empty/image/Dataspace.d.ts +0 -1
- package/es/Empty/image/Search.d.ts +0 -1
- package/es/Empty/image/Simple.d.ts +0 -1
- package/es/Empty/image/Worksheet.d.ts +0 -1
- package/es/Empty/image/empty.d.ts +0 -1
- package/es/Icon/icons/CheckLine.d.ts +13 -0
- package/es/Icon/icons/CheckLine.js +73 -0
- package/es/Icon/icons.json +410 -0
- package/es/Input/components/Group/index.d.ts +2 -2
- package/es/Input/components/Group/index.js +6 -12
- package/es/Input/components/Input/index.d.ts +3 -2
- package/es/Input/components/Input/index.js +11 -22
- package/es/Input/components/Password/index.js +11 -16
- package/es/Input/style/index.less +102 -102
- package/es/InputNumber/index.d.ts +0 -1
- package/es/InputNumber/style/index.less +69 -69
- package/es/Menu/Divider.d.ts +0 -1
- package/es/Modal/index.js +20 -16
- package/es/Modal/locale.d.ts +7 -0
- package/es/Modal/locale.js +20 -0
- package/es/Modal/style/index.less +45 -45
- package/es/Navigator/components/Header/index.d.ts +0 -1
- package/es/Navigator/components/Menu/index.d.ts +0 -1
- package/es/Navigator/components/MenuItem/index.d.ts +1 -1
- package/es/Navigator/index.d.ts +1 -1
- package/es/PageHeader/index.d.ts +3 -0
- package/es/PageHeader/index.js +3 -0
- package/{lib/Message → es/PageHeader}/style/index.d.ts +0 -0
- package/es/PageHeader/style/index.js +2 -0
- package/{lib/Message → es/PageHeader}/style/index.less +0 -0
- package/es/Popover/index.d.ts +0 -1
- package/es/Select/rc-select/OptionList.js +4 -4
- package/es/Select/rc-select/Selector/MultipleSelector.js +11 -1
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.less +69 -45
- package/es/Select/style/variables.less +45 -45
- package/es/Select/utils/iconUtil.d.ts +2 -2
- package/es/Select/utils/iconUtil.js +9 -5
- package/es/Steps/components/ProcessIcon/index.d.ts +5 -0
- package/es/Steps/components/ProcessIcon/index.js +8 -0
- package/es/Steps/components/Step/index.d.ts +20 -0
- package/es/Steps/components/Step/index.js +45 -0
- package/es/Steps/index.d.ts +36 -2
- package/es/Steps/index.js +30 -1
- package/es/Steps/matchMedia.mock.d.ts +1 -0
- package/es/Steps/matchMedia.mock.js +17 -0
- package/es/Steps/style/index.less +251 -0
- package/es/Switch/index.d.ts +46 -2
- package/es/Switch/index.js +71 -1
- package/es/Switch/style/index.less +129 -0
- package/es/Table/Table.js +3 -3
- package/es/Table/style/index.less +1 -1
- package/es/Tabs/index.js +7 -9
- package/es/Tabs/style/index.less +57 -25
- package/es/index.d.ts +13 -7
- package/es/index.js +6 -3
- package/es/locale/default.d.ts +2 -0
- package/es/locale/default.js +2 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +132 -0
- package/es/locale/zh_CN.d.ts +3 -2
- package/es/locale/zh_CN.js +131 -2
- package/es/locale-provider/LocaleReceiver.d.ts +4 -0
- package/es/locale-provider/LocaleReceiver.js +3 -0
- package/es/locale-provider/context.d.ts +7 -0
- package/es/locale-provider/context.js +3 -0
- package/es/locale-provider/default.d.ts +2 -0
- package/es/locale-provider/default.js +2 -0
- package/es/locale-provider/en_US.d.ts +2 -0
- package/es/locale-provider/en_US.js +2 -0
- package/es/locale-provider/index.d.ts +61 -0
- package/es/locale-provider/index.js +102 -0
- package/es/locale-provider/style/index.d.ts +1 -0
- package/es/locale-provider/style/index.js +1 -0
- package/es/locale-provider/style/index.less +2 -0
- package/es/locale-provider/zh_CN.d.ts +2 -0
- package/es/locale-provider/zh_CN.js +2 -0
- package/es/{Message → message}/index.d.ts +0 -0
- package/es/{Message → message}/index.js +0 -0
- package/{lib/Notification → es/message}/style/index.d.ts +0 -0
- package/es/message/style/index.js +2 -0
- package/{lib/Notification → es/message}/style/index.less +0 -0
- package/es/{Notification → notification}/index.d.ts +0 -0
- package/es/{Notification → notification}/index.js +0 -0
- package/es/notification/style/index.d.ts +2 -0
- package/es/notification/style/index.js +2 -0
- package/es/notification/style/index.less +1 -0
- package/es/style/index.less +1 -1
- package/es/style/themes/default/index.less +30 -30
- package/lib/Breadcrumb/index.d.ts +0 -1
- package/lib/Button/index.js +5 -3
- package/lib/Button/style/index.less +135 -126
- package/lib/Button/style/variables.less +53 -53
- package/lib/Card/index.d.ts +3 -0
- package/lib/Card/index.js +15 -0
- package/lib/Card/style/index.d.ts +2 -0
- package/lib/{Message → Card}/style/index.js +0 -0
- package/lib/Card/style/index.less +1 -0
- package/lib/Checkbox/index.d.ts +0 -1
- package/lib/Drawer/index.d.ts +4 -0
- package/lib/Drawer/index.js +15 -0
- package/lib/Drawer/style/index.d.ts +2 -0
- package/lib/{Notification → Drawer}/style/index.js +0 -0
- package/lib/Drawer/style/index.less +1 -0
- package/lib/Dropdown/Button.js +8 -6
- package/lib/Empty/image/Authority.d.ts +0 -1
- package/lib/Empty/image/Dataspace.d.ts +0 -1
- package/lib/Empty/image/Search.d.ts +0 -1
- package/lib/Empty/image/Simple.d.ts +0 -1
- package/lib/Empty/image/Worksheet.d.ts +0 -1
- package/lib/Empty/image/empty.d.ts +0 -1
- package/lib/Icon/icons/CheckLine.d.ts +13 -0
- package/lib/Icon/icons/CheckLine.js +90 -0
- package/lib/Icon/icons.json +410 -0
- package/lib/Input/components/Group/index.d.ts +2 -2
- package/lib/Input/components/Group/index.js +7 -12
- package/lib/Input/components/Input/index.d.ts +3 -2
- package/lib/Input/components/Input/index.js +13 -22
- package/lib/Input/components/Password/index.js +13 -17
- package/lib/Input/style/index.less +102 -102
- package/lib/InputNumber/index.d.ts +0 -1
- package/lib/InputNumber/style/index.less +69 -69
- package/lib/Menu/Divider.d.ts +0 -1
- package/lib/Modal/index.js +25 -18
- package/lib/Modal/locale.d.ts +7 -0
- package/lib/Modal/locale.js +31 -0
- package/lib/Modal/style/index.less +45 -45
- package/lib/Navigator/components/Header/index.d.ts +0 -1
- package/lib/Navigator/components/Menu/index.d.ts +0 -1
- package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
- package/lib/Navigator/index.d.ts +1 -1
- package/lib/PageHeader/index.d.ts +3 -0
- package/lib/PageHeader/index.js +15 -0
- package/lib/PageHeader/style/index.d.ts +2 -0
- package/lib/PageHeader/style/index.js +5 -0
- package/lib/PageHeader/style/index.less +1 -0
- package/lib/Popover/index.d.ts +0 -1
- package/lib/Select/rc-select/OptionList.js +8 -7
- package/lib/Select/rc-select/Selector/MultipleSelector.js +11 -1
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.less +69 -45
- package/lib/Select/style/variables.less +45 -45
- package/lib/Select/utils/iconUtil.d.ts +2 -2
- package/lib/Select/utils/iconUtil.js +13 -7
- package/lib/Steps/components/ProcessIcon/index.d.ts +5 -0
- package/lib/Steps/components/ProcessIcon/index.js +19 -0
- package/lib/Steps/components/Step/index.d.ts +20 -0
- package/lib/Steps/components/Step/index.js +61 -0
- package/lib/Steps/index.d.ts +36 -2
- package/lib/Steps/index.js +34 -1
- package/lib/Steps/matchMedia.mock.d.ts +1 -0
- package/lib/Steps/matchMedia.mock.js +17 -0
- package/lib/Steps/style/index.less +251 -0
- package/lib/Switch/index.d.ts +46 -2
- package/lib/Switch/index.js +78 -1
- package/lib/Switch/style/index.less +129 -0
- package/lib/Table/Table.js +3 -3
- package/lib/Table/style/index.less +1 -1
- package/lib/Tabs/index.js +9 -11
- package/lib/Tabs/style/index.less +57 -25
- package/lib/index.d.ts +13 -7
- package/lib/index.js +34 -10
- package/lib/locale/default.d.ts +2 -0
- package/lib/locale/default.js +13 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +146 -0
- package/lib/locale/zh_CN.d.ts +3 -2
- package/lib/locale/zh_CN.js +134 -2
- package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
- package/lib/locale-provider/LocaleReceiver.js +23 -0
- package/lib/locale-provider/context.d.ts +7 -0
- package/lib/locale-provider/context.js +12 -0
- package/lib/locale-provider/default.d.ts +2 -0
- package/lib/locale-provider/default.js +13 -0
- package/lib/locale-provider/en_US.d.ts +2 -0
- package/lib/locale-provider/en_US.js +13 -0
- package/lib/locale-provider/index.d.ts +61 -0
- package/lib/locale-provider/index.js +116 -0
- package/lib/locale-provider/style/index.d.ts +1 -0
- package/lib/locale-provider/style/index.js +3 -0
- package/lib/locale-provider/style/index.less +2 -0
- package/lib/locale-provider/zh_CN.d.ts +2 -0
- package/lib/locale-provider/zh_CN.js +13 -0
- package/lib/{Message → message}/index.d.ts +0 -0
- package/lib/{Message → message}/index.js +0 -0
- package/lib/message/style/index.d.ts +2 -0
- package/lib/message/style/index.js +5 -0
- package/lib/message/style/index.less +1 -0
- package/lib/{Notification → notification}/index.d.ts +0 -0
- package/lib/{Notification → notification}/index.js +0 -0
- package/lib/notification/style/index.d.ts +2 -0
- package/lib/notification/style/index.js +5 -0
- package/lib/notification/style/index.less +1 -0
- package/lib/style/index.less +1 -1
- package/lib/style/themes/default/index.less +30 -30
- package/package.json +11 -8
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
@ald-prefix: ald;
|
|
2
2
|
@ald-iconfont-css-prefix: aldicon;
|
|
3
3
|
|
|
4
|
-
@
|
|
4
|
+
@button-padding: 0 12px;
|
|
5
5
|
|
|
6
6
|
/** size控制 **/
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
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
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
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
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
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
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
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
|
-
@
|
|
33
|
-
@
|
|
34
|
-
@
|
|
35
|
-
@
|
|
36
|
-
@
|
|
37
|
-
@
|
|
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
|
-
@
|
|
40
|
-
@
|
|
41
|
-
@
|
|
42
|
-
@
|
|
43
|
-
@
|
|
44
|
-
@
|
|
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
|
-
@
|
|
47
|
-
@
|
|
48
|
-
@
|
|
49
|
-
@
|
|
50
|
-
@
|
|
51
|
-
@
|
|
52
|
-
@
|
|
53
|
-
@
|
|
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
|
-
@
|
|
56
|
-
@
|
|
57
|
-
@
|
|
58
|
-
@
|
|
59
|
-
@
|
|
60
|
-
@
|
|
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
|
-
@
|
|
63
|
-
@
|
|
64
|
-
@
|
|
65
|
-
@
|
|
66
|
-
@
|
|
67
|
-
@
|
|
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,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;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
package/lib/Checkbox/index.d.ts
CHANGED
|
@@ -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;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
package/lib/Dropdown/Button.js
CHANGED
|
@@ -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
|
|
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(
|
|
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(
|
|
44
|
-
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, Object.assign({}, buttonProps), children, /*#__PURE__*/_react.default.createElement(_ArrowsDownLine2.default, {
|
|
46
|
+
fill: "currentColor"
|
|
45
47
|
})));
|
|
46
48
|
}
|
|
@@ -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
|
+
}
|