@aloudata/aloudata-design 0.4.10 → 1.0.1
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/Collapse/index.d.ts +3 -0
- package/dist/Collapse/index.js +2 -0
- package/dist/Collapse/style/index.d.ts +2 -0
- package/dist/Collapse/style/index.js +2 -0
- package/dist/Collapse/style/index.less +1 -0
- package/dist/Input/style/index.less +1 -1
- package/dist/Select/index.js +5 -6
- package/dist/Select/style/multiple.less +1 -0
- package/dist/Select/style/single.less +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/package.json +2 -2
- package/dist/Icon/icons.d.ts +0 -10
- package/dist/Icon/icons.js +0 -1705
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
package/dist/Select/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import { FoldDownFill } from '@aloudata/icons-react';
|
|
|
32
32
|
import { Select as AntdSelect } from 'antd';
|
|
33
33
|
import classNames from 'classnames';
|
|
34
34
|
import List from 'rc-virtual-list';
|
|
35
|
-
import React, { forwardRef, useEffect,
|
|
35
|
+
import React, { forwardRef, useEffect, useMemo, useRef } from 'react';
|
|
36
36
|
import Empty from "../Empty";
|
|
37
37
|
import MultipleOption from "./components/MultipleOption";
|
|
38
38
|
import SingleOption from "./components/SingleOption";
|
|
@@ -276,9 +276,11 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
276
276
|
return (_selectedOptions$ = selectedOptions[0]) === null || _selectedOptions$ === void 0 ? void 0 : _selectedOptions$.value;
|
|
277
277
|
}
|
|
278
278
|
}, [selectedOptions]);
|
|
279
|
-
|
|
280
|
-
if (prefixRef.current) {
|
|
279
|
+
useEffect(function () {
|
|
280
|
+
if (prefixRef.current && prefix) {
|
|
281
281
|
setPrefixWidth(prefixRef.current.offsetWidth);
|
|
282
|
+
} else {
|
|
283
|
+
setPrefixWidth(0);
|
|
282
284
|
}
|
|
283
285
|
}, [props.size, prefix]);
|
|
284
286
|
var styleVar = {
|
|
@@ -336,9 +338,6 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
336
338
|
className: classNames({
|
|
337
339
|
'ald-select-prefix-select': !!prefix || prefix === 0
|
|
338
340
|
}),
|
|
339
|
-
dropdownStyle: {
|
|
340
|
-
width: '100%'
|
|
341
|
-
},
|
|
342
341
|
style: {
|
|
343
342
|
width: '100%'
|
|
344
343
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -76,3 +76,5 @@ export type { IAvatarProps as AvatarProps } from './Avatar';
|
|
|
76
76
|
export { default as Icon } from './Icon';
|
|
77
77
|
export type { PopconfirmProps } from './Popconfirm';
|
|
78
78
|
export { default as Popconfirm } from './Popconfirm';
|
|
79
|
+
export { default as Collapse } from './Collapse';
|
|
80
|
+
export type { CollapsePanelProps, CollapseProps } from './Collapse';
|
package/dist/index.js
CHANGED
|
@@ -40,4 +40,5 @@ export { default as Breadcrumb } from "./Breadcrumb";
|
|
|
40
40
|
export { default as Empty } from "./Empty";
|
|
41
41
|
export { default as Avatar } from "./Avatar";
|
|
42
42
|
export { default as Icon } from "./Icon";
|
|
43
|
-
export { default as Popconfirm } from "./Popconfirm";
|
|
43
|
+
export { default as Popconfirm } from "./Popconfirm";
|
|
44
|
+
export { default as Collapse } from "./Collapse";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aloudata/aloudata-design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aloudata/icons-react": "0.1.
|
|
53
|
+
"@aloudata/icons-react": "^0.1.12",
|
|
54
54
|
"@aloudata/icons-svg": "0.1.7",
|
|
55
55
|
"antd": "^5.3.1",
|
|
56
56
|
"memoize-one": "^6.0.0",
|