@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.
@@ -0,0 +1,3 @@
1
+ import { Collapse } from 'antd';
2
+ export type { CollapsePanelProps, CollapseProps } from 'antd/lib/collapse';
3
+ export default Collapse;
@@ -0,0 +1,2 @@
1
+ import { Collapse } from 'antd';
2
+ export default Collapse;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import "../../style";
2
+ import "./index.less";
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -181,7 +181,7 @@
181
181
  }
182
182
 
183
183
  .ant-input-suffix .ant-input-clear-icon {
184
- font-size: @input-clear-icon-large;
184
+ font-size: @input-clear-icon-small;
185
185
  }
186
186
  }
187
187
 
@@ -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, useLayoutEffect, useMemo, useRef } from 'react';
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
- useLayoutEffect(function () {
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
  },
@@ -35,6 +35,7 @@
35
35
  .ald-multiple-option-label{
36
36
  white-space: nowrap;
37
37
  margin-left: 10px;
38
+ flex: 1;
38
39
  }
39
40
 
40
41
  .ald-select-multiple .ant-select {
@@ -24,6 +24,7 @@
24
24
 
25
25
  .ald-single-option-text{
26
26
  white-space: nowrap;
27
+ flex: 1;
27
28
  }
28
29
 
29
30
  &.ald-single-option-disabled{
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.4.10",
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.7",
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",
@@ -1,10 +0,0 @@
1
- declare const _default: {
2
- id: number;
3
- title: string;
4
- name: string;
5
- category: string;
6
- categoryCN: string;
7
- author: string;
8
- svg: string;
9
- }[];
10
- export default _default;