@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.
- 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 +3 -4
- 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/dist/notification/demo/index.js +5 -1
- package/dist/notification/index.js +20 -36
- 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
|
@@ -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
|
},
|
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", "
|
|
2
|
-
_excluded2 = ["icon", "
|
|
3
|
-
_excluded3 = ["icon", "
|
|
4
|
-
_excluded4 = ["icon", "
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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.
|
|
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.
|
|
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",
|