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.
@@ -4,6 +4,7 @@
4
4
  box-sizing: border-box;
5
5
  transition: border-color 0.15s ease;
6
6
  }
7
+
7
8
  .avatar_bordered {
8
9
  background-color: var(--palette-white);
9
10
  border: 3px solid var(--palette-bg-2);
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(styles__default.default.avatar, {
43
- avatar_bordered: !!bordered
43
+ className: clx('avatar', {
44
+ 'avatar_bordered': !!bordered
44
45
  }, [className])
45
- }, props));
46
+ }, rest));
46
47
  });
47
48
 
48
49
  exports.default = Avatar;
@@ -4,6 +4,7 @@
4
4
  box-sizing: border-box;
5
5
  transition: border-color 0.15s ease;
6
6
  }
7
+
7
8
  .avatar_bordered {
8
9
  background-color: var(--palette-white);
9
10
  border: 3px solid var(--palette-bg-2);
@@ -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(styles.avatar, {
33
- avatar_bordered: !!bordered
33
+ className: clx('avatar', {
34
+ 'avatar_bordered': !!bordered
34
35
  }, [className])
35
- }, props));
36
+ }, rest));
36
37
  });
37
38
 
38
39
  export { Avatar as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colibri-ui",
3
- "version": "0.7.147",
3
+ "version": "0.7.149",
4
4
  "description": "React UI components library",
5
5
  "main": "index.js",
6
6
  "scripts": {},