@aloudata/aloudata-design 0.3.0-beta.1 → 0.3.2
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/Breadcrumb/style/index.less +11 -3
- package/es/Button/index.js +17 -2
- package/es/Button/style/index.less +41 -39
- package/es/Button/style/variables.less +9 -2
- 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/Checkbox/style/index.less +19 -0
- 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 +3 -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/Form/style/index.less +8 -0
- package/es/Icon/antdIconfont.d.ts +4 -0
- package/es/Icon/antdIconfont.js +2 -0
- package/es/Icon/components/Icon.d.ts +32 -0
- package/es/Icon/components/Icon.js +27 -0
- package/es/Icon/components/createFromScripts.d.ts +1 -0
- package/es/Icon/components/createFromScripts.js +35 -0
- package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/es/Icon/icons/AddLine.d.ts +13 -0
- package/es/Icon/icons/AddLine.js +66 -0
- package/es/Icon/icons/AlertFill.d.ts +13 -0
- package/es/Icon/icons/AlertFill.js +73 -0
- package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/es/Icon/icons/ArrowsDownLine.js +66 -0
- package/es/Icon/icons/CancelFill.d.ts +13 -0
- package/es/Icon/icons/CancelFill.js +73 -0
- package/es/Icon/icons/CheckFill.d.ts +13 -0
- package/es/Icon/icons/CheckFill.js +73 -0
- package/es/Icon/icons/CheckLine.d.ts +13 -0
- package/es/Icon/icons/CheckLine.js +73 -0
- package/es/Icon/icons/CloseLine.d.ts +13 -0
- package/es/Icon/icons/CloseLine.js +66 -0
- package/es/Icon/icons/DatabaseLine.d.ts +13 -0
- package/es/Icon/icons/DatabaseLine.js +66 -0
- package/es/Icon/icons/Deleteline.d.ts +13 -0
- package/es/Icon/icons/Deleteline.js +66 -0
- package/es/Icon/icons/DownloadLine.d.ts +13 -0
- package/es/Icon/icons/DownloadLine.js +73 -0
- package/es/Icon/icons/ErrorFill.d.ts +13 -0
- package/es/Icon/icons/ErrorFill.js +73 -0
- package/es/Icon/icons/EyeOffLine.d.ts +13 -0
- package/es/Icon/icons/EyeOffLine.js +73 -0
- package/es/Icon/icons/EyeOnLine.d.ts +13 -0
- package/es/Icon/icons/EyeOnLine.js +66 -0
- package/es/Icon/icons/FileLine.d.ts +13 -0
- package/es/Icon/icons/FileLine.js +73 -0
- package/es/Icon/icons/HomeFill.d.ts +13 -0
- package/es/Icon/icons/HomeFill.js +73 -0
- package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/es/Icon/icons/LightningLine.d.ts +13 -0
- package/es/Icon/icons/LightningLine.js +66 -0
- package/es/Icon/icons/Loading.d.ts +13 -0
- package/es/Icon/icons/Loading.js +66 -0
- package/es/Icon/icons/More.d.ts +13 -0
- package/es/Icon/icons/More.js +66 -0
- package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/es/Icon/icons/NewWindowsLine.js +74 -0
- package/es/Icon/icons/SearchLine.d.ts +13 -0
- package/es/Icon/icons/SearchLine.js +73 -0
- package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/es/Icon/icons/SortAscendingLine.js +66 -0
- package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/es/Icon/icons/SortDescendingLine.js +66 -0
- package/es/Icon/icons/TextLine.d.ts +13 -0
- package/es/Icon/icons/TextLine.js +73 -0
- package/es/Icon/icons/UserLine.d.ts +13 -0
- package/es/Icon/icons/UserLine.js +73 -0
- package/es/Icon/icons/style.css +9 -0
- package/es/Icon/icons/style.css.d.ts +10 -0
- package/es/Icon/index.d.ts +2 -13
- package/es/Icon/index.js +2 -53
- package/es/Icon/index.less +9 -17
- package/es/Icon/style/index.d.ts +1 -0
- package/es/Icon/style/index.js +1 -0
- package/es/Icon/style/index.less +0 -0
- package/es/Input/components/Group/index.d.ts +0 -1
- package/es/Input/components/Password/index.js +6 -5
- package/es/Input/style/index.less +1 -1
- package/es/InputNumber/index.d.ts +0 -1
- package/es/InputNumber/style/index.less +88 -16
- package/es/Menu/Divider.d.ts +0 -1
- package/es/Menu/style/index.less +4 -3
- package/es/Modal/index.js +21 -12
- package/es/Modal/locale.d.ts +7 -0
- package/es/Modal/locale.js +20 -0
- package/es/Modal/style/index.less +3 -3
- 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/Navigator/style/index.less +46 -5
- package/es/Popover/index.d.ts +0 -1
- package/es/Select/index.d.ts +2 -1
- package/es/Select/index.js +2 -1
- package/es/Select/rc-select/OptionList.js +3 -4
- package/es/Select/rc-select/Selector/MultipleSelector.js +13 -3
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.d.ts +0 -1
- package/es/Select/style/index.js +0 -1
- package/es/Select/style/index.less +105 -10
- package/es/Select/style/variables.less +20 -9
- package/es/Select/style/variables.less.d.ts +4 -1
- package/es/Select/utils/iconUtil.d.ts +2 -2
- package/es/Select/utils/iconUtil.js +10 -13
- package/es/Table/Table.d.ts +0 -1
- package/es/Table/Table.js +23 -14
- package/es/Table/style/index.less +7 -0
- package/es/Tabs/index.d.ts +2 -1
- package/es/Tabs/index.js +9 -6
- package/es/Tabs/style/index.less +67 -1
- package/es/index.d.ts +8 -3
- 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/Message → es/message}/style/index.d.ts +0 -0
- package/es/message/style/index.js +2 -0
- package/{lib/Message → 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/{lib/Notification → es/notification}/style/index.d.ts +0 -0
- package/es/notification/style/index.js +2 -0
- package/{lib/Notification → es/notification}/style/index.less +0 -0
- package/es/style/index.less +1 -0
- package/es/style/themes/default/scrollBar.less +13 -0
- package/lib/Breadcrumb/index.d.ts +0 -1
- package/lib/Breadcrumb/style/index.less +11 -3
- package/lib/Button/index.js +18 -2
- package/lib/Button/style/index.less +41 -39
- package/lib/Button/style/variables.less +9 -2
- 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/Checkbox/style/index.less +19 -0
- 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 +3 -3
- 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/Form/style/index.less +8 -0
- package/lib/Icon/antdIconfont.d.ts +4 -0
- package/lib/Icon/antdIconfont.js +13 -0
- package/lib/Icon/components/Icon.d.ts +32 -0
- package/lib/Icon/components/Icon.js +38 -0
- package/lib/Icon/components/createFromScripts.d.ts +1 -0
- package/lib/Icon/components/createFromScripts.js +41 -0
- package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/lib/Icon/icons/AddLine.d.ts +13 -0
- package/lib/Icon/icons/AddLine.js +83 -0
- package/lib/Icon/icons/AlertFill.d.ts +13 -0
- package/lib/Icon/icons/AlertFill.js +90 -0
- package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/lib/Icon/icons/ArrowsDownLine.js +83 -0
- package/lib/Icon/icons/CancelFill.d.ts +13 -0
- package/lib/Icon/icons/CancelFill.js +90 -0
- package/lib/Icon/icons/CheckFill.d.ts +13 -0
- package/lib/Icon/icons/CheckFill.js +90 -0
- package/lib/Icon/icons/CheckLine.d.ts +13 -0
- package/lib/Icon/icons/CheckLine.js +90 -0
- package/lib/Icon/icons/CloseLine.d.ts +13 -0
- package/lib/Icon/icons/CloseLine.js +83 -0
- package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
- package/lib/Icon/icons/DatabaseLine.js +83 -0
- package/lib/Icon/icons/Deleteline.d.ts +13 -0
- package/lib/Icon/icons/Deleteline.js +83 -0
- package/lib/Icon/icons/DownloadLine.d.ts +13 -0
- package/lib/Icon/icons/DownloadLine.js +90 -0
- package/lib/Icon/icons/ErrorFill.d.ts +13 -0
- package/lib/Icon/icons/ErrorFill.js +90 -0
- package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOffLine.js +90 -0
- package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOnLine.js +83 -0
- package/lib/Icon/icons/FileLine.d.ts +13 -0
- package/lib/Icon/icons/FileLine.js +90 -0
- package/lib/Icon/icons/HomeFill.d.ts +13 -0
- package/lib/Icon/icons/HomeFill.js +90 -0
- package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/lib/Icon/icons/LightningLine.d.ts +13 -0
- package/lib/Icon/icons/LightningLine.js +83 -0
- package/lib/Icon/icons/Loading.d.ts +13 -0
- package/lib/Icon/icons/Loading.js +83 -0
- package/lib/Icon/icons/More.d.ts +13 -0
- package/lib/Icon/icons/More.js +83 -0
- package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/lib/Icon/icons/NewWindowsLine.js +91 -0
- package/lib/Icon/icons/SearchLine.d.ts +13 -0
- package/lib/Icon/icons/SearchLine.js +90 -0
- package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortAscendingLine.js +83 -0
- package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortDescendingLine.js +83 -0
- package/lib/Icon/icons/TextLine.d.ts +13 -0
- package/lib/Icon/icons/TextLine.js +90 -0
- package/lib/Icon/icons/UserLine.d.ts +13 -0
- package/lib/Icon/icons/UserLine.js +90 -0
- package/lib/Icon/icons/style.css +9 -0
- package/lib/Icon/icons/style.css.d.ts +10 -0
- package/lib/Icon/index.d.ts +2 -13
- package/lib/Icon/index.js +2 -59
- package/lib/Icon/index.less +9 -17
- package/lib/Icon/style/index.d.ts +1 -0
- package/lib/Icon/style/index.js +1 -0
- package/lib/Icon/style/index.less +0 -0
- package/lib/Input/components/Group/index.d.ts +0 -1
- package/lib/Input/components/Password/index.js +7 -5
- package/lib/Input/style/index.less +1 -1
- package/lib/InputNumber/index.d.ts +0 -1
- package/lib/InputNumber/style/index.less +88 -16
- package/lib/Menu/Divider.d.ts +0 -1
- package/lib/Menu/style/index.less +4 -3
- package/lib/Modal/index.js +23 -12
- package/lib/Modal/locale.d.ts +7 -0
- package/lib/Modal/locale.js +31 -0
- package/lib/Modal/style/index.less +3 -3
- 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/Navigator/style/index.less +46 -5
- package/lib/Popover/index.d.ts +0 -1
- package/lib/Select/index.d.ts +2 -1
- package/lib/Select/index.js +2 -1
- package/lib/Select/rc-select/OptionList.js +3 -4
- package/lib/Select/rc-select/Selector/MultipleSelector.js +13 -3
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.d.ts +0 -1
- package/lib/Select/style/index.js +0 -2
- package/lib/Select/style/index.less +105 -10
- package/lib/Select/style/variables.less +20 -9
- package/lib/Select/style/variables.less.d.ts +4 -1
- package/lib/Select/utils/iconUtil.d.ts +2 -2
- package/lib/Select/utils/iconUtil.js +11 -14
- package/lib/Table/Table.d.ts +0 -1
- package/lib/Table/Table.js +25 -15
- package/lib/Table/style/index.less +7 -0
- package/lib/Tabs/index.d.ts +2 -1
- package/lib/Tabs/index.js +9 -6
- package/lib/Tabs/style/index.less +67 -1
- package/lib/index.d.ts +8 -3
- package/lib/index.js +38 -14
- 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 -0
- package/lib/style/themes/default/scrollBar.less +13 -0
- package/package.json +10 -8
- package/es/Icon/iconfont/demo.css +0 -539
- package/es/Icon/iconfont/demo_index.html +0 -720
- package/es/Icon/iconfont/iconfont.css +0 -109
- package/es/Icon/iconfont/iconfont.js +0 -46
- package/es/Icon/iconfont/iconfont.json +0 -170
- package/es/Icon/iconfont/iconfont.ttf +0 -0
- package/es/Icon/iconfont/iconfont.woff +0 -0
- package/es/Icon/iconfont/iconfont.woff2 +0 -0
- package/es/Table/components/Empty/empty-img.png +0 -0
- package/es/Table/components/Empty/index.d.ts +0 -4
- package/es/Table/components/Empty/index.js +0 -16
- package/es/Table/components/Empty/index.less +0 -24
- package/lib/Icon/iconfont/demo.css +0 -539
- package/lib/Icon/iconfont/demo_index.html +0 -720
- package/lib/Icon/iconfont/iconfont.css +0 -109
- package/lib/Icon/iconfont/iconfont.js +0 -48
- package/lib/Icon/iconfont/iconfont.json +0 -170
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Table/components/Empty/empty-img.png +0 -0
- package/lib/Table/components/Empty/index.d.ts +0 -4
- package/lib/Table/components/Empty/index.js +0 -30
- package/lib/Table/components/Empty/index.less +0 -24
|
@@ -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 TextLine(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(#562cc__a)"
|
|
61
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
62
|
+
"data-follow-fill": "#001A33",
|
|
63
|
+
fillRule: "evenodd",
|
|
64
|
+
clipRule: "evenodd",
|
|
65
|
+
d: "M7 5.778 4.49 13h5.02L7 5.778Zm-5.055 14.55L3.795 15h6.41l1.85 5.328a1 1 0 1 0 1.89-.656L8.563 4.182a1.809 1.809 0 0 0-.557-.816A1.582 1.582 0 0 0 7 3c-.382 0-.732.14-1.006.366a1.809 1.809 0 0 0-.557.816L.055 19.672a1 1 0 0 0 1.89.656ZM19 13a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm0-2c1.126 0 2.164.372 3 1a1 1 0 0 1 2 0v8a1 1 0 0 1-2 0 5 5 0 1 1-3-9Z",
|
|
66
|
+
fill: _fill
|
|
67
|
+
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
68
|
+
id: "562cc__a"
|
|
69
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
70
|
+
d: "M0 0h24v24H0z",
|
|
71
|
+
fill: "#fff"
|
|
72
|
+
})))));
|
|
73
|
+
}
|
|
@@ -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 UserLine(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 UserLine(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(#56361__a)"
|
|
61
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
62
|
+
"data-follow-fill": "#001A33",
|
|
63
|
+
d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10a9.964 9.964 0 0 1-2.627 6.756A9.242 9.242 0 0 0 16.51 16.2 9.09 9.09 0 0 0 12 15a9.09 9.09 0 0 0-4.51 1.2 9.242 9.242 0 0 0-2.863 2.556A9.964 9.964 0 0 1 2 12Zm4.128 8.095A9.955 9.955 0 0 0 12 22a9.955 9.955 0 0 0 5.872-1.904 7.247 7.247 0 0 0-2.354-2.16A7.09 7.09 0 0 0 12 17a7.09 7.09 0 0 0-3.518.937 7.247 7.247 0 0 0-2.354 2.158ZM12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0Zm0 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM7 9a5 5 0 1 1 10 0A5 5 0 0 1 7 9Z",
|
|
64
|
+
clipRule: "evenodd",
|
|
65
|
+
fillRule: "evenodd",
|
|
66
|
+
fill: _fill
|
|
67
|
+
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
68
|
+
id: "56361__a"
|
|
69
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
70
|
+
fill: "#fff",
|
|
71
|
+
d: "M0 0h24v24H0z"
|
|
72
|
+
})))));
|
|
73
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
.spin,.spin svg {animation: iconpark-spin 1s infinite linear;}
|
|
2
|
+
.rtl,.rtl svg {transform: scaleX(-1);}
|
|
3
|
+
.spin.rtl,.spin.rtl svg {animation: iconpark-spin-rtl 1s infinite linear;}
|
|
4
|
+
@keyframes iconpark-spin {
|
|
5
|
+
0% { -webkit-transform: rotate(0); transform: rotate(0);} 100% {-webkit-transform: rotate(360deg); transform: rotate(360deg);}
|
|
6
|
+
}
|
|
7
|
+
@keyframes iconpark-spin-rtl {
|
|
8
|
+
0% {-webkit-transform: scaleX(-1) rotate(0); transform: scaleX(-1) rotate(0);} 100% {-webkit-transform: scaleX(-1) rotate(360deg); transform: scaleX(-1) rotate(360deg);}
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file is automatically generated.
|
|
2
|
+
// Please do not change this file!
|
|
3
|
+
interface CssExports {
|
|
4
|
+
'iconpark-spin': string;
|
|
5
|
+
'iconpark-spin-rtl': string;
|
|
6
|
+
'rtl': string;
|
|
7
|
+
'spin': string;
|
|
8
|
+
}
|
|
9
|
+
export const cssExports: CssExports;
|
|
10
|
+
export default cssExports;
|
package/es/Icon/index.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { createFromIconfontCN } from '@ant-design/icons';
|
|
4
|
-
declare const Icon: (props: IIconProps) => JSX.Element;
|
|
1
|
+
import Icon from './components/Icon';
|
|
2
|
+
export type { IBaseIconProps } from './components/Icon';
|
|
5
3
|
export default Icon;
|
|
6
|
-
export type { IconFontProps };
|
|
7
|
-
export { createFromIconfontCN };
|
|
8
|
-
export interface IIconProps extends Omit<IconFontProps, 'size'> {
|
|
9
|
-
className?: string;
|
|
10
|
-
size?: number | string;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
color?: string;
|
|
13
|
-
type: string;
|
|
14
|
-
}
|
package/es/Icon/index.js
CHANGED
|
@@ -1,53 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
|
|
7
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
|
|
9
|
-
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; }
|
|
10
|
-
|
|
11
|
-
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; }
|
|
12
|
-
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import { createFromIconfontCN } from '@ant-design/icons'; // @ts-ignore iconfont.js 没有ts类型定义
|
|
15
|
-
// import iconfontJs from './iconfont/iconfont';
|
|
16
|
-
|
|
17
|
-
var iconfontJs = require('./iconfont/iconfont');
|
|
18
|
-
|
|
19
|
-
var IconFont = createFromIconfontCN({
|
|
20
|
-
scriptUrl: iconfontJs
|
|
21
|
-
});
|
|
22
|
-
var DEFAULT_SIZE = 16;
|
|
23
|
-
|
|
24
|
-
var Icon = function Icon(props) {
|
|
25
|
-
var className = props.className,
|
|
26
|
-
_props$size = props.size,
|
|
27
|
-
size = _props$size === void 0 ? DEFAULT_SIZE : _props$size,
|
|
28
|
-
_props$style = props.style,
|
|
29
|
-
style = _props$style === void 0 ? {} : _props$style,
|
|
30
|
-
color = props.color,
|
|
31
|
-
restProps = _objectWithoutProperties(props, _excluded); // 添加一个前缀
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var prefix = '';
|
|
35
|
-
var type = "".concat(prefix).concat(props.type);
|
|
36
|
-
|
|
37
|
-
var finalStyle = _objectSpread({
|
|
38
|
-
verticalAlign: 'middle',
|
|
39
|
-
color: color,
|
|
40
|
-
fontSize: size,
|
|
41
|
-
height: size,
|
|
42
|
-
width: size
|
|
43
|
-
}, style);
|
|
44
|
-
|
|
45
|
-
return /*#__PURE__*/React.createElement(IconFont, Object.assign({}, restProps, {
|
|
46
|
-
style: finalStyle,
|
|
47
|
-
type: type,
|
|
48
|
-
className: className
|
|
49
|
-
}));
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export default Icon;
|
|
53
|
-
export { createFromIconfontCN };
|
|
1
|
+
import Icon from './components/Icon';
|
|
2
|
+
export default Icon;
|
package/es/Icon/index.less
CHANGED
|
@@ -2,31 +2,23 @@
|
|
|
2
2
|
font-size: 16px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
font-family: @icon-font; /* Project id 3211525 */
|
|
9
|
-
src:
|
|
10
|
-
|
|
11
|
-
url('data:application/x-font-woff2;charset=utf-8;base64,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') format('woff2'),
|
|
12
|
-
url('./iconfont/iconfont.woff?t=1648447992265') format('woff'),
|
|
13
|
-
url('./iconfont/iconfont.ttf?t=1648447992265') format('truetype');
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ald-iconfont(@content; @font-size: 16px) {
|
|
17
|
-
font-family: @icon-font !important;
|
|
18
|
-
font-size: 16px;
|
|
5
|
+
// 用于替换antd内的某些无法通过外部传入的图标
|
|
6
|
+
.ald-iconSvg(@svgName; @size: 16px) {
|
|
7
|
+
font-size: @size;
|
|
19
8
|
font-style: normal;
|
|
20
9
|
-webkit-font-smoothing: antialiased;
|
|
21
10
|
-moz-osx-font-smoothing: grayscale;
|
|
22
11
|
|
|
23
12
|
&::before {
|
|
24
|
-
content:
|
|
25
|
-
|
|
13
|
+
content: url("iconSvgs/@{svgName}.svg");
|
|
14
|
+
width: @size;
|
|
15
|
+
height: @size;
|
|
16
|
+
font-size: @size;
|
|
17
|
+
color: inherit;
|
|
26
18
|
display: inline-block;
|
|
27
19
|
}
|
|
28
20
|
|
|
29
21
|
& > svg {
|
|
30
22
|
display: none;
|
|
31
23
|
}
|
|
32
|
-
}
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
File without changes
|
|
@@ -5,7 +5,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
5
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
6
|
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import
|
|
8
|
+
import EyeOffLine from '../../../Icon/icons/EyeOffLine';
|
|
9
|
+
import EyeOnLine from '../../../Icon/icons/EyeOnLine';
|
|
9
10
|
import AntdPassword from 'antd/lib/input/Password';
|
|
10
11
|
import classnames from 'classnames'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
12
|
|
|
@@ -27,10 +28,10 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
27
28
|
ref: ref,
|
|
28
29
|
className: getClassName(size),
|
|
29
30
|
iconRender: function iconRender(visible) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
return visible ? /*#__PURE__*/React.createElement(EyeOnLine, {
|
|
32
|
+
fill: "currentColor"
|
|
33
|
+
}) : /*#__PURE__*/React.createElement(EyeOffLine, {
|
|
34
|
+
fill: "currentColor"
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
}));
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
/* stylelint-disable no-descending-specificity */
|
|
1
2
|
@import '../../style/index.less';
|
|
2
3
|
|
|
3
4
|
@InputNumber-height-large: 36px;
|
|
4
5
|
@InputNumber-fontSize-large: 16px;
|
|
6
|
+
@InputNumber-borderRadius-large: 8px;
|
|
5
7
|
|
|
6
8
|
@InputNumber-height-middle: 32px;
|
|
7
9
|
@InputNumber-fontSize-middle: 14px;
|
|
10
|
+
@InputNumber-borderRadius-middle: 6px;
|
|
8
11
|
|
|
9
12
|
@InputNumber-height-small: 28px;
|
|
10
13
|
@InputNumber-fontSize-small: 12px;
|
|
11
|
-
|
|
12
|
-
@InputNumber-borderRadius: 8px;
|
|
14
|
+
@InputNumber-borderRadius-small: 4px;
|
|
13
15
|
//默认
|
|
14
16
|
@InputNumber-bgColor: @BG97;
|
|
15
17
|
@InputNumber-borderColor: @NL90;
|
|
@@ -22,24 +24,25 @@
|
|
|
22
24
|
//disable
|
|
23
25
|
@InputNumber-disabled-bgColor: @BG95;
|
|
24
26
|
@InputNumber-disabled-borderColor: @NL90;
|
|
25
|
-
@InputNumber-disabled-color: @
|
|
27
|
+
@InputNumber-disabled-color: @NL60;
|
|
26
28
|
//光标颜色
|
|
27
29
|
@InputNumber-cursor-color: @B60;
|
|
28
30
|
|
|
29
31
|
//前后填充
|
|
30
32
|
@InputNumber-addon-bgColor: @BG95;
|
|
31
|
-
@InputNumber-addon-color: @
|
|
32
|
-
@InputNumber-addon-
|
|
33
|
+
@InputNumber-addon-color: @NL30;
|
|
34
|
+
@InputNumber-addon-borderColor: @NL90;
|
|
35
|
+
@InputNumber-addon-disable-color: @NL60;
|
|
33
36
|
|
|
34
37
|
.ald-inputNumber {
|
|
35
38
|
&.ant-input-number {
|
|
36
39
|
height: @InputNumber-height-middle;
|
|
37
|
-
overflow: hidden;
|
|
40
|
+
// overflow: hidden;
|
|
38
41
|
color: @InputNumber-color;
|
|
39
42
|
font-size: @InputNumber-fontSize-middle;
|
|
40
43
|
background-color: @InputNumber-bgColor;
|
|
41
44
|
border-color: @InputNumber-borderColor;
|
|
42
|
-
border-radius: @InputNumber-borderRadius;
|
|
45
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
43
46
|
box-shadow: none;
|
|
44
47
|
|
|
45
48
|
.ant-input-number-input-wrap {
|
|
@@ -52,28 +55,56 @@
|
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
.ant-input-number-handler-wrap {
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
|
|
55
60
|
.ant-input-number-handler {
|
|
56
61
|
background-color: @BG95;
|
|
57
|
-
}
|
|
58
62
|
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
.ant-input-number-handler-up-inner,
|
|
64
|
+
.ant-input-number-handler-down-inner {
|
|
65
|
+
color: @NL50;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:hover,
|
|
69
|
+
&:active {
|
|
70
|
+
background-color: @NL95;
|
|
71
|
+
|
|
72
|
+
.ant-input-number-handler-up-inner,
|
|
73
|
+
.ant-input-number-handler-down-inner {
|
|
74
|
+
color: @B60;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
61
77
|
}
|
|
62
78
|
}
|
|
63
79
|
|
|
64
80
|
&.ald-inputNumber-large {
|
|
65
81
|
height: @InputNumber-height-large;
|
|
66
82
|
font-size: @InputNumber-fontSize-large;
|
|
83
|
+
border-radius: @InputNumber-borderRadius-large;
|
|
84
|
+
|
|
85
|
+
.ant-input-number-handler-wrap {
|
|
86
|
+
border-radius: 0 @InputNumber-borderRadius-large @InputNumber-borderRadius-large 0;
|
|
87
|
+
}
|
|
67
88
|
}
|
|
68
89
|
|
|
69
90
|
&.ald-inputNumber-middle {
|
|
70
91
|
height: @InputNumber-height-middle;
|
|
71
92
|
font-size: @InputNumber-fontSize-middle;
|
|
93
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
94
|
+
|
|
95
|
+
.ant-input-number-handler-wrap {
|
|
96
|
+
border-radius: 0 @InputNumber-borderRadius-middle @InputNumber-borderRadius-middle 0;
|
|
97
|
+
}
|
|
72
98
|
}
|
|
73
99
|
|
|
74
100
|
&.ald-inputNumber-small {
|
|
75
101
|
height: @InputNumber-height-small;
|
|
76
102
|
font-size: @InputNumber-fontSize-small;
|
|
103
|
+
border-radius: @InputNumber-borderRadius-small;
|
|
104
|
+
|
|
105
|
+
.ant-input-number-handler-wrap {
|
|
106
|
+
border-radius: 0 @InputNumber-borderRadius-small @InputNumber-borderRadius-small 0;
|
|
107
|
+
}
|
|
77
108
|
}
|
|
78
109
|
|
|
79
110
|
&-disabled {
|
|
@@ -87,44 +118,79 @@
|
|
|
87
118
|
}
|
|
88
119
|
}
|
|
89
120
|
|
|
121
|
+
&:hover:not(.ald-inputNumber-disabled),
|
|
90
122
|
&-focused {
|
|
91
123
|
background-color: @InputNumber-active-bgColor;
|
|
92
124
|
border-color: @InputNumber-active-borderColor;
|
|
125
|
+
box-shadow: 0 0 0 0.5px @InputNumber-active-borderColor;
|
|
93
126
|
}
|
|
94
127
|
}
|
|
95
128
|
|
|
96
129
|
&.ant-input-number-group-wrapper {
|
|
97
130
|
// height: @InputNumber-height-middle;
|
|
98
|
-
overflow: hidden;
|
|
131
|
+
// overflow: hidden;
|
|
99
132
|
color: @InputNumber-color;
|
|
100
|
-
background-color: @InputNumber-wrapper-bgColor;
|
|
133
|
+
// background-color: @InputNumber-wrapper-bgColor;
|
|
101
134
|
border-color: @InputNumber-borderColor;
|
|
102
|
-
border-radius: @InputNumber-borderRadius;
|
|
103
135
|
box-shadow: none;
|
|
104
136
|
|
|
105
137
|
&.ald-inputNumber-large {
|
|
106
138
|
font-size: @InputNumber-fontSize-large;
|
|
139
|
+
border-radius: @InputNumber-borderRadius-large;
|
|
140
|
+
|
|
141
|
+
.ant-input-number-group-addon {
|
|
142
|
+
&:first-child {
|
|
143
|
+
border-radius: @InputNumber-borderRadius-large 0 0 @InputNumber-borderRadius-large;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:last-child {
|
|
147
|
+
border-radius: 0 @InputNumber-borderRadius-large @InputNumber-borderRadius-large 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
107
150
|
}
|
|
108
151
|
|
|
109
152
|
&.ald-inputNumber-middle {
|
|
110
153
|
font-size: @InputNumber-fontSize-middle;
|
|
154
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
155
|
+
|
|
156
|
+
.ant-input-number-group-addon {
|
|
157
|
+
&:first-child {
|
|
158
|
+
border-radius: @InputNumber-borderRadius-middle 0 0 @InputNumber-borderRadius-middle;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:last-child {
|
|
162
|
+
border-radius: 0 @InputNumber-borderRadius-middle @InputNumber-borderRadius-middle 0;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
111
165
|
}
|
|
112
166
|
|
|
113
167
|
&.ald-inputNumber-small {
|
|
114
168
|
font-size: @InputNumber-fontSize-small;
|
|
169
|
+
border-radius: @InputNumber-borderRadius-small;
|
|
170
|
+
|
|
171
|
+
.ant-input-number-group-addon {
|
|
172
|
+
&:first-child {
|
|
173
|
+
border-radius: @InputNumber-borderRadius-small 0 0 @InputNumber-borderRadius-small;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&:last-child {
|
|
177
|
+
border-radius: 0 @InputNumber-borderRadius-small @InputNumber-borderRadius-small 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
115
180
|
}
|
|
116
181
|
|
|
117
182
|
.ant-input-number-wrapper {
|
|
118
183
|
height: 100%;
|
|
119
|
-
overflow: hidden;
|
|
184
|
+
// overflow: hidden;
|
|
120
185
|
font-size: inherit;
|
|
121
186
|
|
|
122
187
|
.ant-input-number-group-addon {
|
|
123
|
-
overflow: hidden;
|
|
188
|
+
// overflow: hidden;
|
|
124
189
|
color: @InputNumber-addon-color;
|
|
125
190
|
font-size: inherit;
|
|
126
191
|
background-color: @InputNumber-addon-bgColor;
|
|
127
|
-
border-radius: @InputNumber-borderRadius;
|
|
192
|
+
// border-radius: @InputNumber-borderRadius-middle;
|
|
193
|
+
border-color: @InputNumber-addon-borderColor;
|
|
128
194
|
|
|
129
195
|
&:first-child {
|
|
130
196
|
border-top-right-radius: 0;
|
|
@@ -138,8 +204,14 @@
|
|
|
138
204
|
}
|
|
139
205
|
|
|
140
206
|
.ald-inputNumber {
|
|
207
|
+
position: relative;
|
|
208
|
+
z-index: 2;
|
|
141
209
|
margin: 0;
|
|
142
210
|
padding: 0;
|
|
211
|
+
|
|
212
|
+
.ant-input-number-handler-wrap {
|
|
213
|
+
border-radius: 0;
|
|
214
|
+
}
|
|
143
215
|
}
|
|
144
216
|
}
|
|
145
217
|
|
package/es/Menu/Divider.d.ts
CHANGED
package/es/Menu/style/index.less
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
background-color: @NL90;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.ald-
|
|
19
|
+
.ald-iconSvg {
|
|
20
20
|
font-size: 16px;
|
|
21
|
-
font-family: @icon-font !important;
|
|
21
|
+
// font-family: @icon-font !important;
|
|
22
22
|
font-style: normal;
|
|
23
23
|
-webkit-font-smoothing: antialiased;
|
|
24
24
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
.ant-dropdown-menu-submenu-title
|
|
32
32
|
.ant-dropdown-menu-submenu-expand-icon
|
|
33
33
|
.ant-dropdown-menu-submenu-arrow-icon {
|
|
34
|
-
|
|
34
|
+
color: @NL50;
|
|
35
|
+
.ald-iconSvg('arrows_right_sm',14px);
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
|
package/es/Modal/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "antd/es/modal/style";
|
|
2
2
|
import _Modal from "antd/es/modal";
|
|
3
|
-
var _excluded = ["className", "children", "forbidBodyScroll", "footer", "okText", "cancelText", "onOk", "onCancel", "width", "closeIcon"];
|
|
3
|
+
var _excluded = ["className", "children", "forbidBodyScroll", "footer", "okText", "cancelText", "onOk", "onCancel", "width", "confirmLoading", "closeIcon"];
|
|
4
4
|
|
|
5
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; }
|
|
6
6
|
|
|
@@ -11,7 +11,9 @@ import useModal from 'antd/lib/modal/useModal/index';
|
|
|
11
11
|
import confirm, { withWarn, withInfo, withSuccess, withError, withConfirm, modalGlobalConfig } from 'antd/lib/modal/confirm';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
import Button from '../Button';
|
|
14
|
-
import
|
|
14
|
+
import CloseLine from '../Icon/icons/CloseLine';
|
|
15
|
+
import LocaleReceiver from '../locale-provider/LocaleReceiver';
|
|
16
|
+
import { getConfirmLocale } from './locale';
|
|
15
17
|
export var destroyFns = [];
|
|
16
18
|
|
|
17
19
|
function modalWarn(props) {
|
|
@@ -30,17 +32,24 @@ var OriginModal = function OriginModal(props) {
|
|
|
30
32
|
onOk = props.onOk,
|
|
31
33
|
onCancel = props.onCancel,
|
|
32
34
|
width = props.width,
|
|
35
|
+
confirmLoading = props.confirmLoading,
|
|
33
36
|
closeIcon = props.closeIcon,
|
|
34
37
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
35
38
|
|
|
36
|
-
var Footer = /*#__PURE__*/React.createElement(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
var Footer = /*#__PURE__*/React.createElement(LocaleReceiver, {
|
|
40
|
+
componentName: "Modal",
|
|
41
|
+
defaultLocale: getConfirmLocale()
|
|
42
|
+
}, function (locale) {
|
|
43
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
44
|
+
size: "large",
|
|
45
|
+
onClick: onCancel
|
|
46
|
+
}, cancelText || (locale === null || locale === void 0 ? void 0 : locale.cancelText)), /*#__PURE__*/React.createElement(Button, {
|
|
47
|
+
type: "primary",
|
|
48
|
+
loading: confirmLoading,
|
|
49
|
+
size: "large",
|
|
50
|
+
onClick: onOk
|
|
51
|
+
}, okText || (locale === null || locale === void 0 ? void 0 : locale.okText)));
|
|
52
|
+
});
|
|
44
53
|
return /*#__PURE__*/React.createElement(_Modal, Object.assign({}, restProps, {
|
|
45
54
|
onCancel: onCancel,
|
|
46
55
|
footer: footer !== undefined ? footer : Footer,
|
|
@@ -48,8 +57,8 @@ var OriginModal = function OriginModal(props) {
|
|
|
48
57
|
width: width || DEFAULT_WIDTH,
|
|
49
58
|
closeIcon: closeIcon || /*#__PURE__*/React.createElement(Button, {
|
|
50
59
|
size: "small",
|
|
51
|
-
icon: /*#__PURE__*/React.createElement(
|
|
52
|
-
|
|
60
|
+
icon: /*#__PURE__*/React.createElement(CloseLine, {
|
|
61
|
+
fill: "currentColor",
|
|
53
62
|
size: 12
|
|
54
63
|
}),
|
|
55
64
|
className: "ald-modal-close"
|