colibri-ui 0.7.147 → 0.7.149
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/Avatar/Avatar.module.css
CHANGED
package/Avatar/index.js
CHANGED
|
@@ -31,7 +31,8 @@ var Avatar = /*#__PURE__*/React.memo(function (props) {
|
|
|
31
31
|
_b = props.alt,
|
|
32
32
|
alt = _b === void 0 ? "profile image" : _b,
|
|
33
33
|
_c = props.accountType,
|
|
34
|
-
accountType = _c === void 0 ? index_props.AccountType.Organization : _c
|
|
34
|
+
accountType = _c === void 0 ? index_props.AccountType.Organization : _c,
|
|
35
|
+
rest = tslib.__rest(props, ["avatarURL", "style", "size", "className", "bordered", "alt", "accountType"]);
|
|
35
36
|
var stubImageURL = getStubImage(accountType);
|
|
36
37
|
return /*#__PURE__*/React__default.default.createElement("img", tslib.__assign({
|
|
37
38
|
alt: alt,
|
|
@@ -39,10 +40,10 @@ var Avatar = /*#__PURE__*/React.memo(function (props) {
|
|
|
39
40
|
width: size,
|
|
40
41
|
height: size,
|
|
41
42
|
style: style,
|
|
42
|
-
className: clx(
|
|
43
|
-
avatar_bordered: !!bordered
|
|
43
|
+
className: clx('avatar', {
|
|
44
|
+
'avatar_bordered': !!bordered
|
|
44
45
|
}, [className])
|
|
45
|
-
},
|
|
46
|
+
}, rest));
|
|
46
47
|
});
|
|
47
48
|
|
|
48
49
|
exports.default = Avatar;
|
package/esm/Avatar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign } from 'tslib';
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React__default, { memo } from 'react';
|
|
3
3
|
import classNames from 'classnames/bind';
|
|
4
4
|
import { AvatarSizes } from './constants.js';
|
|
@@ -21,7 +21,8 @@ var Avatar = /*#__PURE__*/memo(function (props) {
|
|
|
21
21
|
_b = props.alt,
|
|
22
22
|
alt = _b === void 0 ? "profile image" : _b,
|
|
23
23
|
_c = props.accountType,
|
|
24
|
-
accountType = _c === void 0 ? AccountType.Organization : _c
|
|
24
|
+
accountType = _c === void 0 ? AccountType.Organization : _c,
|
|
25
|
+
rest = __rest(props, ["avatarURL", "style", "size", "className", "bordered", "alt", "accountType"]);
|
|
25
26
|
var stubImageURL = getStubImage(accountType);
|
|
26
27
|
return /*#__PURE__*/React__default.createElement("img", __assign({
|
|
27
28
|
alt: alt,
|
|
@@ -29,10 +30,10 @@ var Avatar = /*#__PURE__*/memo(function (props) {
|
|
|
29
30
|
width: size,
|
|
30
31
|
height: size,
|
|
31
32
|
style: style,
|
|
32
|
-
className: clx(
|
|
33
|
-
avatar_bordered: !!bordered
|
|
33
|
+
className: clx('avatar', {
|
|
34
|
+
'avatar_bordered': !!bordered
|
|
34
35
|
}, [className])
|
|
35
|
-
},
|
|
36
|
+
}, rest));
|
|
36
37
|
});
|
|
37
38
|
|
|
38
39
|
export { Avatar as default };
|