@aloudata/aloudata-design 1.9.0 → 1.9.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/dist/AldTable/index.js +70 -42
- package/dist/AldTable/style/index.less +10 -0
- package/dist/AldTable/types.d.ts +2 -2
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +0 -1
- package/dist/Col/index.d.ts +2 -2
- package/dist/Col/index.js +0 -2
- package/dist/ConfigProvider/defaultRenderEmpty.js +2 -2
- package/dist/ConfigProvider/index.d.ts +2 -1
- package/dist/ConfigProvider/index.js +1 -0
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +0 -2
- package/dist/Dropdown/style/index.less +5 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/style/index.less +8 -4
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +2 -2
- package/dist/Icon/components/AlertTriangleDuotone.js +5 -5
- package/dist/Icon/components/CancelCircleDuotone.d.ts +2 -2
- package/dist/Icon/components/CancelCircleDuotone.js +7 -7
- package/dist/Icon/components/CheckCircleDuotone.d.ts +2 -2
- package/dist/Icon/components/CheckCircleDuotone.js +7 -7
- package/dist/Icon/components/InfoCircleLine.d.ts +2 -2
- package/dist/Icon/components/InfoCircleLine.js +5 -5
- package/dist/MemberPicker/index.js +5 -1
- package/dist/MemberPicker/interface.d.ts +1 -0
- package/dist/MemberPicker/style/index.less +4 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Modal/index.js +9 -3
- package/dist/Modal/style/index.less +36 -3
- package/dist/Result/noFound.js +3 -1
- package/dist/Result/serverError.js +3 -1
- package/dist/Result/style/index.less +8 -0
- package/dist/Result/unauthorized.js +3 -1
- package/dist/Select/index.js +2 -2
- package/dist/Select/style/variables.less +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -1
- package/package.json +3 -3
package/dist/AldTable/index.js
CHANGED
|
@@ -19,8 +19,10 @@ import _ from 'lodash';
|
|
|
19
19
|
import ResizeObserver from 'rc-resize-observer';
|
|
20
20
|
import React, { useMemo, useState } from 'react';
|
|
21
21
|
import { useBlockLayout, useResizeColumns, useTable } from 'react-table';
|
|
22
|
-
import { Empty, Pagination, Spin } from '..';
|
|
22
|
+
import { Empty, Pagination, ScrollArea, Spin } from '..';
|
|
23
23
|
import { getTableColumns, prefixCls } from "./helper";
|
|
24
|
+
// 32 行高 + 1 底线高度
|
|
25
|
+
var HEADER_HEIGHT = 33;
|
|
24
26
|
|
|
25
27
|
function AldTable(props) {
|
|
26
28
|
var columns = props.columns,
|
|
@@ -29,7 +31,9 @@ function AldTable(props) {
|
|
|
29
31
|
columnSizing = props.columnSizing,
|
|
30
32
|
sticky = props.sticky,
|
|
31
33
|
loading = props.loading,
|
|
32
|
-
pagination = props.pagination
|
|
34
|
+
pagination = props.pagination,
|
|
35
|
+
_props$scroll = props.scroll,
|
|
36
|
+
scroll = _props$scroll === void 0 ? {} : _props$scroll;
|
|
33
37
|
|
|
34
38
|
var _useState = useState(null),
|
|
35
39
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -69,54 +73,78 @@ function AldTable(props) {
|
|
|
69
73
|
prepareRow = _useTable.prepareRow,
|
|
70
74
|
headerGroups = _useTable.headerGroups;
|
|
71
75
|
|
|
76
|
+
var y = scroll.y;
|
|
72
77
|
var tableProps = useMemo(function () {
|
|
73
|
-
return getTableProps();
|
|
78
|
+
return getTableProps({});
|
|
74
79
|
}, [getTableProps]);
|
|
80
|
+
var headerContent = useMemo(function () {
|
|
81
|
+
var isStickyWork = !!sticky && y === undefined;
|
|
82
|
+
return _.map(headerGroups, function (headerGroup) {
|
|
83
|
+
var topStyle = isStickyWork && _.get(sticky, 'offsetHeader') ? {
|
|
84
|
+
style: {
|
|
85
|
+
top: _.get(sticky, 'offsetHeader', 0)
|
|
86
|
+
}
|
|
87
|
+
} : {};
|
|
88
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, headerGroup.getHeaderGroupProps(topStyle), {
|
|
89
|
+
className: classnames(prefixCls('tr'), _defineProperty({}, prefixCls('sticky'), isStickyWork))
|
|
90
|
+
}), _.map(headerGroup.headers, function (column) {
|
|
91
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, column.getHeaderProps(), {
|
|
92
|
+
className: prefixCls('th')
|
|
93
|
+
}), column.render('Header'), columnSizing && /*#__PURE__*/React.createElement("div", _extends({}, column.getResizerProps(), {
|
|
94
|
+
className: classnames(prefixCls('resizer'), {
|
|
95
|
+
isResizing: column.isResizing
|
|
96
|
+
})
|
|
97
|
+
})));
|
|
98
|
+
}));
|
|
99
|
+
});
|
|
100
|
+
}, [headerGroups, sticky, columnSizing, y]);
|
|
101
|
+
var bodyContent = useMemo(function () {
|
|
102
|
+
return /*#__PURE__*/React.createElement(Spin, {
|
|
103
|
+
spinning: !!loading,
|
|
104
|
+
tip: "Loading..."
|
|
105
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
className: prefixCls('body')
|
|
107
|
+
}, rows.length === 0 && !loading ? /*#__PURE__*/React.createElement(Empty, {
|
|
108
|
+
title: "No Data",
|
|
109
|
+
image: Empty.PRESENTED_IMAGE_SEARCH
|
|
110
|
+
}) : _.map(rows, function (row) {
|
|
111
|
+
prepareRow(row);
|
|
112
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
113
|
+
className: prefixCls('tr')
|
|
114
|
+
}, row.getRowProps()), _.map(row.cells, function (cell) {
|
|
115
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
116
|
+
className: prefixCls('td')
|
|
117
|
+
}, cell.getCellProps()), cell.render('Cell'));
|
|
118
|
+
}));
|
|
119
|
+
})));
|
|
120
|
+
}, [loading, rows, prepareRow]);
|
|
121
|
+
var tableContent = y && totalSize ? /*#__PURE__*/React.createElement("div", _extends({
|
|
122
|
+
className: prefixCls('main')
|
|
123
|
+
}, tableProps), /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
className: prefixCls('header'),
|
|
125
|
+
style: {
|
|
126
|
+
height: HEADER_HEIGHT
|
|
127
|
+
}
|
|
128
|
+
}, headerContent), /*#__PURE__*/React.createElement("div", _extends({}, getTableBodyProps(), {
|
|
129
|
+
style: {
|
|
130
|
+
height: totalSize.height - HEADER_HEIGHT
|
|
131
|
+
},
|
|
132
|
+
className: prefixCls('body-scroll')
|
|
133
|
+
}), /*#__PURE__*/React.createElement(ScrollArea, null, bodyContent))) : /*#__PURE__*/React.createElement("div", _extends({
|
|
134
|
+
className: prefixCls('main')
|
|
135
|
+
}, tableProps), /*#__PURE__*/React.createElement("div", null, headerContent), /*#__PURE__*/React.createElement("div", getTableBodyProps(), bodyContent));
|
|
75
136
|
return /*#__PURE__*/React.createElement("div", {
|
|
76
|
-
className: prefixCls('container')
|
|
137
|
+
className: prefixCls('container'),
|
|
138
|
+
style: y ? {
|
|
139
|
+
height: y
|
|
140
|
+
} : {}
|
|
77
141
|
}, /*#__PURE__*/React.createElement(ResizeObserver, {
|
|
78
142
|
onResize: function onResize(size) {
|
|
79
143
|
setTotalSize(size);
|
|
80
144
|
}
|
|
81
145
|
}, /*#__PURE__*/React.createElement("div", {
|
|
82
|
-
className: prefixCls('main')
|
|
83
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
84
|
-
className: prefixCls('main')
|
|
85
|
-
}, tableProps), _.map(headerGroups, function (headerGroup) {
|
|
86
|
-
var topStyle = sticky && _.get(sticky, 'offsetHeader') ? {
|
|
87
|
-
style: {
|
|
88
|
-
top: _.get(sticky, 'offsetHeader', 0)
|
|
89
|
-
}
|
|
90
|
-
} : {};
|
|
91
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, headerGroup.getHeaderGroupProps(topStyle), {
|
|
92
|
-
className: classnames(prefixCls('tr'), _defineProperty({}, prefixCls('sticky'), !!sticky))
|
|
93
|
-
}), _.map(headerGroup.headers, function (column) {
|
|
94
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, column.getHeaderProps(), {
|
|
95
|
-
className: prefixCls('th')
|
|
96
|
-
}), column.render('Header'), columnSizing && /*#__PURE__*/React.createElement("div", _extends({}, column.getResizerProps(), {
|
|
97
|
-
className: classnames(prefixCls('resizer'), {
|
|
98
|
-
isResizing: column.isResizing
|
|
99
|
-
})
|
|
100
|
-
})));
|
|
101
|
-
}));
|
|
102
|
-
}), /*#__PURE__*/React.createElement("div", getTableBodyProps(), /*#__PURE__*/React.createElement(Spin, {
|
|
103
|
-
spinning: !!loading,
|
|
104
|
-
tip: "Loading..."
|
|
105
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
106
|
-
className: prefixCls('body')
|
|
107
|
-
}, rows.length === 0 && !loading ? /*#__PURE__*/React.createElement(Empty, {
|
|
108
|
-
title: "No Data",
|
|
109
|
-
image: Empty.PRESENTED_IMAGE_SEARCH
|
|
110
|
-
}) : _.map(rows, function (row) {
|
|
111
|
-
prepareRow(row);
|
|
112
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
113
|
-
className: prefixCls('tr')
|
|
114
|
-
}, row.getRowProps()), _.map(row.cells, function (cell) {
|
|
115
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
116
|
-
className: prefixCls('td')
|
|
117
|
-
}, cell.getCellProps()), cell.render('Cell'));
|
|
118
|
-
}));
|
|
119
|
-
}))))))), pagination && /*#__PURE__*/React.createElement("div", {
|
|
146
|
+
className: classnames(prefixCls('main'), _defineProperty({}, prefixCls('overflow-hidden'), !!y))
|
|
147
|
+
}, tableContent)), pagination && /*#__PURE__*/React.createElement("div", {
|
|
120
148
|
className: prefixCls('pagination')
|
|
121
149
|
}, /*#__PURE__*/React.createElement(Pagination, pagination)));
|
|
122
150
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
@import '../../Pagination/style/index.less';
|
|
3
3
|
@import '../../Spin/style/index.less';
|
|
4
|
+
@import '../../ScrollArea/style/index.less';
|
|
4
5
|
|
|
5
6
|
.ald-tmp-table-container {
|
|
6
7
|
position: relative;
|
|
@@ -94,3 +95,12 @@
|
|
|
94
95
|
width: 100%;
|
|
95
96
|
}
|
|
96
97
|
}
|
|
98
|
+
|
|
99
|
+
.ald-tmp-table-overflow-hidden {
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
height: 100%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.ald-tmp-table-body-scroll {
|
|
105
|
+
overflow: auto;
|
|
106
|
+
}
|
package/dist/AldTable/types.d.ts
CHANGED
package/dist/Card/index.d.ts
CHANGED
package/dist/Card/index.js
CHANGED
package/dist/Col/index.d.ts
CHANGED
package/dist/Col/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var defaultRenderEmpty = function defaultRenderEmpty(componentName) {
|
|
|
11
11
|
case 'Table':
|
|
12
12
|
case 'List':
|
|
13
13
|
return /*#__PURE__*/React.createElement(Empty, {
|
|
14
|
-
image: Empty.
|
|
14
|
+
image: Empty.PRESENTED_IMAGE_SEARCH_SMALL
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
case 'Select':
|
|
@@ -20,7 +20,7 @@ var defaultRenderEmpty = function defaultRenderEmpty(componentName) {
|
|
|
20
20
|
case 'Transfer':
|
|
21
21
|
case 'Mentions':
|
|
22
22
|
return /*#__PURE__*/React.createElement(Empty, {
|
|
23
|
-
image: Empty.
|
|
23
|
+
image: Empty.PRESENTED_IMAGE_SEARCH_SMALL,
|
|
24
24
|
title: "\u65E0\u6570\u636E",
|
|
25
25
|
className: "".concat(prefix, "-small")
|
|
26
26
|
});
|
|
@@ -5,7 +5,8 @@ import { getUsersByIdsType, getUsersByKeywordsType } from './getUserList';
|
|
|
5
5
|
import useGetUserList from './hooks/useGetUserList';
|
|
6
6
|
import SizeContext from './sizeContext';
|
|
7
7
|
export { ConfigContext } from 'antd/lib/config-provider';
|
|
8
|
-
export
|
|
8
|
+
export { ConfigConsumer } from 'antd/lib/config-provider/';
|
|
9
|
+
export type { ConfigConsumerProps, configConsumerProps, CSPConfig, DirectionType, globalConfig, RenderEmptyHandler, } from 'antd/lib/config-provider/';
|
|
9
10
|
interface AldCustomConfigProviderProps extends ConfigProviderProps {
|
|
10
11
|
children?: React.ReactNode;
|
|
11
12
|
getUsersByIds?: getUsersByIdsType;
|
|
@@ -4,6 +4,7 @@ import getUserListContext from "./getUserList";
|
|
|
4
4
|
import useGetUserList from "./hooks/useGetUserList";
|
|
5
5
|
import SizeContext from "./sizeContext";
|
|
6
6
|
export { ConfigContext } from 'antd/lib/config-provider';
|
|
7
|
+
export { ConfigConsumer } from 'antd/lib/config-provider/';
|
|
7
8
|
|
|
8
9
|
var AldCustomConfigProvider = function AldCustomConfigProvider(props) {
|
|
9
10
|
var children = props.children,
|
package/dist/Drawer/index.d.ts
CHANGED
package/dist/Drawer/index.js
CHANGED
|
@@ -8,10 +8,14 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.ant-dropdown-menu-submenu-title-content {
|
|
11
|
-
padding:
|
|
11
|
+
padding: 6px 24px 6px 8px;
|
|
12
12
|
line-height: 20px;
|
|
13
13
|
border-radius: 0 !important;
|
|
14
14
|
|
|
15
|
+
&:hover {
|
|
16
|
+
background-color: #f8f8f8;
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
.ant-dropdown-menu-submenu-expand-icon {
|
|
16
20
|
right: 8px;
|
|
17
21
|
line-height: 20px;
|
package/dist/Form/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ interface IFormItemProps extends FormItemProps {
|
|
|
18
18
|
declare const AldFormItem: {
|
|
19
19
|
(props: IFormItemProps): JSX.Element;
|
|
20
20
|
useStatus: () => {
|
|
21
|
-
status?: "" | "success" | "
|
|
21
|
+
status?: "" | "success" | "warning" | "error" | "validating" | undefined;
|
|
22
22
|
errors: React.ReactNode[];
|
|
23
23
|
warnings: React.ReactNode[];
|
|
24
24
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
3
|
.ant-form {
|
|
4
|
+
&.ant-form {
|
|
5
|
+
font-size: 13px;
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
.ant-form-item {
|
|
5
9
|
margin-bottom: 16px;
|
|
6
10
|
|
|
@@ -79,10 +83,10 @@
|
|
|
79
83
|
}
|
|
80
84
|
}
|
|
81
85
|
|
|
82
|
-
&.ant-form-vertical{
|
|
83
|
-
.ant-form-item{
|
|
84
|
-
.ant-form-item-label{
|
|
85
|
-
label{
|
|
86
|
+
&.ant-form-vertical {
|
|
87
|
+
.ant-form-item {
|
|
88
|
+
.ant-form-item-label {
|
|
89
|
+
label {
|
|
86
90
|
height: 20px;
|
|
87
91
|
}
|
|
88
92
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
interface SVGRProps {
|
|
3
3
|
size?: number;
|
|
4
4
|
title?: string;
|
|
@@ -6,5 +6,5 @@ interface SVGRProps {
|
|
|
6
6
|
desc?: string;
|
|
7
7
|
descId?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement> & SVGRProps, "string" | "
|
|
9
|
+
declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement> & SVGRProps, "string" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "crossOrigin" | "onClick" | "onError" | "href" | "key" | "onSelect" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "direction" | "mode" | "fontFamily" | "fontSize" | "textDecoration" | "width" | "height" | "type" | "media" | "target" | "name" | "origin" | "fill" | "strokeWidth" | "strokeLinecap" | "strokeLinejoin" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "offset" | "x" | "y" | "orientation" | "fontStyle" | "end" | "local" | "clip" | "stroke" | "transform" | "format" | "order" | "in" | "method" | "max" | "min" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "fontWeight" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "imageRendering" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "opacity" | "operator" | "orient" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "strokeDasharray" | "strokeDashoffset" | "strokeMiterlimit" | "strokeOpacity" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textLength" | "textRendering" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | keyof SVGRProps> & React.RefAttributes<SVGSVGElement>>>;
|
|
10
10
|
export default Memo;
|
|
@@ -6,8 +6,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
6
6
|
|
|
7
7
|
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; }
|
|
8
8
|
|
|
9
|
-
import * as React from
|
|
10
|
-
import { forwardRef, memo } from
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { forwardRef, memo } from 'react';
|
|
11
11
|
|
|
12
12
|
var AlertTriangleDuotone = function AlertTriangleDuotone(_ref, ref) {
|
|
13
13
|
var title = _ref.title,
|
|
@@ -20,8 +20,8 @@ var AlertTriangleDuotone = function AlertTriangleDuotone(_ref, ref) {
|
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
width: props.width || props.size || 16,
|
|
22
22
|
height: props.height || props.size || 16,
|
|
23
|
-
fill: "none",
|
|
24
23
|
viewBox: "0 0 24 24",
|
|
24
|
+
fill: "none",
|
|
25
25
|
ref: ref,
|
|
26
26
|
"aria-labelledby": titleId,
|
|
27
27
|
"aria-describedby": descId
|
|
@@ -30,10 +30,10 @@ var AlertTriangleDuotone = function AlertTriangleDuotone(_ref, ref) {
|
|
|
30
30
|
}, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
|
|
31
31
|
id: titleId
|
|
32
32
|
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
33
|
-
fill: props.color || "currentColor",
|
|
34
33
|
fillRule: "evenodd",
|
|
34
|
+
clipRule: "evenodd",
|
|
35
35
|
d: "m12 2 10 18H2L12 2Zm-.5 12V8h1v6h-1Zm1.5 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",
|
|
36
|
-
|
|
36
|
+
fill: props.color || 'currentColor'
|
|
37
37
|
}));
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
interface SVGRProps {
|
|
3
3
|
size?: number;
|
|
4
4
|
title?: string;
|
|
@@ -6,5 +6,5 @@ interface SVGRProps {
|
|
|
6
6
|
desc?: string;
|
|
7
7
|
descId?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement> & SVGRProps, "string" | "
|
|
9
|
+
declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement> & SVGRProps, "string" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "crossOrigin" | "onClick" | "onError" | "href" | "key" | "onSelect" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "direction" | "mode" | "fontFamily" | "fontSize" | "textDecoration" | "width" | "height" | "type" | "media" | "target" | "name" | "origin" | "fill" | "strokeWidth" | "strokeLinecap" | "strokeLinejoin" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "offset" | "x" | "y" | "orientation" | "fontStyle" | "end" | "local" | "clip" | "stroke" | "transform" | "format" | "order" | "in" | "method" | "max" | "min" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "fontWeight" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "imageRendering" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "opacity" | "operator" | "orient" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "strokeDasharray" | "strokeDashoffset" | "strokeMiterlimit" | "strokeOpacity" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textLength" | "textRendering" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | keyof SVGRProps> & React.RefAttributes<SVGSVGElement>>>;
|
|
10
10
|
export default Memo;
|
|
@@ -6,8 +6,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
6
6
|
|
|
7
7
|
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; }
|
|
8
8
|
|
|
9
|
-
import * as React from
|
|
10
|
-
import { forwardRef, memo } from
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { forwardRef, memo } from 'react';
|
|
11
11
|
|
|
12
12
|
var CancelCircleDuotone = function CancelCircleDuotone(_ref, ref) {
|
|
13
13
|
var title = _ref.title,
|
|
@@ -20,8 +20,8 @@ var CancelCircleDuotone = function CancelCircleDuotone(_ref, ref) {
|
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
width: props.width || props.size || 16,
|
|
22
22
|
height: props.height || props.size || 16,
|
|
23
|
-
fill: "none",
|
|
24
23
|
viewBox: "0 0 24 24",
|
|
24
|
+
fill: "none",
|
|
25
25
|
ref: ref,
|
|
26
26
|
"aria-labelledby": titleId,
|
|
27
27
|
"aria-describedby": descId
|
|
@@ -30,13 +30,13 @@ var CancelCircleDuotone = function CancelCircleDuotone(_ref, ref) {
|
|
|
30
30
|
}, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
|
|
31
31
|
id: titleId
|
|
32
32
|
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
d: "M12 2C6.429 2 2 6.429 2 12s4.429 10 10 10 10-4.429 10-10S17.571 2 12 2Z",
|
|
34
|
+
fill: props.color || 'currentColor'
|
|
35
35
|
}), /*#__PURE__*/React.createElement("path", {
|
|
36
|
-
fill: props.fill || "currentColor",
|
|
37
36
|
fillRule: "evenodd",
|
|
37
|
+
clipRule: "evenodd",
|
|
38
38
|
d: "m17.854 8.854-7 7a.5.5 0 0 1-.708 0l-4-4 .708-.708 3.646 3.647 6.646-6.647.708.708Z",
|
|
39
|
-
|
|
39
|
+
fill: props.fill || 'currentColor'
|
|
40
40
|
}));
|
|
41
41
|
};
|
|
42
42
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
interface SVGRProps {
|
|
3
3
|
size?: number;
|
|
4
4
|
title?: string;
|
|
@@ -6,5 +6,5 @@ interface SVGRProps {
|
|
|
6
6
|
desc?: string;
|
|
7
7
|
descId?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement> & SVGRProps, "string" | "
|
|
9
|
+
declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement> & SVGRProps, "string" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "crossOrigin" | "onClick" | "onError" | "href" | "key" | "onSelect" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "direction" | "mode" | "fontFamily" | "fontSize" | "textDecoration" | "width" | "height" | "type" | "media" | "target" | "name" | "origin" | "fill" | "strokeWidth" | "strokeLinecap" | "strokeLinejoin" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "offset" | "x" | "y" | "orientation" | "fontStyle" | "end" | "local" | "clip" | "stroke" | "transform" | "format" | "order" | "in" | "method" | "max" | "min" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "fontWeight" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "imageRendering" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "opacity" | "operator" | "orient" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "strokeDasharray" | "strokeDashoffset" | "strokeMiterlimit" | "strokeOpacity" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textLength" | "textRendering" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | keyof SVGRProps> & React.RefAttributes<SVGSVGElement>>>;
|
|
10
10
|
export default Memo;
|
|
@@ -6,8 +6,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
6
6
|
|
|
7
7
|
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; }
|
|
8
8
|
|
|
9
|
-
import * as React from
|
|
10
|
-
import { forwardRef, memo } from
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { forwardRef, memo } from 'react';
|
|
11
11
|
|
|
12
12
|
var CheckCircleDuotone = function CheckCircleDuotone(_ref, ref) {
|
|
13
13
|
var title = _ref.title,
|
|
@@ -20,8 +20,8 @@ var CheckCircleDuotone = function CheckCircleDuotone(_ref, ref) {
|
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
width: props.width || props.size || 16,
|
|
22
22
|
height: props.height || props.size || 16,
|
|
23
|
-
fill: "none",
|
|
24
23
|
viewBox: "0 0 24 24",
|
|
24
|
+
fill: "none",
|
|
25
25
|
ref: ref,
|
|
26
26
|
"aria-labelledby": titleId,
|
|
27
27
|
"aria-describedby": descId
|
|
@@ -30,13 +30,13 @@ var CheckCircleDuotone = function CheckCircleDuotone(_ref, ref) {
|
|
|
30
30
|
}, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
|
|
31
31
|
id: titleId
|
|
32
32
|
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
d: "M12 2C6.429 2 2 6.429 2 12s4.429 10 10 10 10-4.429 10-10S17.571 2 12 2Z",
|
|
34
|
+
fill: props.color || 'currentColor'
|
|
35
35
|
}), /*#__PURE__*/React.createElement("path", {
|
|
36
|
-
fill: props.fill || "currentColor",
|
|
37
36
|
fillRule: "evenodd",
|
|
37
|
+
clipRule: "evenodd",
|
|
38
38
|
d: "m17.854 8.854-7 7a.5.5 0 0 1-.708 0l-4-4 .708-.708 3.646 3.647 6.646-6.647.708.708Z",
|
|
39
|
-
|
|
39
|
+
fill: props.fill || 'currentColor'
|
|
40
40
|
}));
|
|
41
41
|
};
|
|
42
42
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
interface SVGRProps {
|
|
3
3
|
size?: number;
|
|
4
4
|
title?: string;
|
|
@@ -6,5 +6,5 @@ interface SVGRProps {
|
|
|
6
6
|
desc?: string;
|
|
7
7
|
descId?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement> & SVGRProps, "string" | "
|
|
9
|
+
declare const Memo: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement> & SVGRProps, "string" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "crossOrigin" | "onClick" | "onError" | "href" | "key" | "onSelect" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "direction" | "mode" | "fontFamily" | "fontSize" | "textDecoration" | "width" | "height" | "type" | "media" | "target" | "name" | "origin" | "fill" | "strokeWidth" | "strokeLinecap" | "strokeLinejoin" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "offset" | "x" | "y" | "orientation" | "fontStyle" | "end" | "local" | "clip" | "stroke" | "transform" | "format" | "order" | "in" | "method" | "max" | "min" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "fontWeight" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "imageRendering" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "opacity" | "operator" | "orient" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "strokeDasharray" | "strokeDashoffset" | "strokeMiterlimit" | "strokeOpacity" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textLength" | "textRendering" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | keyof SVGRProps> & React.RefAttributes<SVGSVGElement>>>;
|
|
10
10
|
export default Memo;
|
|
@@ -6,8 +6,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
6
6
|
|
|
7
7
|
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; }
|
|
8
8
|
|
|
9
|
-
import * as React from
|
|
10
|
-
import { forwardRef, memo } from
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { forwardRef, memo } from 'react';
|
|
11
11
|
|
|
12
12
|
var InfoCircleLine = function InfoCircleLine(_ref, ref) {
|
|
13
13
|
var title = _ref.title,
|
|
@@ -20,8 +20,8 @@ var InfoCircleLine = function InfoCircleLine(_ref, ref) {
|
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
width: props.width || props.size || 16,
|
|
22
22
|
height: props.height || props.size || 16,
|
|
23
|
-
fill: "none",
|
|
24
23
|
viewBox: "0 0 24 24",
|
|
24
|
+
fill: "none",
|
|
25
25
|
ref: ref,
|
|
26
26
|
"aria-labelledby": titleId,
|
|
27
27
|
"aria-describedby": descId
|
|
@@ -30,10 +30,10 @@ var InfoCircleLine = function InfoCircleLine(_ref, ref) {
|
|
|
30
30
|
}, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
|
|
31
31
|
id: titleId
|
|
32
32
|
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
33
|
-
fill: props.color || "currentColor",
|
|
34
33
|
fillRule: "evenodd",
|
|
34
|
+
clipRule: "evenodd",
|
|
35
35
|
d: "M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm0 1a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-11a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-2 1v1h2v5h-2v1h5v-1h-2v-6h-3Z",
|
|
36
|
-
|
|
36
|
+
fill: props.color || 'currentColor'
|
|
37
37
|
}));
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -44,6 +44,8 @@ var MemberSelector = function MemberSelector(_ref) {
|
|
|
44
44
|
children = _ref.children,
|
|
45
45
|
open = _ref.open,
|
|
46
46
|
onOpenChange = _ref.onOpenChange,
|
|
47
|
+
_ref$placeholder = _ref.placeholder,
|
|
48
|
+
placeholder = _ref$placeholder === void 0 ? '选择' : _ref$placeholder,
|
|
47
49
|
className = _ref.className;
|
|
48
50
|
|
|
49
51
|
var _ConfigProvider$useGe = ConfigProvider.useGetUserList(),
|
|
@@ -224,7 +226,9 @@ var MemberSelector = function MemberSelector(_ref) {
|
|
|
224
226
|
})
|
|
225
227
|
}, /*#__PURE__*/React.createElement("div", {
|
|
226
228
|
className: 'ald-member-picker-content'
|
|
227
|
-
}, selectedUserList.
|
|
229
|
+
}, selectedUserList.length === 0 ? /*#__PURE__*/React.createElement("div", {
|
|
230
|
+
className: "ald-member-picker-placeholder"
|
|
231
|
+
}, placeholder) : selectedUserList.reduce(function (prev, cur) {
|
|
228
232
|
if (prev.length > 0) {
|
|
229
233
|
return [].concat(_toConsumableArray(prev), [',', /*#__PURE__*/React.createElement(NickLabel, _extends({
|
|
230
234
|
key: cur.userId
|
|
@@ -8,6 +8,7 @@ export interface IBaseMemberSelectorProps {
|
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
open?: boolean;
|
|
10
10
|
onOpenChange?: (open: boolean) => void;
|
|
11
|
+
placeholder?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface IMultipleMemberSelectorProps extends IBaseMemberSelectorProps {
|
|
13
14
|
multiple: true;
|
package/dist/Modal/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export interface ModalProps extends Omit<AntdModalProps, 'okButtonProps' | 'canc
|
|
|
17
17
|
okButtonProps?: IButtonProps;
|
|
18
18
|
okType?: ButtonType;
|
|
19
19
|
paddingLess?: boolean;
|
|
20
|
+
virtualScrollBar?: boolean;
|
|
20
21
|
}
|
|
21
22
|
export interface ModalFuncProps extends Omit<AntdModalFuncProps, 'okButtonProps' | 'cancelButtonProps' | 'okType' | 'icon'> {
|
|
22
23
|
cancelButtonProps?: IButtonProps;
|
package/dist/Modal/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _excluded = ["className", "type", "loading", "size", "disabled", "shape"],
|
|
2
|
-
_excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title", "paddingLess"],
|
|
2
|
+
_excluded2 = ["className", "children", "okType", "width", "closeIcon", "subTitle", "okButtonProps", "cancelButtonProps", "okText", "cancelText", "icon", "title", "paddingLess", "virtualScrollBar"],
|
|
3
3
|
_excluded3 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
|
|
4
4
|
_excluded4 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
|
|
5
5
|
_excluded5 = ["okButtonProps", "cancelButtonProps", "okType", "width", "title", "subTitle", "okText", "cancelText", "className"],
|
|
@@ -26,6 +26,7 @@ import classNames from 'classnames';
|
|
|
26
26
|
import React from 'react';
|
|
27
27
|
import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
|
|
28
28
|
import DoubleCircleIcon from "../DoubleCircleIcon";
|
|
29
|
+
import ScrollArea from "../ScrollArea";
|
|
29
30
|
import theme from "../style/themes/default/themeColor.module.less"; // export type { ModalProps, ModalFuncProps };
|
|
30
31
|
|
|
31
32
|
export var destroyFns = [];
|
|
@@ -88,6 +89,7 @@ var OriginModal = function OriginModal(props) {
|
|
|
88
89
|
icon = props.icon,
|
|
89
90
|
title = props.title,
|
|
90
91
|
paddingLess = props.paddingLess,
|
|
92
|
+
virtualScrollBar = props.virtualScrollBar,
|
|
91
93
|
restProps = _objectWithoutProperties(props, _excluded2);
|
|
92
94
|
|
|
93
95
|
return /*#__PURE__*/React.createElement(AntdModal, _extends({}, restProps, {
|
|
@@ -106,7 +108,8 @@ var OriginModal = function OriginModal(props) {
|
|
|
106
108
|
// }
|
|
107
109
|
,
|
|
108
110
|
className: classNames('ald-modal', className, {
|
|
109
|
-
'ald-modal-padding-less': paddingLess
|
|
111
|
+
'ald-modal-padding-less': paddingLess,
|
|
112
|
+
'ald-modal-virtual-scroll-bar': virtualScrollBar
|
|
110
113
|
}),
|
|
111
114
|
okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
|
|
112
115
|
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary'),
|
|
@@ -118,7 +121,10 @@ var OriginModal = function OriginModal(props) {
|
|
|
118
121
|
fill: theme.NL40,
|
|
119
122
|
className: "ald-modal-close"
|
|
120
123
|
})
|
|
121
|
-
}),
|
|
124
|
+
}), virtualScrollBar ? /*#__PURE__*/React.createElement(ScrollArea, {
|
|
125
|
+
className: 'ald-modal-body-wrap',
|
|
126
|
+
innerClassName: "ald-modal-body-wrap-inner"
|
|
127
|
+
}, children) : children);
|
|
122
128
|
};
|
|
123
129
|
|
|
124
130
|
OriginModal.useModal = useModal;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
|
+
@import '../../ScrollArea/style/index.less';
|
|
2
3
|
|
|
3
4
|
.ald-modal.ald-modal {
|
|
4
5
|
.ant-modal-content {
|
|
@@ -7,13 +8,16 @@
|
|
|
7
8
|
0 8px 8px -4px rgb(16 24 40 / 0.03);
|
|
8
9
|
border-radius: 4px;
|
|
9
10
|
border: 1px solid @BG60;
|
|
11
|
+
overflow: hidden;
|
|
10
12
|
|
|
11
13
|
.ant-modal-body {
|
|
12
14
|
max-height: 70vh;
|
|
13
|
-
overflow-y: auto;
|
|
14
15
|
line-height: 20px;
|
|
15
16
|
font-size: 13px;
|
|
16
|
-
overflow-
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
margin-left: -23px;
|
|
19
|
+
width: calc(100% + 46px);
|
|
20
|
+
padding: 0 23px;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
|
|
@@ -63,10 +67,39 @@
|
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
|
|
70
|
+
&.ald-modal-virtual-scroll-bar {
|
|
71
|
+
.ant-modal-body {
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
padding: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ald-modal-body-wrap {
|
|
77
|
+
.ald-modal-body-wrap-inner {
|
|
78
|
+
max-height: 70vh;
|
|
79
|
+
padding: 0 23px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
66
84
|
.ant-modal-footer {
|
|
85
|
+
position: relative;
|
|
86
|
+
margin-top: 16px;
|
|
87
|
+
|
|
67
88
|
.ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
|
|
68
89
|
margin-bottom: 0;
|
|
69
|
-
margin-
|
|
90
|
+
margin-left: 12px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&::before {
|
|
94
|
+
content: '';
|
|
95
|
+
position: absolute;
|
|
96
|
+
top: -16px;
|
|
97
|
+
left: 0;
|
|
98
|
+
width: calc(100% + 48px);
|
|
99
|
+
margin-left: -24px;
|
|
100
|
+
margin-right: -24px;
|
|
101
|
+
height: 1px;
|
|
102
|
+
background-color: var(--colors-gray-300, #e8e8e8);
|
|
70
103
|
}
|
|
71
104
|
}
|
|
72
105
|
}
|
package/dist/Result/noFound.js
CHANGED
|
@@ -4,7 +4,9 @@ import * as React from 'react';
|
|
|
4
4
|
|
|
5
5
|
var NoFound = function NoFound(_ref) {
|
|
6
6
|
var direction = _ref.direction;
|
|
7
|
-
var props = direction === 'horizontal' ? {
|
|
7
|
+
var props = direction === 'horizontal' ? {
|
|
8
|
+
width: '100%'
|
|
9
|
+
} : {
|
|
8
10
|
width: '360',
|
|
9
11
|
height: '240'
|
|
10
12
|
};
|
|
@@ -4,7 +4,9 @@ import * as React from 'react';
|
|
|
4
4
|
|
|
5
5
|
var ServerError = function ServerError(_ref) {
|
|
6
6
|
var direction = _ref.direction;
|
|
7
|
-
var props = direction === 'horizontal' ? {
|
|
7
|
+
var props = direction === 'horizontal' ? {
|
|
8
|
+
width: '100%'
|
|
9
|
+
} : {
|
|
8
10
|
width: '360',
|
|
9
11
|
height: '240'
|
|
10
12
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
3
|
.ald-result-vertical {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
|
|
4
11
|
.ald-result-icon {
|
|
5
12
|
margin-bottom: 16px;
|
|
6
13
|
display: flex;
|
|
@@ -43,6 +50,7 @@
|
|
|
43
50
|
.ald-result-horizontal {
|
|
44
51
|
display: flex;
|
|
45
52
|
align-items: center;
|
|
53
|
+
gap: 32px;
|
|
46
54
|
|
|
47
55
|
.ald-result-left {
|
|
48
56
|
width: 50%;
|
|
@@ -5,7 +5,9 @@ import * as React from 'react';
|
|
|
5
5
|
var Unauthorized = function Unauthorized(_ref) {
|
|
6
6
|
var _ref$direction = _ref.direction,
|
|
7
7
|
direction = _ref$direction === void 0 ? 'vertical' : _ref$direction;
|
|
8
|
-
var props = direction === 'horizontal' ? {
|
|
8
|
+
var props = direction === 'horizontal' ? {
|
|
9
|
+
width: '100%'
|
|
10
|
+
} : {
|
|
9
11
|
width: '360',
|
|
10
12
|
height: '240'
|
|
11
13
|
};
|
package/dist/Select/index.js
CHANGED
|
@@ -428,11 +428,11 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
428
428
|
|
|
429
429
|
useEffect(function () {
|
|
430
430
|
if (updatedRef.current) {
|
|
431
|
-
setSelectedOptions(getSelectedOptionsFromValue(isMultiple, innerOptions, value));
|
|
431
|
+
setSelectedOptions(getSelectedOptionsFromValue(isMultiple, innerOptions, value, defaultValue));
|
|
432
432
|
} else {
|
|
433
433
|
updatedRef.current = true;
|
|
434
434
|
}
|
|
435
|
-
}, [value, innerOptions, isMultiple]);
|
|
435
|
+
}, [value, innerOptions, isMultiple, defaultValue]);
|
|
436
436
|
return /*#__PURE__*/React.createElement("div", {
|
|
437
437
|
className: classNames('ald-select', className, _defineProperty({
|
|
438
438
|
'ald-select-multiple': isMultiple,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// medium size
|
|
16
16
|
@select-height-middle: 32px;
|
|
17
17
|
@select-border-radius-middle: 2px;
|
|
18
|
-
@select-font-size-middle:
|
|
18
|
+
@select-font-size-middle: 13px;
|
|
19
19
|
@select-line-height-middle: 20px;
|
|
20
20
|
@select-padding-left-middle: 7px;
|
|
21
21
|
@selector-height-middle: 30px;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MenuClickEventHandler } from 'rc-menu/lib/interface';
|
|
1
|
+
export type { MenuClickEventHandler } from 'rc-menu/lib/interface';
|
|
2
2
|
export { default as AldTable } from './AldTable';
|
|
3
3
|
export type { ITableColumn, ITableProps as IAldTableProps, } from './AldTable/types';
|
|
4
4
|
export { default as Alert } from './Alert';
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aloudata/aloudata-design",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "
|
|
12
|
+
"build": "father build",
|
|
13
13
|
"build:watch": "father dev",
|
|
14
14
|
"changelog": "conventional-changelog -p custom-config -i CHANGELOG.md -s -r 0 -n ./changelog-option.js && git add CHANGELOG.md",
|
|
15
15
|
"cmt": "zx ./scripts/createComponentTemplate.mjs",
|
|
16
16
|
"dev": "npm run gen:icon && dumi dev",
|
|
17
|
-
"docs:build": "
|
|
17
|
+
"docs:build": "dumi build",
|
|
18
18
|
"doctor": "father doctor",
|
|
19
19
|
"gen:icon": "node ./scripts/genIcon.mjs",
|
|
20
20
|
"jest": "jest",
|