@aloudata/aloudata-design 0.4.9 → 1.0.0

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
 
@@ -277,8 +277,10 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
277
277
  }
278
278
  }, [selectedOptions]);
279
279
  useLayoutEffect(function () {
280
- if (prefixRef.current) {
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";
@@ -4,7 +4,11 @@ export default (function () {
4
4
  var notices = function notices(type) {
5
5
  notification[type]({
6
6
  message: 'Notification Message',
7
- description: 'description,description,description,description,description,description,description,description'
7
+ description: 'description,description,description,description,description,description,description,description',
8
+ style: {
9
+ maxHeight: 500,
10
+ overflow: 'auto'
11
+ }
8
12
  });
9
13
  };
10
14
 
@@ -1,7 +1,7 @@
1
- var _excluded = ["icon", "className", "style", "closeIcon"],
2
- _excluded2 = ["icon", "className", "style", "closeIcon"],
3
- _excluded3 = ["icon", "className", "style", "closeIcon"],
4
- _excluded4 = ["icon", "className", "style", "closeIcon"];
1
+ var _excluded = ["icon", "closeIcon"],
2
+ _excluded2 = ["icon", "closeIcon"],
3
+ _excluded3 = ["icon", "closeIcon"],
4
+ _excluded4 = ["icon", "closeIcon"];
5
5
 
6
6
  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; }
7
7
 
@@ -73,74 +73,58 @@ var notification = {
73
73
  success: function success(config) {
74
74
  var _config$icon = config.icon,
75
75
  icon = _config$icon === void 0 ? iconMap.success : _config$icon,
76
- _config$className = config.className,
77
- className = _config$className === void 0 ? classnames('ald-notification-notice', config.className) : _config$className,
78
- _config$style = config.style,
79
- style = _config$style === void 0 ? Object.assign(getSDefaultStyle('success'), config.style) : _config$style,
80
76
  _config$closeIcon = config.closeIcon,
81
77
  closeIcon = _config$closeIcon === void 0 ? closeX : _config$closeIcon,
82
78
  rest = _objectWithoutProperties(config, _excluded);
83
79
 
84
- return AntdNotification.success(_objectSpread({
80
+ return AntdNotification.success(_objectSpread(_objectSpread({}, rest), {}, {
81
+ style: Object.assign({}, getSDefaultStyle('success'), config.style),
82
+ className: classnames('ald-notification-notice', config.className),
85
83
  icon: icon,
86
- style: style,
87
- className: className,
88
84
  closeIcon: closeIcon
89
- }, rest));
85
+ }));
90
86
  },
91
87
  error: function error(config) {
92
88
  var _config$icon2 = config.icon,
93
89
  icon = _config$icon2 === void 0 ? iconMap.error : _config$icon2,
94
- _config$className2 = config.className,
95
- className = _config$className2 === void 0 ? classnames('ald-notification-notice', config.className) : _config$className2,
96
- _config$style2 = config.style,
97
- style = _config$style2 === void 0 ? Object.assign(getSDefaultStyle('error'), config.style) : _config$style2,
98
90
  _config$closeIcon2 = config.closeIcon,
99
91
  closeIcon = _config$closeIcon2 === void 0 ? closeX : _config$closeIcon2,
100
92
  rest = _objectWithoutProperties(config, _excluded2);
101
93
 
102
- return AntdNotification.error(_objectSpread({
94
+ return AntdNotification.error(_objectSpread(_objectSpread({}, rest), {}, {
95
+ className: classnames('ald-notification-notice', config.className),
96
+ style: Object.assign(getSDefaultStyle('error'), config.style),
103
97
  icon: icon,
104
- style: style,
105
- className: className,
106
98
  closeIcon: closeIcon
107
- }, rest));
99
+ }));
108
100
  },
109
101
  warning: function warning(config) {
110
102
  var _config$icon3 = config.icon,
111
103
  icon = _config$icon3 === void 0 ? iconMap.warning : _config$icon3,
112
- _config$className3 = config.className,
113
- className = _config$className3 === void 0 ? classnames('ald-notification-notice', config.className) : _config$className3,
114
- _config$style3 = config.style,
115
- style = _config$style3 === void 0 ? Object.assign(getSDefaultStyle('warning'), config.style) : _config$style3,
116
104
  _config$closeIcon3 = config.closeIcon,
117
105
  closeIcon = _config$closeIcon3 === void 0 ? closeX : _config$closeIcon3,
118
106
  rest = _objectWithoutProperties(config, _excluded3);
119
107
 
120
- return AntdNotification.warning(_objectSpread({
108
+ return AntdNotification.warning(_objectSpread(_objectSpread({}, rest), {}, {
109
+ className: classnames('ald-notification-notice', config.className),
110
+ style: Object.assign(getSDefaultStyle('warning'), config.style),
121
111
  icon: icon,
122
- style: style,
123
- className: className,
124
112
  closeIcon: closeIcon
125
- }, rest));
113
+ }));
126
114
  },
127
115
  info: function info(config) {
128
116
  var _config$icon4 = config.icon,
129
117
  icon = _config$icon4 === void 0 ? iconMap.info : _config$icon4,
130
- _config$className4 = config.className,
131
- className = _config$className4 === void 0 ? classnames('ald-notification-notice', config.className) : _config$className4,
132
- _config$style4 = config.style,
133
- style = _config$style4 === void 0 ? Object.assign(getSDefaultStyle('info'), config.style) : _config$style4,
134
118
  _config$closeIcon4 = config.closeIcon,
135
119
  closeIcon = _config$closeIcon4 === void 0 ? closeX : _config$closeIcon4,
136
120
  rest = _objectWithoutProperties(config, _excluded4);
137
121
 
138
- return AntdNotification.info(_objectSpread({
122
+ return AntdNotification.info(_objectSpread(_objectSpread({}, rest), {}, {
123
+ className: classnames('ald-notification-notice', config.className),
124
+ style: Object.assign(getSDefaultStyle('info'), config.style),
139
125
  icon: icon,
140
- style: style,
141
- className: className,
142
126
  closeIcon: closeIcon
143
- }, rest));
127
+ }));
144
128
  },
145
129
  destroy: function destroy(key) {
146
130
  return AntdNotification.destroy(key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "0.4.9",
3
+ "version": "1.0.0",
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;