@aloudata/aloudata-design 0.4.9 → 0.4.10

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.
@@ -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": "0.4.10",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",